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 - netbeans.conf jvm -J-Xmx
Summary: netbeans.conf jvm -J-Xmx
Status: REOPENED
Alias: None
Product: platform
Classification: Unclassified
Component: Launchers&CLI (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal with 1 vote (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-08 06:13 UTC by ojoqaa
Modified: 2017-05-03 08:13 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE 日志 (59.17 KB, text/plain)
2014-05-08 06:13 UTC, ojoqaa
Details
launcher output log (139.69 KB, application/octet-stream)
2017-05-03 08:10 UTC, buitre
Details

Note You need to log in before you can comment on or make changes to this bug.
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)