This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

stopping tomcat on windows 7

 
ahmad elsafty
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all, when stopping tomcat 7 on windows 7 it causes hanging the whole system, I tried stopping tomcat standalone by executing shutdown.bat, from netbeans 7, and from eclipse, all causes system to hang, nothimg abput stopping error written in logs. ANY ONE HAS ANY IDEA?
Thanks for Concern.
Ahmad Elsafty
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, Ahmad!

Are you saying that your entire computer is locking up, or is it just Tomcat?

When Tomcat is stopped, it shuts down the webapps, but the webapps may be running threads that prevent the main JVM from stopping. In that case, you'd have to figure out which webapp was at fault.

If the entire machine is having problems, you may be starved for resources. Using the Task Manager, check for excessive CPU and/or paging activity. You may have to add more memory or something.
 
ahmad elsafty
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Tim for your appreciation, my tomcat starts successfully, but at stopping it hangs my windows completely, neither keyboard nor mouse respond to any action, I am compelled to restart my machine.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13064
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Exactly how was Tomcat installed - as a service or as an application?

If an application, how are you starting Tomcat? From a command prompt or ?

Is this a standard Tomcat installation or have you added your own application?

Bill
 
ahmad elsafty
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my first post I said that I have tried three installations of tomcat, first is standalone tomcat which downloaded as .zip file not .exe and running it from %TOMCAT_HOME%\bin\startup.bat batch, second is Netbeans7 bundeled tomcat, third is standalone tomcat after adding it to eclipse.
That's all.
 
ahmad elsafty
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My env. is Windows 7 ultimate, Java 7 (also I tried it on Java 6), Tomcat 7, Netbeans 7, Eclipse Helios.
I have tried tomcat, netbeans, ans eclipse on others environments, (Ubuntu 11.04, and Windows XP) and it runs fine.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic