how to select main class for tomcat web application

M

manish from ny

Hi java gurus,

I am trying to investigate a memory leak in my web application because
it gives Out Of Memory errors. I am using the trial version of Borland
Optimizeit tool.

This is a web application consisting of JSPs, servlets and java
classes. There is no main class to fire this, the user accesses it
using a login page.

My question is, what should be the main class which should be provided
to the profiler so that it can start profiling?

Any help is highly appreciated.

Thanks,
Manish
 
M

Mike Schilling

manish from ny said:
Hi java gurus,

I am trying to investigate a memory leak in my web application because
it gives Out Of Memory errors. I am using the trial version of Borland
Optimizeit tool.

This is a web application consisting of JSPs, servlets and java
classes. There is no main class to fire this, the user accesses it
using a login page.

My question is, what should be the main class which should be provided
to the profiler so that it can start profiling?

To write a main class that runs your web app, you'd need to implement a fair
amount of a web server. Can't Optimizeit attach to the web server? If not,
and your application can run in Tomcat and displays the same problem there,
you should be able to have Optimizeit run Tomcat's main class, which you
should be able to find by inspecting startup.bat. (This may work with other
web containers as well, but I know it'll work with Tomcat, which is 100%
Java, and runs in a single process)
 
M

manish from ny

Thanks Mike for your response. I attached the tomcat main class
jakarta-tomcat-5.0.28\bin\bootstrap.jar with the profiler. I am getting
the profiled data but it shows only the tomcat classes, the data does
not contain my application's classes. For example, in the reference
graph of heap states, it shows classes like org.apache.catalina.* etc.
Is there anything else I need to do?

I appreciate your help.

Regards,
Manish
 
M

Mike Schilling

manish from ny said:
Thanks Mike for your response. I attached the tomcat main class
jakarta-tomcat-5.0.28\bin\bootstrap.jar with the profiler. I am getting
the profiled data but it shows only the tomcat classes, the data does
not contain my application's classes. For example, in the reference
graph of heap states, it shows classes like org.apache.catalina.* etc.
Is there anything else I need to do?

At this point you need real information about Optimizeit, from their manuals
or their support; you're beyond anything I know about.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,681
Members
48,796
Latest member
Greg L.

Latest Threads

Top