JBoss hangs for more then 15 seconds
dmtitov Oct 13, 2011 2:31 PMHi Everyone,
I faced very strange issue with JBoss AS 4.0.2 installed on Solaris 10. After startup JBoss works as expected but after a few days it starts to hang for more then 15 seconds. The frequency of such delays are growing each day. After JBoss restart it's works ok for a few days but then an issue start occuring again.
I have the following environment in my lab:
1) C++ application which sends HTTP requests to JBoss server.
2) Appications which are started on JBoss AS which process HTTP requests and generates XML page which is returned as a response.
a) there are approximatelly 10 applications which are interconnected with eachother.
b) applications are pretty complicated. They are using database calls, JBoss API, etc.
c) I have a lot of http requests per sec.
3) CPU usage (~5%) and memory usage are fine.
I think that this is JBoss issue, not an issue of my applications because from the logs I can see that hangs occurs each time in different part of the source code (in JBoss source code and in application source code) and after that hang normal processing continues (no issue is printed from JBoss or app, it just hangs).
Here is some statistics collected from JBoss for a few applications:
App1 (the main one):
Start time: Tue Aug 30 17:59:45 PDT 2011 Startup time: 7 ms TLD scan time: 632 ms
Active sessions: 51 Session count: 107755 Max active sessions: 102 Rejected session creations: 0 Expired sessions: 109552 Longest session alive time: 2647 s Average session alive time: 0 s Processing time: 680 ms
JSPs loaded: 6 JSPs reloaded: 11
App2:
Start time: Tue Aug 30 17:59:53 PDT 2011 Startup time: 6 ms TLD scan time: 591 ms
Active sessions: 0 Session count: 3476 Max active sessions: 8 Rejected session creations: 0 Expired sessions: 3511 Longest session alive time: 2142 s Average session alive time: 9 s Processing time: 133 ms
JSPs loaded: 3 JSPs reloaded: 6
App3:
Start time: Tue Aug 30 17:59:10 PDT 2011 Startup time: 5 ms TLD scan time: 114 ms
Active sessions: 428 Session count: 108260 Max active sessions: 757 Rejected session creations: 0 Expired sessions: 215664 Longest session alive time: 1879 s Average session alive time: 1800 s Processing time: 5214 ms
JSPs loaded: 0 JSPs reloaded: 0
Guys, here are the people who has much more expirience in JBoss then me, so possibly someone faced such issue with JBoss or know some information that could be helpfull for me.
I think that probably it can be concerned with number of threads/pools on JBoss server, as far as I know there are configuration options which can be used to tune JBoss, could you please suggest how can I use them to fix an issue?
Note: currently I'm using the default JBoss configuration.
I'll be appreciated to get any information/opinion that could be helpfull for me!
Thanks in Advance,
Dmitry