aspose file tools*
The moose likes Servlets and the fly likes servlets and JSP's running slowly with Resin/Tomcat servlet engine Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlets and JSP Watch "servlets and JSP New topic
Author

servlets and JSP's running slowly with Resin/Tomcat servlet engine

Meena Nimmagadda
Greenhorn

Joined: Sep 20, 2001
Posts: 1
Hi!
I am developing an online game for my website.I am using servlets and JSP's for this purpose....I could see that they all are running well and giving me the necessary output...i.e session data which I am storing in Postgres database but then the problem is that if I open the browser in 2 machines simultaneously and enter the URL of my website, the whole process of navigation is getting slow. I tried running servlets with both Tomcat and Resin servlet engines and I am getting the same problem.
I am using Apache Web server.
any help is appreciated.
thanks.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12835
    
    5
Are you using a pool of database connections, or opening a new connection for every request?
Bill
Dave Soto
Ranch Hand

Joined: Sep 15, 2001
Posts: 55
Also, saving session data in your Postgres database is not a good idea, and can definitely negatively influence performance. Try saving it into an HttpSession.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: servlets and JSP's running slowly with Resin/Tomcat servlet engine