• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

very urgent, can not startup tomcat, please help!

 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hello all,
this is very urgent, the customer is getting mad.
I can not startup my tomcat server,
I think the problem was that when I shutdown the server, it was not shutdown properly, so when I start use startup.sh.
it gives me address already in use error.
I think I killed all the ps, by useing kill -9, but still I can not start up the server.
What is the cleanest way to shutdown and start the tomcat3.3??
Please help, indeed very urgent, I do not know how to talk with my boss for now...
thanks.
 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't think the shutdown scripts for Tomcat are very trustworthy - I've seen indications that there were spare Tomcats still running even when I've been scrupulous about shutting down and starting up. The problem is that the standalone server returns before shutdown is complete and the PID file is being removed prematurely (or something that looks like that).
A crude but effective way to kill the cats is to do a "ps --width 300 ax | grep omcat" and kill the top process on the list. When it goes down it will take its children with it. I sometimes find 3 or 4 cats, so if after a reasonable delay there's still a Tomcat listed by ps, repeat as needed. The "--width 300" is because on my system, the part of the process status that I grep on is truncated unless I tell ps to format very long lines.
reply
    Bookmark Topic Watch Topic
  • New Topic