?
Solved

How to check connections or sessions in java

Posted on 2010-09-09
4
Medium Priority
?
497 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
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 2000 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

Limited time offer using promo code EXPERTS30

Designed with a wealth of functionality and convenience, ATEN's new Thunderbolt™ 2 Sharing Switch takes your Thunderbolt setup to the next level. Now through September 15, 2017, Experts Exchange members get 30% off the US7220 on the ATEN USA eShop using promo code EXPERTS30.

Question has a verified solution.

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

This exercise is about for the following scenario: Dmgr and One node with 2 application server. Each application server contains it owns application. Application server name as follows server1 contains app1 server2 contains app1 Prereq…
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.
Suggested Courses
Course of the Month12 days, 19 hours left to enroll

777 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