• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

java web application time out issue

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

enovironment: jsp, mysql, connection pool.

when i was running my java web application in too many windows like over 40 windows open , i got "The connection has timed out" error. even though in my glassfish i reload application, i still got "The connection was reset". The only way to make it work is to kill glassfish and restart it.

i have been having this problem for days, please give me some suggestions.


tx
 
Ranch Hand
Posts: 75
Eclipse IDE Oracle Java
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Jim

Are you closing your jdbc connections ?
I'm thinking the pool has too few connections available or the connections are not returned to the pool (and your app times out wating for a connection to become available).

Cheers
Claudiu
 
jim li
Ranch Hand
Posts: 180
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Claudiu Chelemen wrote:Hi Jim

Are you closing your jdbc connections ?
I'm thinking the pool has too few connections available or the connections are not returned to the pool (and your app times out wating for a connection to become available).

Cheers
Claudiu




thank you for your suggestion, i already tried it, but it does not work. by the way, when i used jprofiler to monitor the status of the web application, i notice that my application is dead when some threads are blocked (like 5 - 6 threads) while i opened over 10 windows. however, in thread pool : http-thread-pool of my glassfish, if i configure idle timeout from 900s to 60s, i will be able to open more windows like 40 before my applications dies.

 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic