This week's book giveaway is in the Java in General forum.
We're giving away four copies of Think Java: How to Think Like a Computer Scientist and have Allen B. Downey & Chris Mayfield on-line!
See this thread for details.
Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tomcat 4.0 running slow !!!

 
Rajeev Ravindran
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
Im using Tomcat 4.0 and MS-Access. Im woking on a web application which include abt 150 jsp pages and lots of database manipulation. My problem is that my application runs very slow after 10-15 processing.. I mean, if i close the Tomcat server and restart it, then it works very properly..im using connection pool for database manipulation..Wat cld be the problem ?? I'm follwing MVC architecture for my project.
cld any1 help me ???
Thanks,
raj

SCJP2
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One possibility would be that your application is using an increasing amount of memory and the slowdown is due to the operating system paging memory in and out. Do you see alot of disk activity? Can you watch the memory in use?
Bill
 
Rajeev Ravindran
Ranch Hand
Posts: 455
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi william,
Thanks for ur reply and u were absolutely right !! I checked my system's memory usage and it keeps on increasing after each process.. Cld u tell me how to rectify this situation ??
Thanks,
raj.
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13061
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are going to have to conduct a very careful review of the code. In particular, make sure you are properly closing and disposing of the JDBC related classes. I have heard that they are frequently the cause of such problems if not properly disposed of.
Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic