JBoss hangs up for exactly 60 sec.
vladimir_l Oct 28, 2003 4:08 PMI'm fairly new to JBoss so may be the problem I have is not a problem at all.
Background.
There is a project that consists of about 60 business objects placed in 70 tables of Oracle database. To simplify the development and reduce the time middlegen (http://boss.bekk.no/boss/middlegen/) was used to generate the local entity EJB's with CMP and CMR. The struts templates generated by middlegen are used to access and manage business objects that are represented by EJB's.
After some script modifications and small changes to the generated deployment descriptor I managed to deploy enterprise archive under JBoss (with truly much less problems then under BEA WebLogic).
But life isn't only a barrel of honey!
Problem.
Trying to display a web page with information about 20 entities of a certain business object (regardless how big the table in database is - 40 or 2,000,000 entries) I have experienced the following problem: JBoss indefinably hangs from time to time, while displaying those 20 entries.
Going through the server.log file and JBoss output didn't come to me with an explanation of the problem - there is no one error in both log files.
Deeper analysis of server.log file revealed to me a very interesting fact: place where local EJB entities are requested and created is passed very fast (it happens in one of the struts action class) then references to retrieved EJB's are propagated to the jsp-pages to generate HTML output for the client.
And here while parsing (or maybe preparing jsp) JBoss suddenly at undetermined moment hangs up for exactly one minute (60 + 1 seconds). Any activity of JBoss is stopped and it doesn't write anything to a log file. After 61 seconds JBoss wakes up and continues. If I'm lucky enough it happens only once or twice per page and I'm able to see the results on the client, if it is more then 4 times the page is never displayed in the browser, until I repeat my request.
Questions and assumptions.
It seems to me that it's some kind of internal timeout of JBoss. I've tried JBoss 3.2.2RC1, JBoss 3.2.2RC4 with Tomcat, JBoss 3.2.2 RC4 with Jetty the same problem remains with all of these versions of JBoss. Could anybody please explain what kind of JBoss timeout (default timeout) is set to 60 sec. and what is the reason for JBoss to wait?
During that time the processor isn't use, the traffic between server and database is zero, JBoss is obviously waiting for something, but what it is waiting for?
I'm looking forward to any help, ideas, and assumptions about this weird problem.
Thank you in advance!
Vladimir