Using Probe with Tomcat Step 60
It is a good idea for you to be familiar with a profiler or static analysis tool. Profilers can give you information about memory leaks and other needed information to help you improve your code. One tool that you can try is the Lamda Probe which is a tool to analyze your Tomcat applications.
http://www.lambdaprobe.org/d/index.htm
You can download it from the above site and select the Download Lambda Probe on the left hand side. The version I downloaded is probe.1.7b.zip.
When you unzip it, you will notice that the file is called probe.war. Deploy that war file to your webapps folder of your tomcat instance.
You need to add some users to tomcat for this application. Open your tomcat-users.xml file under your tomcat conf folder.
Add these roles to this xml file:
<role rolename="probeuser"/><role rolename="poweruser"/><
role rolename="poweruserplus"/>
and add these users:
<user username="poweruser" password="poweruser" roles="poweruser"/>
<user username="poweruserplus" password="poweruserplus" roles="poweruserplus"/>
<user username="probeuser" password="probeuser" roles="probeuser"/>
<user username="probemanager" password="probemanager" roles="manager"/>
Now you should start your tomcat and visit this URL:
http://localhost:8080/probe/
Login as one of the users you added. I logged in as probeuser with the password as probeuser.
This application will give you data on the memory usage of your tomcat instance.
There are many other static analysis tools that can help you discover memory leaks and other issues you might have in your application.
Go To Step 61

2 comments:
Hi,
I have downloaded LamdaProbe and deployed it on Tomcat 6.0.18 with Axis2 and JDK 1.6.0_06-b02. As soon as I start probe Tomcat is dying.
I have tried variouw options with the Garbage Collection, but untill now to no avail. Do you have any clue?
Kind regards,
Bert Mengerink
I haven't used Axis2 before so I am not familiar with possible issues. However, I have experienced different issues using Tomcat 6.0.18 compared to other versions. Try using an older version of Tomcat just to make sure it isn't Tomcat. What errors do you get that says Tomcat is dying? Do you have any errors in the Tomcat logs?
Post a Comment