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 244366

Summary: netbeans.conf jvm -J-Xmx
Product: platform Reporter: ojoqaa
Component: Launchers&CLIAssignee: Libor Fischmeistr <lfischmeistr>
Status: REOPENED ---    
Severity: normal CC: buitre
Priority: P3    
Version: 8.0   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE 日志
launcher output log

Description ojoqaa 2014-05-08 06:13:31 UTC
In netbeans.conf file, no matter "-J-Xmx" is set or is not set, no matter how much memory is set to "-J-Xmx", this parameter is not sent to JVM.
My program need around 1.5G memory. I have run is in Netbeans IDE with below mentioned parameter:
1. not set "-J-Xmx";
2. set "-J-Xmx1024m";
3. set "-J-Xmx1536m"
My program always gets crashed with "GC overhead limit exceeded" or "Java heap space" and jconsole shows the program is limited with memory 1G.
Finally I run my program directly in command line with "java -Xmx1536m...", it finished successfully and jconsole shows it need more than 1.3G memory.


Product Version = NetBeans IDE 8.0 (Build 201403101706)
Operating System = Linux version 3.11.0-20-generic running on amd64
Java; VM; Vendor = 1.7.0_25
Runtime = Java HotSpot(TM) 64-Bit Server VM 23.25-b01
Comment 1 ojoqaa 2014-05-08 06:13:38 UTC
Created attachment 147171 [details]
IDE 日志
Comment 2 ojoqaa 2014-05-08 06:18:56 UTC
"My program need around 1.5G memory. I have run is in Netbeans IDE with below mentioned parameter:" 
should be:
"My program need around 1.5G memory. I have run it in Netbeans IDE with below mentioned parameter:"
Comment 3 Libor Fischmeistr 2014-07-22 08:19:45 UTC
Please try to run one of the latest daily builds. There were some changes in launchers. If it won't help please reopen and run IDE with --trace launcher_output.log parameter and then attach here the output file.
Comment 4 Libor Fischmeistr 2014-07-22 08:27:21 UTC
Sorry, I haven't noticed, that it's related to linux. The --trace argument won't work. Than you could run IDE "$ sh -x netbeans > launcher_output.log"
Comment 5 buitre 2017-05-03 08:10:52 UTC
Created attachment 164233 [details]
launcher output log
Comment 6 buitre 2017-05-03 08:12:33 UTC
Actually it happens to me too.

Product Version: NetBeans IDE Dev (Build 201704120002)
Updates: Updates available
Java: 1.8.0_73; Java HotSpot(TM) 64-Bit Server VM 25.73-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_73-b02
System: Windows 10 version 10.0 running on amd64; Cp1252; es_ES (nb)