Please or
Try NowBuy Now
Google

Locations of visitors to this page

wrapper.thread_dump_control_code Property
wrapper.thread_dump_control_code Property

Configuration Property Overview

wrapper.thread_dump_control_code

WARNING

DO NOT modify the value of this property while an application using the configuration file has been installed as a Winidows Service. Please uninstall the existing service BEFORE modifying this property. The service with the new value can then be safely reinstalled later.

This property is only used on Windows platforms.

The Wrapper is able to initiate a thread dump in response to a user defined control code when running as a service. This property makes it possible to specify which code to use, or even to disable this feature, to meet the needs of a specific application. Valid values are 128 - 255, or 0 to disable. Defaults to 255.

Example:
wrapper.thread_dump_control_code=255

It is only possible to request thread dumps using service control codes when the service is running as a Windows service. This property has no effect when running in console mode.

There are three ways to initiate a thread dump on a running service using the control code.

The first is to use Wrapper's dump command "-d" as follows:

Example:
wrapper.exe -d ..\conf\wrapper.conf

The second is to use Wrapper's ability to send an arbitrary service command as follows:

Example:
wrapper.exe -l=255 ..\conf\wrapper.conf

The third is to use standard Windows commandline tools to send the code:

Example:
sc control myapp 255

It is also possible to send the control code programmatically using the appropriate Windows APIs.





User Comments

If you notice something that is incorrect, missing, or simply feel that some part of this page could be explained better, feel free to log in and add a comment. You will need to register before you can log on.

Email:
Password:
Java Service Wrapper Version: 3.4.0