----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files.  Don't make us guess your problem!!!
----------------------------------------------------------------

At 3:00 PM -0600 3/6/00, Bari, Naeem wrote:
>I would like to write a servlet that reports the number
>of active sessions inside jserv, among other things - basically
>a status page that lists all kinds of info about the running
>jserv instance.
>
>How would I do this without modifying the jserv code itself?
>Maybe I am asking the wrong question?
>
>If anyone has done this could they tell me how?

I use a servlet that dumps the Java thread table to watch Jserv.  Very useful.

Even more useful if your servlets all set their thread's name, and 
their start time.  Made me realize that a servlet can block/die when 
waiting to open the stream to write back to the client.  Made me 
realize that Jserv makes a threadgroup for each zone, but doesn't 
seem to use them (unless my thread walking code is broken).

I will at some point patch Jserv to set the thread name when it spins 
a thread for each service() request, but I'm not comfortable enough 
with the source to do it yet.

Hope this helps.


--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to