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 244205 - netbeans using excessive memory under Java 8 on OS X, and doesn't match visualvm memory usage
Summary: netbeans using excessive memory under Java 8 on OS X, and doesn't match visua...
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: JDK Problems (show other bugs)
Version: 8.0
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Assignee: Antonin Nebuzelsky
URL:
Keywords: JDK_8
Depends on:
Blocks:
 
Reported: 2014-04-30 16:41 UTC by xenoterracide
Modified: 2014-05-30 08:22 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log (146.62 KB, text/plain)
2014-04-30 16:41 UTC, xenoterracide
Details
Screenshot of activity monitory next to visual vm, showing the numbers don't add up (541.05 KB, image/png)
2014-05-08 21:17 UTC, xenoterracide
Details
Memory leak (85.79 KB, image/png)
2014-05-26 11:16 UTC, chapgu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description xenoterracide 2014-04-30 16:41:39 UTC
Product Version = NetBeans IDE 8.0 (Build 201403101706)
Operating System = Mac OS X version 10.9.2 running on x86_64
Java; VM; Vendor = 1.8.0_05
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.5-b02


I'm not really sure where to begin with this, or what info might be needed, but memory usage statusline reports 420MB on the heap, max memory 910MB,  actiivity monitory reports process is using 3.43, on startup 1G is pretty common and seems about right, but over the day the process seems to grow and grow. Willing to provide details as requested.
Comment 1 xenoterracide 2014-04-30 16:41:41 UTC
Created attachment 147031 [details]
IDE log
Comment 2 xenoterracide 2014-05-01 18:59:53 UTC
monitoring this with VisualVM, looks like most of the memory (if I'm reading it correctly) is in the "Editor Parsing Loop", it says 64%.
Comment 3 xenoterracide 2014-05-08 21:17:46 UTC
Created attachment 147195 [details]
Screenshot of activity monitory next to visual vm, showing the numbers don't add up

http://stackoverflow.com/q/23436353/206466 also been asking getting more information on stackoveflow. If someone could tell me how to get more useful information I'll happily attach it.
Comment 4 chapgu 2014-05-26 11:16:47 UTC
Created attachment 147448 [details]
Memory leak

Netbeans (PHP) been running for about 5 hours
Comment 5 chapgu 2014-05-26 11:18:12 UTC
I am also seeing this exact same issue:
Product Version: NetBeans IDE 8.0 (Build 201403101706)
Updates: NetBeans IDE is updated to version NetBeans 8.0 Patch 1.1
Java: 1.8.0; Java HotSpot(TM) 64-Bit Server VM 25.0-b70
Runtime: Java(TM) SE Runtime Environment 1.8.0-b132
System: Mac OS X version 10.9.3 running on x86_64; UTF-8; en_US (nb)
Comment 6 nonoangel 2014-05-29 09:31:49 UTC
I have the same issue,too.
In parsing period, it showed 'Low memory...'.
Comment 7 Tomas Hurka 2014-05-30 08:19:20 UTC
There is a native memory leak in JDK 8 on Mac OS X. The fact that this is native memory leak explains, why numbers from VisualVM and Activity Monitor are different.

The JDK bug for memory leak is here: <https://bugs.openjdk.java.net/browse/JDK-8041572>
Comment 8 Tomas Hurka 2014-05-30 08:22:05 UTC
Closing as wontfix on NetBeans side.