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 244467 - netbeans script uses unsupported syntax of awk and crashes with PermGen OOM on Solaris
Summary: netbeans script uses unsupported syntax of awk and crashes with PermGen OOM o...
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Launchers&CLI (show other bugs)
Version: 8.0.1
Hardware: PC Solaris
: P2 normal (vote)
Assignee: Libor Fischmeistr
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2014-05-13 14:06 UTC by Alexander Simon
Modified: 2014-05-19 07:23 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2014-05-13 14:06:24 UTC
The first line of log is awk error when I start dev version of netbans:

./netbeans 
awk: can't open /version/ {print substr($2, 1, 3)}
-------------------------------------------------------------------------------
>Log Session: Tuesday, May 13, 2014 5:58:56 PM MSK
>System Info: 
  Product Version         = NetBeans IDE Dev (Build 20140513-a0af7b0d8137) (#a0af7b0d8137)
  Operating System        = SunOS version 5.11 running on x86
  Java; VM; Vendor        = 1.7.0_55; Java HotSpot(TM) Client VM 24.55-b03; Oracle Corporation
  Runtime                 = Java(TM) SE Runtime Environment 1.7.0_55-b13
Comment 1 Alexander Simon 2014-05-13 14:07:34 UTC
It seems script uses "gawk" command line syntax instead of "awk".
Comment 2 Alexander Simon 2014-05-13 14:16:58 UTC
regression after fixing bug #243569
Comment 3 Libor Fischmeistr 2014-05-13 14:21:00 UTC
(In reply to Alexander Simon from comment #2)
> regression after fixing bug #243569

Yes that's right. Unfortunately that fix was not tested on Solaris...
Comment 4 Alexander Simon 2014-05-13 14:50:00 UTC
Also script miss -XX:MaxPermSize=384m for java 1.7.
It results in OOM.
(Probably it is consequence of the awk error)
Comment 5 Vladimir Voskresensky 2014-05-14 06:04:12 UTC
Please, fix this, because now NB crashes on Solaris with PermGen OOM
Comment 6 Libor Fischmeistr 2014-05-14 06:11:04 UTC
I'm going to fix it immediately.

The workaround should work for now. Run netbeans with -J-XX:PermSize=32m -J-XX:MaxPermSize=384m arguments.
Comment 7 Libor Fischmeistr 2014-05-16 08:36:44 UTC
Fixed - http://hg.netbeans.org/core-main/rev/8302ac787574

Please verify the fix. Thanks
Comment 8 Quality Engineering 2014-05-17 04:33:56 UTC
Integrated into 'main-silver', will be available in build *201405170001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/8302ac787574
User: Libor Fischmeistr <lfischmeistr@netbeans.org>
Log: #244467: netbeans script uses unsupported syntax of awk and crashes with PermGen OOM on Solaris
Comment 9 Alexander Simon 2014-05-19 07:23:48 UTC
Thanks, it works on Solaris.