aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "get active session from Tomcat 4" Watch "get active session from Tomcat 4" New topic
Author

get active session from Tomcat 4

Pamungkas Timotius
Greenhorn

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

http://localhost:8080/manager/sessions?path=/QWERTY


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
Sheriff

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: http://aspose.com/file-tools
 
subject: get active session from Tomcat 4