RE: How to get the Java VM Thread Dump for deployed instance
RE: How to get the Java VM Thread Dump for deployed instance
- Subject: RE: How to get the Java VM Thread Dump for deployed instance
- From: "Pierre Bernard" <email@hidden>
- Date: Mon, 17 Nov 2003 09:47:48 +0100
- Thread-topic: How to get the Java VM Thread Dump for deployed instance
Hi!
The catch is that JavaMonitor/WOTask call a script to start your application. That script is the one you reference from within JavaMonitor, i.e. the one generated in your WOA. The outputs of that script are not caught. This includes information put out by the script itself as well as anything that goes to System.out or System.err in your application.
To catch this output you may write a wrapper script. I.e a script that calls the original WOA script and redirects outputs to a file. You would reference that script from the JavaMonitor.
Your thread dump will then go to the file you specified in your wrapper script.
Pierre
--
Got a hang for movies?
http://homepage.mac.com/I_love_my/movies.html
-----Original Message-----
From: Daniel Muller [mailto:email@hidden]
Sent: Friday, November 14, 2003 6:56 PM
To: email@hidden
Subject: How to get the Java VM Thread Dump for deployed instance
Hi all,
I'm trying to get the Java VM Thread Dump for deployed instance (OS X
Server 10.2 and WO 5.2.1+Java 1.3.1) by sending the signal QUIT (sudo
kill -3 xxxx where xxxx is the instance's PID).
I get nothing in the instance log file and WO log files:
/var/log/webobjects.log, /var/log/webobjects.err.
I've tried to modify the "SpawnOfWotaskd.sh" file in
"/System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/
Resources" folder:
$@ 1>>/var/log/webobjects.log 2>>/var/log/webobjects.err &
instead of
$@ 1>/dev/null 2>&1 &
Same result, not trace of thread dump.
I get the trace of thread dump only for development version either in
ProjectBuilder Console window or launching the application directly
from the Terminal.
Any idea how to get the trace of thread dump of a running instance
launch by wotaskd?
Thank you in advance and best regards,
Daniel Muller
--
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
**********************************************************************
This email and any files transmitted with it are intended solely for
the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender
of this message. (email@hidden)
This email message has been checked for the presence of computer
viruses; however this protection does not ensure this message is
virus free.
Banque centrale du Luxembourg; Tel ++352-4774-1; http://www.bcl.lu
**********************************************************************
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.