调整jvm中的 wrapper.jvm.port
来源:互联网 发布:oracle utl json 编辑:程序博客网 时间:2024/06/11 08:33
参考:http://wrapper.tanukisoftware.com/doc/english/prop-jvm-port.html
The Wrapper is able to use a socket to communicate with its Java component running inside a JVM. This property allows the configuration of the port that the JVM will use to connect back to the Wrapper.
Until Wrapper version 3.5.9, when a port of "0" (zero) is specified, the Wrapper will treat this as if the property has not been specified. Later versions than 3.5.9, however will let the JVM select any open and usable port. This is also the way the JVM-sided port was created until Wrapper version 3.1.2.
If the port specified by this property couldn't be bound because the port is already being used, or hasn't been specified, then the Wrapper will be using the range of wrapper.jvm.port.min - wrapper.jvm.port.max properties to bind a port.
If a specific port should be used, then any port in the range 1 - 65535 may be specified. Note that on UNIX systems port numbers below 1024 will most likely require root access to be set. If the specified port is in use, then the Wrapper will display a warning to the log and, as with the default case, will search for the first available port.
When the Wrapper launches a JVM instance, it will open a server socket listening on the port defined by thewrapper.port property. The JVM will then connect back to Wrapper, internally using the port specified by this property or the range subsequentially.
Example:Controlling the port range.
"wrapper.jvm.port.min" and "wrapper.jvm.port.max":
In some cases, it is necessary to control the range of ports that the Wrapper will use when choosing a port. The defaults were chosen to make it very unlikely that they would conflict with any well-known ports numbers (from 0 to 1023 generally assigned on most systems). If the default 31000-31999 range is causing problems, it can be changed using the wrapper.jvm.port.min and wrapper.jvm.port.max properties. If these are used, be sure to provide a large enough range to make it unlikely that all of the ports will be in use when the Wrapper attempts to start.
Example:背景:
同一台服务器上,客户安装了hana数据库和hybris应用,当新建一个hana数据库后,发现数据库无法正常启动,报错端口冲突。
修改:
hybris启动的参数文件:
/hybris5.5/hybris/bin/platform/tomcat/conf/wrapper.conf
添加了这几个参数:
wrapper.port.min=36000
wrapper.port.max=36999
wrapper.jvm.port.min=35000
wrapper.jvm.port.max=35999
重新启动。
- 调整jvm中的 wrapper.jvm.port
- tomcat jvm 调整
- 调整IBM jvm heap
- 调整JVM内存
- 调整JVM大小
- 调整JVM内存大小
- 调整jvm大小
- 调整JVM内存大小
- jvm 调整内存大小
- 调整JVM内存
- myeclipse jvm调整
- 调整JVM内存
- 调整jvm内存大小
- JVM内存调整优化
- 调整JVM虚拟机内存大小
- 调整JVM GC ( v1.3.1)
- 调整JVM ( v1.3.1) GC
- JVM堆大小的调整
- R语言 简单做图 转载记录
- Maven实战(二)POM重构之增还是删
- jQuery插件之-瀑布流插件
- [leetcode] 179.Largest Number
- Maven实战(三)多模块项目的POM重构
- 调整jvm中的 wrapper.jvm.port
- QT POST/GET 发送/获取网页数据
- AndroidStudio错误local path doesn't exist解决办法
- Maven实战(四)基于Maven的持续集成实践
- Q_PROPERTY
- MySQL的关联查询与子查询
- 021.Ternary Operator 三目运算
- Maven实战(五)自动化Web应用集成测试
- jackson json 序列化与反序列化时json中字段名称问题