logo       

Jetty/java processes not dieing?: msg#00164

java.jetty.support

Subject: Jetty/java processes not dieing?

I'm seeing an intermittant problem that I'm wondering if anyone else has
seen and has a solution to. I'm using Jetty 4.2.3, running on Red Hat 7.2
and 7.3 (Intel). No JSP, servlet only. Jetty min/max threads of 100/750.
Sun JDK 1.4.1. The problem is that the Java processes don't go away. I
have a small wrapper Java application that creates the Jetty instance, sets
up the web app (we don't use a config file, it's done via code), etc.

The startup looks like (Launcher is the wrapper app, and I've omitted
classpath for brevity):

nohup sh -c "exec java -server -Xms256m -Xmx512m -classpath ... Launcher >>
/www/logs/jetty.log 2>&1" >/dev/null &
echo $! > /www/logs/jetty.pid

The shutdown looks like (where $PID is the value from jetty.pid above):

kill $PID 2>/dev/null
sleep 2
kill -9 $PID 2>/dev/null

Much of the time it seems to work fine, but we've had several times where we
do this, and the java process (and all it's threads) are still there. Doing
another manual kill -9 kills it.

Any ideas?

__
Chris Bailey mailto:chris@xxxxxxxxxxxxxxxxx
Code Intensity http://www.codeintensity.com


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get 128 Bit SSL Encryption!
http://us.click.yahoo.com/CBxunD/vN2EAA/xGHJAA/CefplB/TM
---------------------------------------------------------------------~->

For the latest information about Jetty, please see http://jetty.mortbay.org



Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/





<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise