The way you are thinking about doing it won't work, since you can't see the
sessions except the one you're in.  What you can do is create a class that
holds these statistics and is updated when you add a new user's session.  It
would probably have a bunch of synchronized accessors to class variables
that allow adding to the counts and totals.  Then your admin servlet could
show the statistics from that class.
    (*Chris*)

----- Original Message -----
From: "Jan Aren�" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 15, 2002 7:04 AM
Subject: [JSP-INTEREST] Monitor memory and sessions


> Is there a way to recieve all the sessions on a webserver and how much
each
> users Beans etc takes up in memory?
>
> Was I was planning to do was an admin page that says how many users that
is
> currently active and how much memory it takes on the server. I also want
to
> see what beans that are active for a specific user. Is there a way or is a
> "no-can-do"?
>
> /Jan
>
>
===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to