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 - Avoid spam in the log if the -XX:+HeapDumpOnOutOfMemoryError option is not supported by the JVM
Summary: Avoid spam in the log if the -XX:+HeapDumpOnOutOfMemoryError option is not su...
Status: RESOLVED WORKSFORME
Alias: None
Product: platform
Classification: Unclassified
Component: Launchers&CLI (show other bugs)
Version: 6.x
Hardware: PC Linux
: P4 normal (vote)
Assignee: Antonin Nebuzelsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-07-01 15:29 UTC by Victor Vasilyev
Modified: 2010-10-11 14:59 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Proposed patch (763 bytes, patch)
2010-07-01 15:41 UTC, Victor Vasilyev
Details | Diff

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