Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / Tools / March 2005

Tip: Looking for answers? Try searching our database.

detecting memoru leak in a Java/JNI application

Thread view: 
qwejohn@hotmail.com - 15 Mar 2005 13:30 GMT
Hello,

 I am developing a complex multithreaded application in Java which
uses JNI to call methods in "C". I am developing on a linux ix386 based
machine (RedHat 9).

I found out that there is memory leak , probably in the JNI "C" part,
after some time ( by JNI "C" part  I mean the methods I wrote in "C"
which are called from Java) ; However,I tried to find a tool which can
help
me detect where is the memoy leak , and could not find someting
appropriate.

For C/C++ on Linux ,there is of course the Electric Fence and Valgrind
open source projects;
and there is also commercial solutions like Insure++ of Parasoft and
Purify (of Rational) .But they are intended for running standalone
c/c++ applications.

For Java  there is OptimizeIt of Boreland. I am sure there are more;
but as far as I know the OptimizeIt will not detecet a memory leak if
it is in the JNI part.

Does anybody know of any memory leak tool (commercial or open source)
which can
detect memory leaks on a
Java application which calls "C" methods (using JNI)?
(I mean a tool which can detect such memory leaks in the "C" (JNI) part
of an
app which is called from Java).

Regards,
John
Bocanegra - 16 Mar 2005 09:00 GMT
You can use simply the same program as in C++. We used Purify and works
perfectly. Put as the name of the executable /usr/java/bin/java, and so on.

> Hello,
>
[quoted text clipped - 29 lines]
> Regards,
> John


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.