• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 511
  • Last Modified:

How to check connections or sessions in java

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
nicky s
Asked:
nicky s
  • 2
1 Solution
 
Murali MurugesanFull stack Java developerCommented:
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
 
nicky sAuthor Commented:
MuraliKanth:

can you show me how ...
0
 
Murali MurugesanFull stack Java developerCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now