Hosted by:
SourceForge
Get Firefox!

wrapper.monitor_thread_count Property
wrapper.monitor_thread_count Property
Configuration Property Overview
wrapper.monitor_thread_count

By default Java monitors the currently running threads and will cause the JVM to begin the shutdown process when it detects that all non-daemon threads have completed. The Java component of the Wrapper has need for its own non-daemon threads, meaning that this check will never be satisfied.

To make it possible for the Wrapper to tell when an application has completed and shutdown in the same way that a standalone JVM does, the Wrapper does its own thread counting. Normally, this property should never be touched. But there have been certain cases reported where applications whose main threads run in native JNI libraries were not being handled correctly. In such cases this thread counting functionality can be disabled by setting the wrapper.monitor_thread_count property to false. Defaults to true.

Be aware that if disabled, the Wrapper will not terminate the JVM if it completes normally. The JVM will still exit due to external input or if System.exit(), or any other method which specifically causes the JVM to exit is called.

Example:
wrapper.monitor_thread_count=true

by Leif Mortenson

last modified: