Re: Daemon Thread Problem in J-T-C

2002-04-25 Thread Pier Fumagalli

"Craig R. McClanahan" <[EMAIL PROTECTED]> wrote:

> Indeed, a thread dump after the shutdown command is executed shows a bunch
> of active threads, including those suspended by a wait() at:
> org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable.run(ThreadPool.java:
> 407)
> org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable.run(ThreadPool.java:
> 495)
> org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable.run(ThreadPool.java:
> 495)
> org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable.run(ThreadPool.java:
> 495)

Do we still really need a thread pool? I believe that the major
pain-in-the-neck (Linux) will go away once 2.4.19 gets out of the door once
IBM's code get into there (has been approved)...

Solaris does thread-pooling already in kernel, and windows (oh well, let's
just dump it), I don't know...

Any performance ideas (latest stats I've seen are of several years ago,
Jserv time)...

Pier

--
I think that it's extremely foolish to name a server after the current U.S.
President. B.W. Fitzpatrick



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Daemon Thread Problem in J-T-C

2002-04-22 Thread Remy Maucherat

> With the latest and greated J-T-C code, the HEAD branch of Tomcat 4
> doesn't shut down cleanly.  Usually, this implies that somebody forgot to
> mark their threads as daemon threads (or otherwise clean them up at
> shutdown time).
>
> Indeed, a thread dump after the shutdown command is executed shows a bunch
> of active threads, including those suspended by a wait() at:
>
org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable.run(ThreadPool.jav
a:407)
>
org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable.run(ThreadPool.jav
a:495)
>
org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable.run(ThreadPool.jav
a:495)
>
org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable.run(ThreadPool.jav
a:495)
>
> Could someone working on the thread pool code please take a look at this?

These days, I was always shutting down Tomcat using the shutdown hook,
instead of the shutdown script, so I didn't notice it. It appears to be
working now.

Remy


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Daemon Thread Problem in J-T-C

2002-04-22 Thread Craig R. McClanahan

With the latest and greated J-T-C code, the HEAD branch of Tomcat 4
doesn't shut down cleanly.  Usually, this implies that somebody forgot to
mark their threads as daemon threads (or otherwise clean them up at
shutdown time).

Indeed, a thread dump after the shutdown command is executed shows a bunch
of active threads, including those suspended by a wait() at:
  org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable.run(ThreadPool.java:407)
  org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable.run(ThreadPool.java:495)
  org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable.run(ThreadPool.java:495)
  org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable.run(ThreadPool.java:495)

Could someone working on the thread pool code please take a look at this?

Craig



--
To unsubscribe, e-mail:   
For additional commands, e-mail: