title: How to fix memory leak issue In tomcat and found what are the causes of memory leak
body: <p>I have deployed the code on the  tomcat server and  doing frequently updates in  war file. 
  when i click on the memory leak option i got this error(Error message is given below -). To Fix it  I am restarting the server but it's not effective solution. so I want to know what i am doing  wrong in code so that i can fix it. Using maven, Spring, JPA, java 8 . </p>
  
  <p>The following web applications were stopped (reloaded, undeployed), but their
  classes from previous runs are still loaded in memory, thus causing a memory
  leak (use a profiler to confirm):</p>