Please browse the categories below to previous answers to questions like yours. If you do not find the answer for your particular situation, ask for help on the appropriate mailing list.
(Answer) (Category) Java Apache Project : (Category) Apache JServ 1.0 : (Category) Installation : (Category) Win32 :
How do I kill Apache and the JVM as well when it is run from the command line?
----------
From: Pierpaolo Fumagalli p_fumagalli@fumagalli.org
To: jon * jon@clearink.com
Subject: Re: Failure to die: is it a bug?
Date: Wed, May 12, 1999, 11:38 AM

> > If you "control-C" the Apache process on Win32, it does not
> > kill the JVM.  Thus, if you think that - by merely stopping and
> > restarting Apache this way - you will get the JVM to reload,
> > you will eventually find out that you are in fact wrong.
> >
> > I was wondering if anyone else considers this an Apache bug?
> > I did not notice it filed in Apache bug database.
> 
> I have noticed this as well. I'm not sure that stopping Apache with
> control-c is the proper way to stop it though (I could be wrong so please
> correct me). If it is the proper way to stop it (I don't know the proper
> way), then it is a bug on our part. ;-( If it is not the proper way, then it
> is not a bug on our part. ;-)
> 
That's true... It's an Apache bug... When CTRL-C is pressed the
"shutdown" sequence cannot take place, and so, we cannot close the JVM.
The correct procedure for stopping Apache under windows is calling, from
another MS-DOS prompt window, apache -k shutdown. This kills the things
nicely.
Anyway this happens only when Apache is started manually from the
command line, and not when started as a service from the WindowsNT
control panel (but the command line operation is the only one permitted
under Windows95/98).

I worked a patch on it, against 1.3.0, I don't know if it still works...
I also asked to the new-httpd list, but I got no responses at all... I
merely don't know.....

        Pier
[Append to This Answer]
Previous: (Answer) Installing JServ 1.0b3 on Apache 1.3.6 on Win98
Next: (Answer) Resolving "start_mutex assertion fails"
This document is: http://java.apache.org/faq/?file=157
[Search] [Appearance] [Show Expert Edit Commands]
This is a Faq-O-Matic 2.709.
Please browse the categories below to previous answers to questions like yours. If you do not find the answer for your particular situation, ask for help on the appropriate mailing list.