We have a very simple J2EE application deployed on Tomcat 4.1.24 using j2sdk1.4.0_04 on Solaris (SunOS artsan 5.9 Generic_112233-11 sun4u sparc SUNW,Sun-Fire-480R). The server has 4 processors and 16GB RAM and is not used at all for any other applications.
After starting Tomcat, the application responds fine. However, the first request to the application AFTER SEVERAL HOURS OF IDLE TIME is very slow. For instance, Tomcat is restarted Monday 9AM. Throughout Monday, requests are handled fine. But when everyone leaves at 5pm, there are no requests until Tuesday at 9AM. And at Tuesday 9AM, the requests are really sluggish. Sometimes it takes 30 seconds, sometimes 2 minutes just to launch the login screen. There have been many occassions where the first request Tuesday 9AM results in Tomcat crashing, and we have to restart Tomcat manually, without any exceptions or problems noted in any of the logs.
Is Tomcat in general very slow on the first request after idle time, given the above platform specs? There is nothing in the Tomcat or application logs that indicates any problems.
I just wanted to get some feedback on certain tweeks that might need to be made possibly in the server.xml for optimizing performance after several hours if not days of idle, stagnant non-usage time. We even have the following set in the startup script:
-Xms2048M -Xmx2048M
Any help would be very appreciated, as I am a novice Solaris/UNIX user. Thanks!
After starting Tomcat, the application responds fine. However, the first request to the application AFTER SEVERAL HOURS OF IDLE TIME is very slow. For instance, Tomcat is restarted Monday 9AM. Throughout Monday, requests are handled fine. But when everyone leaves at 5pm, there are no requests until Tuesday at 9AM. And at Tuesday 9AM, the requests are really sluggish. Sometimes it takes 30 seconds, sometimes 2 minutes just to launch the login screen. There have been many occassions where the first request Tuesday 9AM results in Tomcat crashing, and we have to restart Tomcat manually, without any exceptions or problems noted in any of the logs.
Is Tomcat in general very slow on the first request after idle time, given the above platform specs? There is nothing in the Tomcat or application logs that indicates any problems.
I just wanted to get some feedback on certain tweeks that might need to be made possibly in the server.xml for optimizing performance after several hours if not days of idle, stagnant non-usage time. We even have the following set in the startup script:
-Xms2048M -Xmx2048M
Any help would be very appreciated, as I am a novice Solaris/UNIX user. Thanks!