This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 96566 - Object references when monitoring memory usage
Summary: Object references when monitoring memory usage
Status: RESOLVED DUPLICATE of bug 95020
Alias: None
Product: profiler
Classification: Unclassified
Component: Base (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@profiler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-26 12:12 UTC by andrewdunn
Modified: 2007-02-26 12:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description andrewdunn 2007-02-26 12:12:42 UTC
It seems object references are being maintained when running profiling for
memory analysis. When the sample code (below) is ran using the "Monitor
application" option it seems to consume only the nessasary memory, when ran
using the "Analyze Memory useage" option it keeps consuming memory until we get
"Exception in thread "Thread-284258" java.lang.OutOfMemoryError: Java heap space"

while(true)
    {
      Thread ref = new Thread(new Runnable()
      {
        public void run()
        {
          System.out.println("Running Thread");
        }
      });
      ref.start();      
      ref = null;
      Thread.sleep(1);
    }
Comment 1 Tomas Hurka 2007-02-26 12:25:46 UTC
Already reported and fixed. Duplicate issue #95020 contains patch for NetBeans Profiler 5.5. 

*** This issue has been marked as a duplicate of 95020 ***