Hi Paolo, I'm on a Debian Jessie with Java 1.8.0_101. I think that the problem is related to a memory leak somewhere in Netbeans, that happens just with a specific project. All other projects works well, but in this one with java.lang.OutOfMemoryError: Java heap space problem CTRL+Click and other useful trick doesn't work.
I think that is something Javascript related, but I relly don't know how
to debug it. It simply notice the heap problem, and it stop working,
while others are still working.
# more /etc/debian_version
8.10
>System Info:
Product Version = NetBeans IDE 8.2 (Build 201705191307)
(#5fd841261bf9)
Operating System = Linux version 3.16.0-4-amd64 running on
amd64
Java; VM; Vendor = 1.8.0_101; Java HotSpot(TM) 64-Bit Server VM
25.101-b13; Oracle Corporation
Runtime = Java(TM) SE Runtime Environment
1.8.0_101-b13
Java Home = /usr/local/netbeans-8.2/bin/jre
System Locale; Encoding = it_IT (nb); UTF-8
Home Directory = /home/gabo
Current Directory = /home/gabo
User Directory = /home/gabo/.netbeans/8.2
Cache Directory = /home/gabo/.cache/netbeans/8.2
Installation = /usr/local/netbeans-8.2/nb
/usr/local/netbeans-8.2/ide
/usr/local/netbeans-8.2/extide
/usr/local/netbeans-8.2/webcommon
/usr/local/netbeans-8.2/websvccommon
/usr/local/netbeans-8.2/php
/usr/local/netbeans-8.2/harness
/usr/local/netbeans-8.2/platform
g4b0
Il giorno mar, 09/01/2018 alle 16.55 +0800, Paolo Scarabelli ha scritto:
> Hi, I've been using a similar configuration (Debian and Netbeans) for
> years and I never had this error.
>
>
>
> What version of Java are you using?
>
>
> Have a nice day,
>
>
> Paolo
>
>
> On Jan 9, 2018 16:44, "Gabriele Brosulo" <[email protected]>
> wrote:
>
> Hi,
> Thanks all for your suggestions, I tried increasing J-Xmx to
> 2048, but the same problem arise. "A
> java.lang.OutOfMemoryError exception has occurred. However,
> the system should continue working without further problems.
> Click Show Details for the stack trace."
>
> I noticed that it happens during background scanning of a
> precise project, if I start netbeans without that project it
> works fine since I open it. Opening that project cause an
> immediate increase of system memory usage (sometimes it
> swaps), and then netbeans show me the error.
>
> The stacktrace says:
>
> java.lang.OutOfMemoryError: Java heap space
> at com.oracle.js.parser.TokenStream.grow(TokenStream.java:193)
> at
> com.oracle.js.parser.AbstractParser.getToken(AbstractParser.java:133)
> at
> com.oracle.js.parser.AbstractParser.nextToken(AbstractParser.java:221)
> at
> com.oracle.js.parser.AbstractParser.nextOrEOL(AbstractParser.java:177)
> at com.oracle.js.parser.Parser.recover(Parser.java:514)
> at com.oracle.js.parser.Parser.sourceElements(Parser.java:984)
> at com.oracle.js.parser.Parser.program(Parser.java:867)
> at com.oracle.js.parser.Parser.parse(Parser.java:334)
> at com.oracle.js.parser.Parser.parse(Parser.java:288)
> at
>
> org.netbeans.modules.javascript2.editor.parser.JsParser.parseSource(JsParser.java:125)
> at
>
> org.netbeans.modules.javascript2.editor.parser.JsParser.parseSource(JsParser.java:52)
> at
>
> org.netbeans.modules.javascript2.editor.parser.SanitizingParser.parseContext(SanitizingParser.java:240)
> at
>
> org.netbeans.modules.javascript2.editor.parser.SanitizingParser.parseContext(SanitizingParser.java:257)
> at
>
> org.netbeans.modules.javascript2.editor.parser.SanitizingParser.parseContext(SanitizingParser.java:257)
> at
>
> org.netbeans.modules.javascript2.editor.parser.SanitizingParser.parseContext(SanitizingParser.java:235)
> at
>
> org.netbeans.modules.javascript2.editor.parser.SanitizingParser.parseContext(SanitizingParser.java:249)
> at
>
> org.netbeans.modules.javascript2.editor.parser.SanitizingParser.parseContext(SanitizingParser.java:220)
> at
>
> org.netbeans.modules.javascript2.editor.parser.SanitizingParser.parseSource(SanitizingParser.java:137)
> at
>
> org.netbeans.modules.javascript2.editor.parser.SanitizingParser.parse(SanitizingParser.java:97)
> at
>
> org.netbeans.modules.parsing.impl.TaskProcessor.callParse(TaskProcessor.java:621)
> at
>
> org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:251)
> at
>
> org.netbeans.modules.parsing.api.ResultIterator.getParserResult(ResultIterator.java:138)
> at
> org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater
> $Work$2.run(RepositoryUpdater.java:3197)
> at
>
> org.netbeans.modules.parsing.impl.TaskProcessor.callUserTask(TaskProcessor.java:609)
> at org.netbeans.modules.parsing.api.ParserManager
> $UserTaskAction.run(ParserManager.java:153)
> at org.netbeans.modules.parsing.api.ParserManager
> $UserTaskAction.run(ParserManager.java:137)
> at org.netbeans.modules.parsing.impl.TaskProcessor
> $2.call(TaskProcessor.java:204)
> at org.netbeans.modules.parsing.impl.TaskProcessor
> $2.call(TaskProcessor.java:201)
> at
>
> org.netbeans.modules.masterfs.filebasedfs.utils.FileChangedManager.priorityIO(FileChangedManager.java:176)
> at
>
> org.netbeans.modules.masterfs.providers.ProvidedExtensions.priorityIO(ProvidedExtensions.java:360)
> at
>
> org.netbeans.modules.parsing.nb.DataObjectEnvFactory.runPriorityIO(DataObjectEnvFactory.java:141)
> at
>
> org.netbeans.modules.parsing.impl.Utilities.runPriorityIO(Utilities.java:88)
>
>
> As you can see it seems that module javascript2 is one of the
> problem, so I deactivated all Javascript related modules and a
> lot of others, but , but the same problem arise :/
> Maybe I have to uninstall them?
>
> I attached 2 screenshot about active/deactivated modules
>
> Thanks again
> g4b0
>
> Il giorno lun, 08/01/2018 alle 13.39 -0500, Thomas Wolf ha
> scritto:
>
> > Oliver,
> > Why would the starting heap size matter (and according to
> > his log, it's already 512m)? I think the option he should
> > modify is the max heap size, -Xmx. His log says it's
> > currently 1024m - maybe he should set it to "-J-Xmx2048m" in
> > his netbeans.conf file.
> >
> > tom
> >
> > On Mon, Jan 8, 2018 at 11:36 AM, Oliver Rettig
> > <[email protected]> wrote:
> >
> > Hi,
> >
> >
> >
> > this can be happen, if you have installed too many
> > modules, which needs more memory than you have
> > configures in the netbeans.conf file. Maye there is
> > a module with a memory leak ...
> >
> >
> >
> > Try to give netbeans more memory:
> >
> >
> >
> > edit the config file in etc/netbeans.conf
> >
> >
> >
> > default: -J-Xms32m
> >
> >
> >
> > to -j-xms500m
> >
> >
> >
> > Hope this helps
> >
> > Oliver
> >
> > > Hi all,
> >
> > > I'm running Netbeans 8.2 on a Debian jessie box.
> > Everytime I launch
> >
> > > Netbeans i got the following error:
> > "OutOfMemoryError: Java heap
> >
> > > space".
> >
> > > Everything seems working, but in one PHP project
> > CTRL+Click,
> >
> > > autocomplete and other useful things stopped
> > working.
> >
> > >
> >
> > > I googled a lot, but I can't find a solution.
> >
> > >
> >
> > > Attached the netbeans startup log.
> >
> > >
> >
> > > Any help/hint is really appreciated, thanks in
> > advance.
> >
> > >
> >
> > > g4b0
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > --
> > [email protected]
> > http://landofwolf.blogspot.com/
>
>
>
signature.asc
Description: This is a digitally signed message part
