|
From: Philippe W. <phi...@sk...> - 2014-03-18 20:33:30
|
On Fri, 2014-03-14 at 04:18 -0700, Mahmood Naderan wrote: > Hi > Is it possible to run valgrind (memory leak tool) with this command > > mahout wikipediaXMLSplitter -d enwiki-latest-pages-articles.xml -o > wikipedia/chunks -c 64 > > ? > It is a java based program. > Or Valgrind works with C++ codes only? Valgrind can work with Java applications. Depending on your platform, you might need to give the option --smc-check=all-non-file Note however that to my knowledge, valgrind will not "understand" much of the Java heap management and/or will not be able to give "user code stack traces" for the Java JITted code. So effectively, running valgrind on a Java application can help for e.g. the JNI code called by Java, but will not be of much use for the Java code itself. More knowledgeable people in Java technology might complement (or correct) the above information. Philippe |