File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes stopping tomcat on windows 7 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "stopping tomcat on windows 7" Watch "stopping tomcat on windows 7" New topic

stopping tomcat on windows 7

ahmad elsafty

Joined: Jul 31, 2011
Posts: 4
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

Joined: Jun 25, 2001
Posts: 17417

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.

An IDE is no substitute for an Intelligent Developer.
ahmad elsafty

Joined: Jul 31, 2011
Posts: 4
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

Joined: Mar 22, 2000
Posts: 13037
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?

ahmad elsafty

Joined: Jul 31, 2011
Posts: 4
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

Joined: Jul 31, 2011
Posts: 4
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.
I agree. Here's the link:
subject: stopping tomcat on windows 7
It's not a secret anymore!