• Post Reply Bookmark Topic Watch Topic
  • New Topic

About Number of Connection Statement and RsultSet objects

 
hem kum
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI all, I'm just curious to know if there is any way to know how many instances of Connection objects , Statement objects or ResultSet objects are being used in my application and even if i forget to close some instances, Still how many are left behind. I'm using jndi connectin with mysql database and netbeans IDE.
Thank you all...
 
Paul Clapham
Sheriff
Posts: 21991
36
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Most profilers will give you that kind of information. I believe that Netbeans includes a profiler, but I don't know anything about it.
 
steve souza
Ranch Hand
Posts: 862
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jamon tracks that and more.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!