File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and Relational Databases and the fly likes About Number of Connection Statement and RsultSet objects Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "About Number of Connection Statement and RsultSet objects" Watch "About Number of Connection Statement and RsultSet objects" New topic
Author

About Number of Connection Statement and RsultSet objects

hem kum
Greenhorn

Joined: Dec 23, 2007
Posts: 9
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

Joined: Oct 14, 2005
Posts: 19553
    
  10

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

Joined: Jun 26, 2002
Posts: 862
Jamon tracks that and more.


http://www.jamonapi.com/ - a fast, free open source performance tuning api.
JavaRanch Performance FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: About Number of Connection Statement and RsultSet objects