Changes for page Troubleshooting Deployment
Last modified by David Avendasora on 2010/11/30 06:59
From version 14.1
edited by ldemers
on 2009/10/21 21:39
on 2009/10/21 21:39
Change comment:
There is no comment for this version
To version 15.1
edited by David Avendasora
on 2010/11/30 06:59
on 2010/11/30 06:59
Change comment:
There is no comment for this version
Summary
-
Page properties (3 modified, 0 added, 0 removed)
Details
- Page properties
-
- Title
-
... ... @@ -1,1 +1,1 @@ 1 - Web Applications-Deployment-Common Pitfalls andTroubleshooting1 +Troubleshooting Deployment - Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. ldemers1 +XWiki.avendasora - Content
-
... ... @@ -2,7 +2,7 @@ 2 2 3 3 A current app I'm working freezes up for about a minute when calling editingContext.saveChanges. The following message is added to the system output: 4 4 5 -{{code}} 5 +{{code value="none"}} 6 6 7 7 <WorkerThread3> <WOWorkerThread id=3 socket=Socket[addr=/xxx.xxx.xxx.xxx,port=51634,localport=51563]> 8 8 Exception while sending response: java.net.SocketException: Broken pipe ... ... @@ -23,8 +23,12 @@ 23 23 * Use the WOLongReponsePage to handle long running requests. 24 24 * Increase the Connect Timeout and Receive Timeout values in JavaMonitor so that the woadaptor will wait long enough for your application to provide the response. 25 25 26 - **Note:** If this message happens inother contexts (i.e. not when a request takes a long time to process) it might just mean that the user hit stop in their browser or clicked another link.26 +{{note}} 27 27 28 +If this message happens in other contexts (i.e. not when a request takes a long time to process) it might just mean that the user hit stop in their browser or clicked another link. 29 + 30 +{{/note}} 31 + 28 28 == Where's my stderr? == 29 29 30 30 Wotaskd launches new WOA instances using a script called SpawnOfWotaskd.sh that is located in /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/Resources/SpawnOfWotaskd.sh on OS X. For some reason, this script was written to throw away stdout and redirrect stderr to stdout. This means that if you ever want to get a thread stack dump, you're out of luck. Fortunately this is an easy fix. If you edit SpawnOfWotaskd.sh, the stock version looks like: ... ... @@ -98,7 +98,7 @@ 98 98 99 99 Running this following command in a terminal window will tell you exactly why wotaskd is not launching... 100 100 101 -{{code}} 105 +{{code title="Manually Launch wotaskd"}} 102 102 103 103 sudo -u appserver /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/Resources/javawoservice.sh \ 104 104 -appPath /System/Library/WebObjects/JavaApplications/wotaskd.woa/wotaskd ... ... @@ -127,7 +127,7 @@ 127 127 128 128 There are several techniques for dealing with deadlocks and application hangs. 129 129 130 -If you are using a [[profiler>>Programming__WebObjects-Web_Applications-Development-Profiling_WO_Apps]] or debugger, you can generally pause execution and see where exactly your application is dying. 134 +If you are using a [[profiler>>WO:Programming__WebObjects-Web_Applications-Development-Profiling_WO_Apps]] or debugger, you can generally pause execution and see where exactly your application is dying. 131 131 132 132 If you are using JDK 1.4, you can send your application a QUIT signal and it will dump all active threads. On OS X, find the pid of your application, then execute a 'kill QUIT yourAppPID'. The thread stack traces will dump out to the log files. If you do not see any output in your logs, see the //Where's my stderr?// above for possible reasons. 133 133