Janne,

When running Tomcat as a Windows service it will appear in the task manager as 
- for instance - "Tomcat5.exe".
For each instance I use to rename the Tomcat executable to the instance name, 
so to distinguish between them easily.
Note that you will have to change a bit the service installer batch.
You can then run or schedule a batch that does a "net stop servicename" first 
and then a kill, you never know. The kill command is
in the Support Tools kit.

By the way, I just discovered that the Windows service installer installs 
Tomcat without the juli LogManager, so you will have to
copy a line from the catilina.bat/sh to enable it.

Hope it helps,
b.

----- Original Message ----- 
From: "jimpo" <[EMAIL PROTECTED]>
To: <users@tomcat.apache.org>
Sent: Tuesday, November 20, 2007 10:10 AM
Subject: Killing tomcat java process, Windows


>
> I run two separate tomcat 6 instances on my development environment. Once I
> have redeployed the application enough times, the tomcat java.exe freezes
> and has to be shutdown using control-c. shutdown.bat does not work most of
> the times. I start the tomcat processes with startup.bat, they are not
> windows services.
>
> < I know, one path is to try and fix the redeployment problem, but let's not
> go there in this thread >
>
> I would like to create a .bat script which shuts down the frozen tomcat
> java.exe processes (and calls startup.bat scripts). How could I accomplish
> this in Windows? In unix I would have plenty of tools (ps/grep/kill/etc),
> but can this be done in Windows? The process name alone is not enough to
> identify the tomcat processes, as there are several java.exe processes
> running.
>
> What about running the instances as windows services, can those be killed /
> started again more easily?
> -- 
> View this message in context: 
> http://www.nabble.com/Killing-tomcat-java-process%2C-Windows-tf4842107.html#a13853324
> Sent from the Tomcat - User mailing list archive at Nabble.com.
>
>



---AV & Spam Filtering by M+Guardian - Risk Free Email (TM)---


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to