title: JProfiler : Finding the Memory leak reference name
body: <p>I am trying to use JProfiler for one of my Application which is running under tomcat server .</p>
  
  <p>So i wrote a memory leak servlet as shown below .</p>
  
  <pre><code>@SuppressWarnings(value = { "" })
  public class Dust extends HttpServlet {
  protected void doGet(HttpServletRequest request,
          HttpServletResponse response) throws ServletException, IOException {
      String str = new String();
      List myarrylist = new ArrayList();
      int i = 10;
          while (true) {
      myarrylist.add(str);
      System.out.println(i);
          i++;
      }
  }
  }
  </code></pre>
  
  <p>Now When i ran JProfiler on this Application using the Profile Web Application running locally .
  It gave me this view . please see the screen shot here </p>
  
  <p><a href="http://tinypic.com/view.php?pic=2r5c2nq&amp;s=7" rel="nofollow">http://tinypic.com/view.php?pic=2r5c2nq&amp;s=7</a></p>
  
  <p>I have these questions :</p>
  
  <ol>
  <li><p>It shows that number of String Objects are being created .
  (But how can we know in what class / servlet  and exactly which string is actually responsible for this creation of objects , as we may have many Strings in a Application. ) ??</p></li>
  <li><p>And why the Start Button ( which i highlited) is being disabled ??</p></li>
  <li><p>Is starting JProfiler is sufficient by clicking on the start Button ( Please see that image ) , nd dont we need to start the Tomcat server also ??</p></li>
  </ol>
  
  <p>Please help . Thank you . </p>