title: Valgrind to detect memory leaks in java web application
body: <p>I have web application which runs in Tomcat container. I have been asked to investigate on using Valgrind to detect memory leaks. Is it possible to use Valgrind to profile Java web app? If yes, is it a feasible option over the existing/built-in JVM memory profilers ? I have run the JConsole and VisualVM to see if any memory leaks and found that no such leaks.</p>
  
  <p>As per my investigation so far, I found that Valgrind is suitable for C/C++ applications and Java applications with native code (via JNI).</p>
  
  <p>Though, it is mentioned in Valgrind web site that Valgrind can be used for programs written in any programming language, I couldn't find any examples where Valgrind used for Java programs.</p>
  
  <p>Thanks</p>