You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Sachin <sa...@techblue.co.uk> on 2010/06/08 17:17:53 UTC

Website slows down and hangs completely

Hi All

I am using lenya 2.0.3 with firedocs and tomcat 5.5.28.

My website slows down and hangs out completely after some hits. And I am 
facing this very frequently.

I am getting this error in tomcat logs:

08-Jun-2010 14:44:37 org.apache.jk.common.ChannelSocket processConnection
WARNING: processCallbacks status 2
08-Jun-2010 14:44:37 org.apache.jk.core.MsgContext action
WARNING: Error sending end packet
java.net.SocketException: Broken pipe
     at java.net.SocketOutputStream.socketWrite0(Native Method)
     at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
     at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
     at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:518)
     at 
org.apache.jk.common.JkInputStream.endMessage(JkInputStream.java:112)
     at org.apache.jk.core.MsgContext.action(MsgContext.java:293)
     at org.apache.coyote.Response.action(Response.java:182)
     at org.apache.coyote.Response.finish(Response.java:304)
     at 
org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:281)
     at 
org.apache.catalina.connector.Response.finishResponse(Response.java:476)
     at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
     at 
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
     at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
     at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:754)
     at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:684)
     at 
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:876)
     at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
     at java.lang.Thread.run(Thread.java:595)
08-Jun-2010 14:44:37 org.apache.jk.common.ChannelSocket processConnection
WARNING: processCallbacks status 2

Any suggestions?

TIA

Sachin


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Website slows down and hangs completely

Posted by Vik Tara <vi...@propco.co.uk>.
Sac

Do you see anything in the httpd log at the same time?

Vik

On 06/08/2010 04:37 PM, Sachin wrote:
> Hi All
>
> Just checked the tomcat log a bit more and found this error in logs:
>
> SEVERE: All threads (200) are currently busy, waiting. Increase
> maxThreads (200) or check the servlet status.
>
> I do not understand why all the threads are getting busy as I can
> clearly see that the request frequency is very less(one or two hits per
> 10 seconds).
>
> Suggestions welcome.
>
> Regards
> Sac
>
> On Tuesday 08 June 2010 08:47 PM, Sachin wrote:
>> Hi All
>>
>> I am using lenya 2.0.3 with firedocs and tomcat 5.5.28.
>>
>> My website slows down and hangs out completely after some hits. And I
>> am facing this very frequently.
>>
>> I am getting this error in tomcat logs:
>>
>> 08-Jun-2010 14:44:37 org.apache.jk.common.ChannelSocket processConnection
>> WARNING: processCallbacks status 2
>> 08-Jun-2010 14:44:37 org.apache.jk.core.MsgContext action
>> WARNING: Error sending end packet
>> java.net.SocketException: Broken pipe
>> at java.net.SocketOutputStream.socketWrite0(Native Method)
>> at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
>> at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
>> at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:518)
>> at org.apache.jk.common.JkInputStream.endMessage(JkInputStream.java:112)
>> at org.apache.jk.core.MsgContext.action(MsgContext.java:293)
>> at org.apache.coyote.Response.action(Response.java:182)
>> at org.apache.coyote.Response.finish(Response.java:304)
>> at
>> org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:281)
>> at
>> org.apache.catalina.connector.Response.finishResponse(Response.java:476)
>> at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
>>
>> at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
>> at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
>> at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:754)
>> at
>> org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:684)
>>
>> at
>> org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:876)
>>
>> at
>> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
>>
>> at java.lang.Thread.run(Thread.java:595)
>> 08-Jun-2010 14:44:37 org.apache.jk.common.ChannelSocket processConnection
>> WARNING: processCallbacks status 2
>>
>> Any suggestions?
>>
>> TIA
>>
>> Sachin
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
>> For additional commands, e-mail: user-help@lenya.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Website slows down and hangs completely

Posted by Thorsten Scherler <sc...@gmail.com>.
On Tue, 2010-06-08 at 21:07 +0530, Sachin wrote:
> Hi All
> 
> Just checked the tomcat log a bit more and found this error in logs:
> 
> SEVERE: All threads (200) are currently busy, waiting. Increase 
> maxThreads (200) or check the servlet status.

Hmm, since I know you are using ws, are you sure that you close all
threads that are handling the communication with the back end? It seems
a problem of not closing open threads.

Another possibility is that you simply open too many threads for getting
the information of a page. You can use something like
http://www.wireshark.org to debug the traffic and eclipse to debug the
java threads. You just need to enable the jda debug in tomcat that you
then can connect.

