multithreading - AJP run out of thread -


I have two Apache load balancing to go with the proxy server (named A1, A2) mod_jk, and two Jboss Web server (Nominated J1, J2).

The jabos version is jboss-eap-5.1. Apache version 2.2.15 OS: Red Hat Enterprise Linux Server 6.4 (Santiago) release that both A1 and A2 Colud with both ((port 80) with portfolio with port 8080) J1, J2 (both port 8080) Redirect for. The settings of A1, A2 are the same (except for the host system) J1, J2 have the same settings. (Excluding host and JVMRUT)

I have some problems with this architecture. J1 and J2A1 can process a request well (make a request to request -> create a thread to finish the process -> end -> close thread).

But the request of A2 is weird, when the process is finished, the thread did not stop. And resides in the network connection durability I used jstack PID to check, and there is a lot of the following statements:

  "AJP-XX.XX.72.12- 8009-240 "daemon prio = 10 TID = 0x00007f791418e800 nid = 0x7793 runnable [runnable java.net on java.net.SocketInputStream.read (SocketInputStream.java:129) on org.apache.coyote.ajp.AjpProcessor.read. on SocketInputStream.socketRead0 (Native method): 0x00007f7875d5c000 java.lang.Thread.State] org.apache.coyote.ajp.AjpProcessor.process (AjpProcessor.java:383) on org.apache.coyote.ajp.AjpProcessor.readMessage ( At AjpProcessor.java:1115) (AjpProcessor.java:1036) at org.apache. coyote.ajp.AjpProtocol $ AjpConnectionHandler.process (AjpProtocol.java:385) (thread org.apache.tomcat.util.net.JIoEndpoint $ Worker.run (JIoEndpoint.java:451) at java.lang.Thread.run. Java: 662) ` 

ps-efT compared to the above pid (nid = 0x7793). Grep 30611, can get the following: `xxxx 17869 30611 17821 0 20:40? 00:00:00 / usr / local / java / bin / java -program.name = run.sh ...

And when I use NetState-A inset, so much like this All connections are:

  Proto Recv-Q Message-Q Local Address Foreign Address State TCP 0 npouiap2: 8009 10.100.84.34:49666 Installed TCP 0 npouiap2: 8009 10.100.84.34:50374 installed TCP 0 npouiap2: 8009 10.100.84.34:50507 Installed  

no

may be a problem Threads are AJP Connection as random by default

You can try any one of these options:

  1. Increase maxtrade on xxx "max threads" < Code> mod_jk's

Option 2 is the easiest to apply and verify if the problem persists.


Comments