If you want to monitor and administer web applications that’re running inside Apache Tomcat you should have a look at Lambda Probe: it’s a small WAR that can be dropped inside your Tomcat instance and once you’ve done that you can use it to perform administrative tasks.
Installation
The installation for Lambda Probe is pretty easy: download probe.war and copy it to $CATALINA_HOME/webapps/.
Once you’ve done that make sure that the user tomcat has the role manager. Have a look at your tomcat-users.xml file:
<tomcat-users> <role rolename="manager"/> <role rolename="poweruser"/> <role rolename="poweruserplus"/> <role rolename="probeuser"/> <user name="tomcat" password="tomcat" roles="manager" /> </tomcat-users>
You can use the other roles to configure access to Lambda Probe. Have a look at this page if you want to do that.
If you want to have a look at the memory graphs and everything JMX related you’ll have to enable JMX Remote. This comes down to these lines:
export CATALINA_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9080 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false"
That’s it. Now you’re ready to use Lambda Probe.
Conclusion
If you want to monitor and administer web applications inside Apache Tomcat, Lambda Probe seems to be a very nice solution. I recommend to definitely give it a try.
11 comments ↓
I really want to give a try to Lambda probe but unfortunately the Lambda probe web site seems to be unavailable. Do you know another location where I could download this tool?
Thanks,
Bertrand.
Lawrence
could you please send me a link where to download the war (and the sources) after lambdaprobe.org has vanished ?
Thanx a lot!
Thank you so much.
Could you send me the link to download the war file ?
Very big thanks
Could you also send me the same link. Their site still seems unreachable. Many thanks for your time
Robin
lambdaprobe.org is up and you can download the WAR and the source code again.
-Dcom.sun.management.jmxremote.authenticate=falsecould be acceptable on test/dev servers, it is pretty unsecure for production. Read this.thanks you for the hint, I’ll integrate it into the article. Nevertheless, I wrote these instructions for the impatient
Leave a Comment