Solved

How to check connections or sessions in java

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
mockito example issue 8 73
starter POM and spring-boot-starter,  spring-boot-web 2 57
Eclipse with gitlab 1 45
Java: The Public Class Main 4 17
Configure Web Service (server application) I. Configure security for Web Services methods First, we need to protect Session bean which implements the service: 1. Open EJB deployment descriptor (ejb-jar.xml) in the EJB project that contains you…
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…
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.

803 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