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 188283

Summary: Avoid spam in the log if the -XX:+HeapDumpOnOutOfMemoryError option is not supported by the JVM
Product: platform Reporter: Victor Vasilyev <vvg>
Component: Launchers&CLIAssignee: Antonin Nebuzelsky <anebuzelsky>
Status: RESOLVED WORKSFORME    
Severity: normal CC: jtulach
Priority: P4    
Version: 6.x   
Hardware: PC   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Proposed patch

Description Victor Vasilyev 2010-07-01 15:29:07 UTC
If the -XX:+HeapDumpOnOutOfMemoryError option is not supported by the JVM, e.g. by the OpenJDK on the Fedora Linux, then there is annoying spam in the IDE log.
Comment 1 Victor Vasilyev 2010-07-01 15:41:23 UTC
Created attachment 100547 [details]
Proposed patch

To fix this issue the attached patch could be applied to the script
o.n.bootstrap/launcher/unix/nbexec 
It will redirect spam to the /dev/null.
Comment 2 Jaroslav Tulach 2010-07-16 13:14:04 UTC
"What does &>" do different than ">"?
Comment 3 Victor Vasilyev 2010-07-16 21:18:08 UTC
(In reply to comment #2)
> "What does &>" do different than ">"?
It also redirects stderr where we have spam from JVM.
Comment 4 Jaroslav Tulach 2010-07-21 07:59:46 UTC
OK, if you think the "&>" is correct and will work on all platforms, go on and integrate your change.
Comment 5 Antonin Nebuzelsky 2010-10-11 14:59:17 UTC
I don't think &> is correct here. This format of redirection is mentioned only in the documentation of bash, while docs of sh do not mention it at all. 

2>&1 is what redirects stderr to where stdout is redirected. So, to me the current statement in nbexec is formally correct ( > /dev/null 2>&1 ).

Also I could not reproduce the reported problem with OpenJDK 6 on my ubuntu box. I don't see any "spam" in the output.