File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Tomcat and the fly likes get active session from Tomcat 4 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "get active session from Tomcat 4" Watch "get active session from Tomcat 4" New topic

get active session from Tomcat 4

Pamungkas Timotius

Joined: May 22, 2005
Posts: 26
To get number of active sessions on Tomcat, ussualy I use following URL on my browser


Now the problem is, production-machine Tomcat using console, running on Unix based machine... without any GUI
What should I do to achieve same purpose??
Ben Souther

Joined: Dec 11, 2004
Posts: 13410

You can use wget if you have it installed (most Linux distros have it).

wget -O - -q --http-user=me --http-passwd=MyPasswd http://localhost:8080/manager/sessions?path=/QWERTY

Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
I agree. Here's the link:
subject: get active session from Tomcat 4
It's not a secret anymore!