Hi,

>I am using tomcat 4.06 /AIX, after added some servlet in the web.xml  ,
>I can not shutdown the tomcat by using shutdown.sh command. the process
>still runing in the Unix. and I have to use " kill -9 " to stop the
>tomcat process. the servlet I added is very simple , it initialize my
>jdbc connection pool and create some shared objects.
>Can any one give me some hints ?

The day people start searching the archives of this list before posting,
I will be a happier man indeed.

Your servlet or code it uses is spawning non-daemon threads.  You are
responsible for interrupting and terminating those threads, as tomcat
and the JVM cannot do it for you.  Alternatively, if it's your own, you
mark the threads as daemons so that the JVM will automatically terminate
them.

If you're writing your own connection pool, my suggestion is don't
bother, use an existing implementation like DBCP.

You can send the JVM a SIGQUIT after running shutdown.sh while the JVM
process is still active to see what threads are running and preventing
the process from exiting properly.

This has been discussed numerous times on this list, so you can search
the archives for more information.

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to