aspose file tools*
The moose likes Tomcat and the fly likes Tomcat manager takes forever to load after hard restart Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat manager takes forever to load after hard restart" Watch "Tomcat manager takes forever to load after hard restart" New topic
Author

Tomcat manager takes forever to load after hard restart

jd wong
Greenhorn

Joined: Apr 18, 2011
Posts: 9
Tomcat will randomly decide to take forever retrieving URLs that would normally occur instantaneously. When this happens I run a shutdown.sh, find and kill the tomcat process that is still running after shutdown for some reason, then startup.sh it back up. Accessing manager/html takes many minutes after such a reset. It shouldn't be taking this long.

Has anyone else run into this problem?

Thanks!
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16228
    
  21

jd wong wrote:
Has anyone else run into this problem?


No. Does your machine have enough RAM? Does the disk light stop blinking and remain solidly on?


Customer surveys are for companies who didn't pay proper attention to begin with.
jd wong
Greenhorn

Joined: Apr 18, 2011
Posts: 9
It's a server, it is still running. It is only tomcat that freezes. What I do is cntrl+C it, then follow those steps i mentioned above. My machine has over 32G of ram, and tomcat usually runs fast on it. Could it be that running a hard restart (of tomcat not the machine) causes it to startup slower?

Cheers!
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16228
    
  21

Unless either your hardware or Tomcat are damaged, Tomcat alone, or Tomcat + admin webapps typically starts up in under 10 seconds. You should be able to track the startup process in the stdout (catalina.out) file. You can try clearing out the TOMCAT_HOME/temp and TOMCAT_HOME/work directories to get rid of possibly-stale files before starting. I always do that when deploying a new version of a webapp.

On the other hand, one particularly ill-written app I once inherited took over 30 minutes to "start up Tomcat" because the fool that designed it attempted to load entire database tables into RAM on startup - in the servlet init methods.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Tomcat manager takes forever to load after hard restart