HTH

salu2

> 
> I do not understand why all the threads are getting busy as I can 
> clearly see that the request frequency is very less(one or two hits per 
> 10 seconds).
> 
> Suggestions welcome.
> 
> Regards
> Sac
> 
> On Tuesday 08 June 2010 08:47 PM, Sachin wrote:
> > Hi All
> >
> > I am using lenya 2.0.3 with firedocs and tomcat 5.5.28.
> >
> > My website slows down and hangs out completely after some hits. And I 
> > am facing this very frequently.
> >
> > I am getting this error in tomcat logs:
> >
> > 08-Jun-2010 14:44:37 org.apache.jk.common.ChannelSocket processConnection
> > WARNING: processCallbacks status 2
> > 08-Jun-2010 14:44:37 org.apache.jk.core.MsgContext action
> > WARNING: Error sending end packet
> > java.net.SocketException: Broken pipe
> >     at java.net.SocketOutputStream.socketWrite0(Native Method)
> >     at 
> > java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
> >     at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
> >     at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:518)
> >     at 
> > org.apache.jk.common.JkInputStream.endMessage(JkInputStream.java:112)
> >     at org.apache.jk.core.MsgContext.action(MsgContext.java:293)
> >     at org.apache.coyote.Response.action(Response.java:182)
> >     at org.apache.coyote.Response.finish(Response.java:304)
> >     at 
> > org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:281)
> >     at 
> > org.apache.catalina.connector.Response.finishResponse(Response.java:476)
> >     at 
> > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) 
> >
> >     at 
> > org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
> >     at 
> > org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
> >     at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:754)
> >     at 
> > org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:684) 
> >
> >     at 
> > org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:876) 
> >
> >     at 
> > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) 
> >
> >     at java.lang.Thread.run(Thread.java:595)
> > 08-Jun-2010 14:44:37 org.apache.jk.common.ChannelSocket processConnection
> > WARNING: processCallbacks status 2
> >
> > Any suggestions?
> >
> > TIA
> >
> > Sachin
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> > For additional commands, e-mail: user-help@lenya.apache.org
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
> 

-- 
Thorsten Scherler <thorsten.at.apache.org>
Open Source Java <consulting, training and solutions>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Website slows down and hangs completely

Posted by Sachin <sa...@techblue.co.uk>.
Hi All

Just checked the tomcat log a bit more and found this error in logs:

SEVERE: All threads (200) are currently busy, waiting. Increase 
maxThreads (200) or check the servlet status.

I do not understand why all the threads are getting busy as I can 
clearly see that the request frequency is very less(one or two hits per 
10 seconds).

Suggestions welcome.

Regards
Sac

On Tuesday 08 June 2010 08:47 PM, Sachin wrote:
> Hi All
>
> I am using lenya 2.0.3 with firedocs and tomcat 5.5.28.
>
> My website slows down and hangs out completely after some hits. And I 
> am facing this very frequently.
>
> I am getting this error in tomcat logs:
>
> 08-Jun-2010 14:44:37 org.apache.jk.common.ChannelSocket processConnection
> WARNING: processCallbacks status 2
> 08-Jun-2010 14:44:37 org.apache.jk.core.MsgContext action
> WARNING: Error sending end packet
> java.net.SocketException: Broken pipe
>     at java.net.SocketOutputStream.socketWrite0(Native Method)
>     at 
> java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)
>     at java.net.SocketOutputStream.write(SocketOutputStream.java:136)
>     at org.apache.jk.common.ChannelSocket.send(ChannelSocket.java:518)
>     at 
> org.apache.jk.common.JkInputStream.endMessage(JkInputStream.java:112)
>     at org.apache.jk.core.MsgContext.action(MsgContext.java:293)
>     at org.apache.coyote.Response.action(Response.java:182)
>     at org.apache.coyote.Response.finish(Response.java:304)
>     at 
> org.apache.catalina.connector.OutputBuffer.close(OutputBuffer.java:281)
>     at 
> org.apache.catalina.connector.Response.finishResponse(Response.java:476)
>     at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) 
>
>     at 
> org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
>     at 
> org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
>     at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:754)
>     at 
> org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:684) 
>
>     at 
> org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:876) 
>
>     at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684) 
>
>     at java.lang.Thread.run(Thread.java:595)
> 08-Jun-2010 14:44:37 org.apache.jk.common.ChannelSocket processConnection
> WARNING: processCallbacks status 2
>
> Any suggestions?
>
> TIA
>
> Sachin
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org