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 ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ Valgrind-users mailing list Valgrind-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/valgrind-users