Profile Image
Alfredo Larotonda

JBoss Application server not able to serve request coming from apache proxy

Hi,

i have two application server load balanced by an apache proxy wich uses ajp protocol

After some hours the application server hangs up and it's unable to server request. It seems that ajp thread remain blocked or in waiting accessing database and after a period of time this causes the sysrtem to be unresponsive.

Could you please give me andvice? This is a thread dump of a server that doesn't respond.

thread dump before restarting server 

Thanks a lot

Alfredo

 

Report URL - https://fastthread.io/my-thread-report.jsp?p=c2hhcmVkLzIwMjEvMTIvMzAvLS10aHJlYWRkdW1wNTUtMzExMjIwMjEtMTM1My50eHQtLTEzLTE4LTk=

  • jbossapplication

  • ajpprotocol

  • apacheproxy

Please Sign In or to post your comment or answer

Profile Image

Mahesh

Hi Alfredo,

 

It looks like 11 ajp threads are stuck because they are waiting for a response from the external service. Here is a stack trace of thread - 

stackTrace:
java.lang.Thread.State: RUNNABLE
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:152)
at java.net.SocketInputStream.read(SocketInputStream.java:122)
at org.apache.coyote.ajp.AjpProcessor.read(AjpProcessor.java:1124)
at org.apache.coyote.ajp.AjpProcessor.readMessage(AjpProcessor.java:1206)
at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:438)
at org.apache.coyote.ajp.AjpProtocol$AjpConnectionHandler.process(AjpProtocol.java:420)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:926)
at java.lang.Thread.run(Thread.java:745)
Locked ownable synchronizers:
- None

 

JDK's java.net layer uses SocketInputStream.socketRead0() API to read and receive the data from the external application. Sometimes your application might not get a response from the external applications. In that case, your application thread will be stuck in this java.net.SocketInputStream.socketRead0() API.

Profile Image

Ram Lakshmanan

Hello Alfredo!

 

 I don't see any problems in this thread dump. Is this question redundant/duplicate of the question posted here: https://answers.ycrash.io/question/application-server-doesnt-serve-request-due-to-blocked-thread?q=520

Profile Image

Alfredo Larotonda

Hi Ram,

yes it is.

Thanks a lot for your reply , we are investigating the problem and your help is very valuable.

Alfredo

Got something else on mind? Post Your Question

Not the answer you're looking for? Browse other questions tagged
  • jbossapplication

  • ajpprotocol

  • apacheproxy