aspose file tools*
The moose likes Tomcat and the fly likes tomcat takes forever to start Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "tomcat takes forever to start" Watch "tomcat takes forever to start" New topic
Author

tomcat takes forever to start

Taylor Simpson
Greenhorn

Joined: Oct 06, 2010
Posts: 6
hi all.i got a tomcat 6 and installed as window services. after i update my server firmware and start my tomcat it takes long time to start..nearly 1 hour..the log is clean, no error but it just slow.

anyone have any idea how to investigate further?

thanks alot
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10451
    
    8

One hour!!! That's ridiculous.
Way I look at things, you got these options
1) Reinstall the existing service. The upgrade might have messed up something
2) If that doesn't work, try using it as a non service and observe what happens
3) If that doesn't work, consider moving to [url=http://www.ubuntu.com/]Ubuntu[url]


[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Taylor Simpson
Greenhorn

Joined: Oct 06, 2010
Posts: 6
Maneesh Godbole wrote:One hour!!! That's ridiculous.
Way I look at things, you got these options
1) Reinstall the existing service. The upgrade might have messed up something
2) If that doesn't work, try using it as a non service and observe what happens
3) If that doesn't work, consider moving to [url=http://www.ubuntu.com/]Ubuntu[url]


yes..that's freaking me out..i not sure what is happening..i tried reinstall tomcat service - no help

run as console still slow..how can i drill down to see whats holding tomcat start up so slow??
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10451
    
    8

Taylor Simpson wrote:
run as console still slow..how can i drill down to see whats holding tomcat start up so slow??

Can you copy paste the log for the console?
Also, how are you checking if Tomcat is up? http://localhost:8080 ?
Taylor Simpson
Greenhorn

Joined: Oct 06, 2010
Posts: 6
Maneesh Godbole wrote:
Taylor Simpson wrote:
run as console still slow..how can i drill down to see whats holding tomcat start up so slow??

Can you copy paste the log for the console?
Also, how are you checking if Tomcat is up? http://localhost:8080 ?


this the log



its like forever stop at starting servlet engine

yes i use http://localhost:8080 and also my application http://localhost:8080/my_aps/
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10451
    
    8

Can you post the full log till the line which says something like
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12803
    
    5
If this was my problem I would remove all applications but a simple index.html at ROOT - if THAT is slow to boot something is very wrong.

If that is fast, add back applications one at a time.

Bill
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16140
    
  21

I've never actually seen a damaged Tomcat take long periods of time to start. They generally simply fail, instead.

On the other hand, some yokel handed me a webapp that essentially uploaded an entire database into RAM at startup time. That one took over half an hour per restart.

I fixed the app. Changed the way it fetched data and dropped the startup time for server plus app to 23 seconds.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: tomcat takes forever to start