Solved

How to check connections or sessions in java

Posted on 2010-09-09
4
489 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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

This article is about some of the basic and important steps to be used to improve the performance in web-sphere commerce application development. 1) Always leverage the Dyna-caching facility provided by the product 2) Remove the unwanted code …
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
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.

708 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now