[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tomcat-user
Subject:    Re: Thread dumps using Apache Service manager!
From:       Konstantin Kolinko <knst.kolinko () gmail ! com>
Date:       2014-07-27 17:05:07
Message-ID: CABzHfV=2E+wcfYzBdUwAeFPOo+-hW0dzsEbn1-jZGQy8Gm5vJw () mail ! gmail ! com
[Download RAW message or body]

2014-07-25 14:31 GMT+04:00  <kattanaresh@hsbc.co.in>:
> Dear Team,
>
> Could you please let us know how to change the output file naming format
> of thread dumps using Tomcat service manager in System Tray ?
> How to capture thread dump in a new file rather than default file ?
>
> The default naming structure of the output file says
> "tomcat6-stdout.2014-07-21.log".
>
> Version : Apache Tomcat 6.0.35
>

The "tomcat6-stdout.2014-07-21.log" file is just a file that Apache
Commons Daemon procrun (the service launcher used here) uses to catch
the standard output stream (System.out) of the started process.  It
can be configured, but it won't help you if you want a separate name
for each dump file.

To catch dumps into separate files you can use "jstack" tool from
Oracle Java SDK.

The Tomcat FAQ item on the subject:

http://wiki.apache.org/tomcat/HowTo#How_do_I_obtain_a_thread_dump_of_my_running_webapp_.3F

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic