tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: SV: SV: SV: When will tomcat 5.5.25 spawn a new process
Date Fri, 20 Feb 2009 12:02:14 GMT
Gunnar.Bostrom@tieto.com wrote:
> Hi,
> I think there is some problem (rarely) when calling CGI.

Try using the CGIServlet from trunk. It should work on 5.5.x and I think
there have been a number of fixes since 5.5.25. You do a diff to be sure.

Mark

> For each "daemon" tomcat process I can see 2 threads like this:
> 
> "Thread-68" daemon prio=10 tid=0x003ee348 nid=0xac runnable [0xacb7f000..0xacb7fa70]
> 	at java.io.FileInputStream.readBytes(Native Method)
> 	at java.io.FileInputStream.read(Unknown Source)
> 	at java.lang.UNIXProcess$DeferredCloseInputStream.read(Unknown Source)
> 	at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(Unknown Source)
> 	at sun.nio.cs.StreamDecoder$CharsetSD.implRead(Unknown Source)
> 	at sun.nio.cs.StreamDecoder.read(Unknown Source)
> 	- locked <0xb9d46378> (a java.io.InputStreamReader)
> 	at java.io.InputStreamReader.read(Unknown Source)
> 	at java.io.BufferedReader.fill(Unknown Source)
> 	at java.io.BufferedReader.readLine(Unknown Source)
> 	- locked <0xb9d46378> (a java.io.InputStreamReader)
> 	at java.io.BufferedReader.readLine(Unknown Source)
> 	at org.apache.catalina.servlets.CGIServlet$CGIRunner.sendToLog(CGIServlet.java:1860)
> 	at org.apache.catalina.servlets.CGIServlet$CGIRunner.access$400(CGIServlet.java:1435)
> 	at org.apache.catalina.servlets.CGIServlet$1.run(CGIServlet.java:1709)
> 
> "process reaper" daemon prio=10 tid=0x003ee040 nid=0xab runnable [0xad97f000..0xad97f8f0]
> 	at java.lang.UNIXProcess.waitForProcessExit(Native Method)
> 	at java.lang.UNIXProcess.access$900(Unknown Source)
> 	at java.lang.UNIXProcess$2$1.run(Unknown Source)
> 
> 
> It seems to hang on the readLine in CGIServlet.sendToLog.
> 
> We use Tomcat 5.5.25.
> Any suggestion?
> 
> Thanks
> /Gunnar
> 
> 
> 
>> -----Ursprungligt meddelande-----
>> Från: Christopher Schultz [mailto:chris@christopherschultz.net] 
>> Skickat: den 19 februari 2009 16:29
>> Till: Tomcat Users List
>> Ämne: Re: SV: SV: When will tomcat 5.5.25 spawn a new process
>>
> Gunnar,
> 
> On 2/19/2009 8:42 AM, Gunnar.Bostrom@tieto.com wrote:
>>>> I tried kill -3 on the pids but did not get any output.
> Note that stdout is usually written to catalina.out. Check 
> there for a thread dump.
> 
>>>> We use jsvc to start tomcat so we can run on port 443 
> without being root.
>>>> When started I see the expected 2 processes. 
>>>> One day we started tomcat around 10 pm and the first extra 
> process started around 9 am next day.
>>>> I don't think the load is high either.
> Are the child processes running java or perl?
> 
> -chris
> 
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
>>
>>

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




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


Mime
View raw message