Recommended profiler for finding non-heap (native) memory leaks w/ JDBC

I'm running a java application and notice the process continues to grow in size until it consumes all available system memory.

At first, I thought it was a heap problem, but I ran Jprofiler for awhile and heap size appeared to be stable. I believe it's a leak with the JDBC connections, but I went through my code and made sure all ResultSet, Connection, and PreparedStatements were closed after use.

Can someone suggest a profiler tool to evaluate the source of this leak. I've found numerous lists of profilers, but it wasn't clear which tool would be best suited for this purpose.

I'm using:

jdk1.5_03

mysql database

jconnector 3.1

redhat linux 9

Thanks

[717 byte] By [weathermapsa] at [2007-10-1 21:37:35]
# 1
Unfortunately to profile native code you need to be able to recompile the native source using the profiler.I suggest you do a serach for C/C++ memory profilers for linux.
Peter-Lawreya at 2007-7-13 3:32:18 > top of Java-index,Archived Forums,Debugging Tools and Techniques...
# 2

Thanks for the reply.

I was hoping there would be a way to do this without recompiling the source code (I assumed you meant for the mysql drivers) This could be a last resort.

Another thought I had was to write a wrapper for all the jdbc objects to log object creation/deletion/etc...

Has anyone had any success doing this or using some sort of tool for this.

Thanks

weathermapsa at 2007-7-13 3:32:18 > top of Java-index,Archived Forums,Debugging Tools and Techniques...