Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Meena Nimmagadda
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using a pool of database connections, or opening a new connection for every request?
Bill
 
Dave Soto
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic