• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

Application open slow

 
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi List[],

We have developed a application using strut2 and tomcat 5.5 application server.
Some time in our intranet our application does not open .And some times its open very fast.

Can any tell me why such problem comes.

Thanks
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If actual errors are occurring, the server logs should give you a hint.

If a database connection must be created, that could be slowing things down.

Bill
 
Ranch Hand
Posts: 862
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any number of problems could cause this. You need to profile your application. www.jamonapi.com is an option.
 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Even when i check my server machine at that point of time it also get slow.


 
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Did you check the server load and which process is eating the resources? If your server is on linux you can check using "top" command.

You will have to monitor all the machines on which app server/db server/web server are running and then probably you can reach to some conclusion.
 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Our Server is installed in windows 2003 server.
and our DB is also installed in same machine.

But how can i check the server load.


Thanks
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

When dealing with performance issue the best approach is "Divide & Rule"

Separate out individuals modules and note the time taken by each module as your request flows thru the application.

1. Check the time in server logs taken for each module. Best thing is to log em.
2. DB calls should be timed separately . (Run the query stand alone directly in DB and record the time)
3. Try to isolate any network problems.
4. Memory issues can also lead to slowness. Adding JVM logging and check the logs for any Major GC events.

 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Actually the problem is that even our application home page not open at that point of time.
After that i always restart the server machine and after that our application runs perfect and so on...


 
manoj r patil
Ranch Hand
Posts: 182
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can check the Processes tab of Windows Task Manager, it gives you which process is eating resources and then in next step, you check why that process is eating the resources.

you can get a quick glance by looking at Performance tab of this window as well.
 
pankaj semwal
Ranch Hand
Posts: 303
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I check the CPU memory usage at that point of time .It tomcat5.exe consumes lot of memeroy at that time.

 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I would use the Tomcat Manager app to check the status of current request Thread and memory use.

Manager is not part of the standard download, you have to install it separately.

Have you checked the Tomcat logs - sometime the cause becomes very obvious.

Bill

 
This is awkward. I've grown a second evil head. I'm going to need a machete and a tiny ad ...
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic