Please or
Try NowBuy Now

Locations of visitors to this page

SourceForge.net

SourceForge.JP

wrapper.thread_dump_control_code Property
wrapper.thread_dump_control_code Property

Configuration Property Overview

wrapper.thread_dump_control_code

Compatibility :3.3.0
Editions :Professional EditionStandard EditionCommunity Edition
Platforms :WindowsMac OSXLinuxIBM AIXFreeBSDHP-UXSolarisIBM z/OSIBM z/Linux

WARNING

DO NOT modify the value of this property while an application using the configuration file has been installed as a Windows 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. The default value is "255", with valid values in the range of "128-255", or "0" (zero) to disable.

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:
    Command Example:
    wrapper.exe -d ..\conf\wrapper.conf
  • The second is to use Wrapper's ability to send an arbitrary service command as follows:
    Command Example:
    wrapper.exe -l=255 ..\conf\wrapper.conf
  • The third is to use standard Windows commandline tools to send the code:
    Command 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:
by ananth (2010/07/07 19:15:05 JST from 61.16.161.10)
Gravatar

Hi,
The above three ways are working fine.

by vishnu rao 213 (2010/03/23 04:53:17 JST from 199.4.119.253)
Gravatar

Hi
I did try out your 3 methods and failed to generate a thread dump.
The relevant error codes can also be attached in this section.
like error code 57, 87 as your trouble shooting section did not help much with regard to the mentioned error codes.

Regards,
ch Vishnu

Java Service Wrapper Version: 3.5.4