Solved

How to check connections or sessions in java

Posted on 2010-09-09
4
494 Views
Last Modified: 2013-12-02
How to check if the connections are released or not .. and how to confirm which threads or processes have initiated the connection or holding the connections
0
Comment
Question by:damodar4u
  • 2
4 Comments
 
LVL 40

Expert Comment

by:gurvinder372
ID: 33636684
0
 
LVL 13

Expert Comment

by:Murali Murugesan
ID: 33659767
if you are using tomcat, can enable connection stack trace by configuring the JNDI in server.xml
You can see where the connection is leaking.

-Murali*
0
 

Author Comment

by:damodar4u
ID: 33661067
MuraliKanth:

can you show me how ...
0
 
LVL 13

Accepted Solution

by:
Murali Murugesan earned 500 total points
ID: 33669230
these are the attributes u need to set in the <context><Resource> </Resource></context>
Set these attributes in Resource tag,

removeAbandoned="true"
removeAbandonedTimeout="60"
logAbandoned="true"
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Verbose logging is used to diagnose garbage collector problems. By default, -verbose:gc output is written to either native_stderr.log or native_stdout.log.   It is also possible to redirect the logs to a user-specified file. This article will de…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

685 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question