Howdy, It's a classic thread safety issue. Dump your homebrew connection pooling implementation in favor of a 3rd party one like DBCP that is better tested against these race conditions.
Yoav Shapira Millennium ChemInformatics >-----Original Message----- >From: Vikas [mailto:[EMAIL PROTECTED] >Sent: Friday, December 12, 2003 7:56 PM >To: [EMAIL PROTECTED] >Subject: Need help to study thread dump > > >Hi, > >My app is running on bes 5.1 > >App sometime stops responsding and i have to restart my server. Below is >some portion of thread dump which i got for the app > >"VBJ ThreadPool Worker" daemon prio=5 tid=0x14f1148 nid=0xad70 waiting for >monitor entry [e767d000..e767fc24] > at >com.vks.group.pkg.util.DBConnectionPool.getConnection(DBConnectionPool. java >:166) > - waiting to lock <efdc0158> (a com.vks.group.pkg.util.DBConnectionPool) > at >com.vks.group.pkg.util.DBConnectionPool.isDBPoolOK(DBConnectionPool.jav a:34 >9) > at >com.vks.group.pkg.util.DBConnectionPoolManager.isDBPoolOK(DBConnectionP oolM >anager.java:219) > at com.vks.group.pkg.util.DBUtil.isDBPoolOK(DBUtil.java:681) > at com.vks.group.pkg.util.DBUtil.isDBPoolOK(DBUtil.java:677) > at MyServResponse.processRequest(MyServResponse.java:39) > >From the dump all i could make out is there lock wait on one object to get >database connection. Is it problem with the java code or like problem with >the database unavailabilty. > >We dont get this problem quiet frequently , this come only once in a month >, ie we need to start our server once every month. Has anybody come across >such problem in past , pls help me how to go about solving it. > > > > > >****** >Viks >****** >Yahoo! India Matrimony: Find your partner online.Post your profile. This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]