Index |
|
wrapper.ping.timeout |
||||||||
WARNINGDO NOT modify any of these parameters unless you have read this property description. Incorrect settings can cause the Wrapper to fail to operate as expected. Number of seconds to allow between two ping responses coming from the JVM. The default value is "30 seconds".
Setting this property value to "0" (zero) means never time out.
The ping timeout must be at least 5 seconds longer than the value of
wrapper. In normal operation, the Wrapper pings the JVM once every 5 seconds to make sure that its process has not frozen up. The ping timeout is the amount of time to allow for 2 responses from the JVM before the Wrapper assumes that it is hung and restarts it. This property also controls the amount of time that the JVM will allow to pass without being pinged by the Wrapper. If the Wrapper does not ping the JVM for longer than the specified timeout, it will exit, allowing the Wrapper to resync by launching a new JVM. This also makes sure that the JVM will exit if the Wrapper process is terminated abnormally. (By killing the Wrapper process in the Windows Task Manager, or using "kill -9" signal on UNIX systems.) Starting with Wrapper version 3.5.21, the Professional edition of the Wrapper will also fire a jvm_ping_timeout event whenever this threshold has been exceeded.
With the addition of the wrapper. WARNINGWhile the ability is there, be aware that setting this property value to "0" (zero) (= disable Timeout) or some large value will mean that the Wrapper's ability to detect a JVM hang while it is running will be disabled. Also note that if the Wrapper process is killed abnormally or God forbid crashes, then the JVM will never attempt to resync with the Wrapper. If the Wrapper was running as a Windows Service at the time, it may be necessary to then reboot the machine to stop the Java process. With normal ping timeouts, the JVM would exit on its own after a few seconds.
While the wrapper. |
wrapper.ping.timeout.action |
||||||||||
This property allows to specify a certain action to be performed
whenever a ping timeout takes place after the seconds specified in the wrapper. For consistency and backwards compatibility, the default action is specified as RESTART.
Possible actions are:
NOTEPlease note that if the JVM is completely frozen, some of the actions might, however, not be able to be processed by the JVM, e.g. GC, DUMP Chaining Multiple Actions: It is possible to specify more than one action by separating them with a space or comma. When more than one action is specified, they will be executed in rapid succession in the order specified. The following example will attempt to perform a thread dump and then restart the JVM. The thread dump will only take place if the JVM is not fully frozen.
|
Reference: ping |
|
Reference: Timeout |
|