Yana Begun wrote:

Hi,

I have stand alone version of our web application running with Tomcat.

Everything is fine, but after displaying 5-6 pages it starts to work
VERY slowly. Like 30 minutes for one page.

CPU is not busy at this moment. It seems like nothing happen or tomcat
falling asleep.

I thought that the problem is the cheap database that we use for this
version, but when I tried to connect to the MSSQL, result was the same.


Any recommendations, what I can check or how I can test this stuff?



Thanks, Yana




Sounds like you need to debug your standalone application. Do you have an environment you can debug with? Using Netbeans you can easily do this. Don't use tomcat as a service and where the jvm is started add these parameters (assuming windows):
-Xdebug -Xrunjdwp:transport=dt_shmem,server=n,address=mywebapp


Now in netbeans 3.6 you would click Debug->Start Session->Attach

in the drop down choose shared memory (windows only is shared memory debug....and I think maybe Solaris).

in the name text field type in mywebapp

Now press ok.

In your app code you should now be able to set some break points and try to track down where the slow points are.

It's better to first try to locate an area before debugging though. Good time logging should allow you to do something like that. You could make a database table and a class to use with it for logging. Then write out some timed logs to this....you use a table so you can query your log and you can put different flags and descriptions in the logged info so you can match up enter/exit to the start and end times.

Another simple scheme that works is to write a class you can use to time operations and then just scatter timed log statements over your code....not too many just enough to give you an idea where the issue is then start narrowing in.

Once you see the general problem you should be able to debug and have ab better idea of where the issue is.

Hope that helps you out.

Wade


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to