Re: Output from sudo kill -QUIT pid
Chuck Hill <[email protected]> Fri, 19 Nov 2004 13:49:31 -0800
| Newsgroups | gmane.comp.web.webobjects.admin |
|---|---|
| Message-ID | <[email protected]> |
I don't recall needing to restart wotaskd. You do need to restart the app though. Chuck On Nov 19, 2004, at 1:45 PM, Brendan Duddridge wrote: > Thanks Chuck. I've made the change. But I'm assuming that I have to > restart > wotaskd to affect the change. Is it possible to do a kill -HUP or just > terminate and restart wotaskd without affecting the running > applications if > I do it quickly? > > Thanks, > > ___________________________ > > Brendan Duddridge > > ClickSpace Interactive Inc. > Suite L100 > 239 - 10th Ave SE > Calgary, AB T2G 0V9 > Canada > (403) 277-5591 > http://www.clickspace.com/ > > >> From: Chuck Hill <[email protected]> >> Date: Fri, 19 Nov 2004 11:22:57 -0800 >> To: Brendan Duddridge <[email protected]> >> Cc: WebObjects Admin <[email protected]> >> Subject: Re: Output from sudo kill -QUIT pid >> >> Hi Brendan, >> >> Apple, in its never ending quest to "think different" keeps these in a >> very special place - /dev/null. You need to use the DevNullViewer >> application to access these. :-P >> >> OK, enough with the jokes. Here is how to fix this: >> ----------------- >> >> From: Wojtek >> >> Theoretically you can do kill -QUIT <jvmpid> to see the list of JVM >> threads, and (since 1.4) deadlocks: >> http://developer.java.sun.com/developer/technicalArticles/Programming/ >> Stacktrace/ >> >> === Go to appropriate dir >> # cd >> /opt/Apple52/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/ >> Resources/ >> >> === Original file (Apple) >> # cat SpawnOfWotaskd.sh.bak >> #!/bin/sh >> >> $@ 1>/dev/null 2>&1 & >> >> === Modified by me (not the best choice of files) >> # cat SpawnOfWotaskd.sh >> #!/bin/sh >> >> $@ 1>>/var/log/webobjects.log 2>>/var/log/webobjects.err & >> >> === Now signal >> # kill -QUIT 19466 >> >> === Et voilla, trace is back >> # tail /var/log/webobjects.log >> at Application.main(Application.java:32) >> at java.lang.reflect.Method.invoke(Native Method) >> at >> com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:71) >> >> "VM Thread" prio=1 tid=0x808ae88 nid=0x4c47 runnable >> >> "VM Periodic Task Thread" prio=1 tid=0x80958f8 nid=0x4c4a waiting on >> monitor >> "Suspend Checker Thread" prio=1 tid=0x8096290 nid=0x4c4b runnable >> ----------------------- >> >> Or, of course, just turn to page 92, verse 1 in Practical WebObjects. >> ;-) >> >> Chuck >> >> >> On Nov 19, 2004, at 10:29 AM, Brendan Duddridge wrote: >> >>> Hi, >>> >>> Does anyone know where the output of doing 'sudo kill -QUIT pid' >>> goes? >>> I >>> have an application that is not responding anymore and I'd like to >>> see >>> the >>> stack trace of where it's waiting. The app was started up with >>> Monitor. I >>> know that if I start it from the command line and do a control-\, >>> then >>> I >>> will see the stack trace. I want an equivalent way of getting that >>> information from a Monitor started application. >>> >>> WO 5.2.3, OS X Server 10.3.5. >>> >>> Thanks, >>> >>> ___________________________ >>> >>> Brendan Duddridge >>> >>> ClickSpace Interactive Inc. >>> Suite L100 >>> 239 - 10th Ave SE >>> Calgary, AB T2G 0V9 >>> Canada >>> (403) 277-5591 >>> http://www.clickspace.com/ >>> >>> >>> _______________________________________________ >>> WebObjects-admin mailing list >>> [email protected] >>> http://www.omnigroup.com/mailman/listinfo/webobjects-admin >>> >> -- >> Practical WebObjects - a book for intermediate WebObjects developers >> who want to increase their overall knowledge of WebObjects, or those >> who are trying to solve specific application development problems. >> http://www.global-village.net/products/practical_webobjects >> >> >> > > > _______________________________________________ > WebObjects-admin mailing list > [email protected] > http://www.omnigroup.com/mailman/listinfo/webobjects-admin > -- Practical WebObjects - a book for intermediate WebObjects developers who want to increase their overall knowledge of WebObjects, or those who are trying to solve specific application development problems. http://www.global-village.net/products/practical_webobjects