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 248763 - MEMORY LEAK: java.lang.IllegalStateException from org.netbeans.modules.web.core.jsploader.BaseJspEditorSupport
Summary: MEMORY LEAK: java.lang.IllegalStateException from org.netbeans.modules.web.co...
Status: RESOLVED INCOMPLETE
Alias: None
Product: javaee
Classification: Unclassified
Component: JSP (show other bugs)
Version: 8.0.1
Hardware: PC Windows 7
: P2 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-19 23:04 UTC by capey0
Modified: 2015-03-12 10:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages log (1.00 MB, application/octet-stream)
2014-11-19 23:04 UTC, capey0
Details

Note You need to log in before you can comment on or make changes to this bug.
Description capey0 2014-11-19 23:04:08 UTC
Created attachment 150580 [details]
messages log

See also https://netbeans.org/bugzilla/show_bug.cgi?id=246329

I have exactly the same memory issues as described in the above-mentioned bug report. The difference being my OS and my JDK (Windows 7-32 and JDK 7).

After extended use the memory in task manager reports anywhere from 620MB to 710MB. The NB Performance toolbar incorrectly reports the memory usage as 390+MB and never goes over 400MB, which is completely false.

I will attach the messages.log

When in this state the IDE will not refresh the Project and Navigator viewports and the code viewport is very slow to react to any user input.
Comment 1 Tomas Hurka 2014-11-21 10:59:42 UTC
(In reply to capey0 from comment #0)
> Created attachment 150580 [details]
> messages log
> 
> See also https://netbeans.org/bugzilla/show_bug.cgi?id=246329
> 
> I have exactly the same memory issues as described in the above-mentioned
> bug report. The difference being my OS and my JDK (Windows 7-32 and JDK 7).
No, issue #246329 is completely different issue from yours. It can be reproduced on Mac OS X only.

> After extended use the memory in task manager reports anywhere from 620MB to
> 710MB. The NB Performance toolbar incorrectly reports the memory usage as
> 390+MB and never goes over 400MB, which is completely false.
These numbers are. Note that NB Performance toolbar shows the size of java heap (which can be specified via -Xmx option), while task manager reports memory used by java process.

> I will attach the messages.log
> 
> When in this state the IDE will not refresh the Project and Navigator
> viewports and the code viewport is very slow to react to any user input.
messages.log is full of java.lang.IllegalStateException from org.netbeans.modules.web.core.jsploader.BaseJspEditorSupport. This can cause the problems you see in Projects and Navigation. Reassigning to asp for further investigation.
Comment 2 capey0 2014-12-02 18:17:34 UTC
(In reply to Tomas Hurka from comment #1)
> (In reply to capey0 from comment #0)
> > Created attachment 150580 [details]
> > messages log
> > 
> > See also https://netbeans.org/bugzilla/show_bug.cgi?id=246329
> > 
> > I have exactly the same memory issues as described in the above-mentioned
> > bug report. The difference being my OS and my JDK (Windows 7-32 and JDK 7).
> No, issue #246329 is completely different issue from yours. It can be
> reproduced on Mac OS X only.
> 
> > After extended use the memory in task manager reports anywhere from 620MB to
> > 710MB. The NB Performance toolbar incorrectly reports the memory usage as
> > 390+MB and never goes over 400MB, which is completely false.
> These numbers are. Note that NB Performance toolbar shows the size of java
> heap (which can be specified via -Xmx option), while task manager reports
> memory used by java process.
> 
> > I will attach the messages.log
> > 
> > When in this state the IDE will not refresh the Project and Navigator
> > viewports and the code viewport is very slow to react to any user input.
> messages.log is full of java.lang.IllegalStateException from
> org.netbeans.modules.web.core.jsploader.BaseJspEditorSupport. This can cause
> the problems you see in Projects and Navigation. Reassigning to asp for
> further investigation.

I have since updated the IDE to 802 and the issue still happens - the symptoms are as described above. The performance toolbar show 390+MB while NetBeans.exe in task manager shows 600-700MB and the java.exe process that is linked to NetBeans.exe uses about 180MB. Performance is horrendous - refresh rates are ridiculous - just switching from one file to another can take over 30 seconds. The only way to temporarily "fix" the issue is to restart the IDE completely.
Comment 3 capey0 2014-12-02 18:30:55 UTC
(In reply to capey0 from comment #2)
> (In reply to Tomas Hurka from comment #1)
> > (In reply to capey0 from comment #0)
> > > Created attachment 150580 [details]
> > > messages log
> > > 
> > > See also https://netbeans.org/bugzilla/show_bug.cgi?id=246329
> > > 
> > > I have exactly the same memory issues as described in the above-mentioned
> > > bug report. The difference being my OS and my JDK (Windows 7-32 and JDK 7).
> > No, issue #246329 is completely different issue from yours. It can be
> > reproduced on Mac OS X only.
> > 
> > > After extended use the memory in task manager reports anywhere from 620MB to
> > > 710MB. The NB Performance toolbar incorrectly reports the memory usage as
> > > 390+MB and never goes over 400MB, which is completely false.
> > These numbers are. Note that NB Performance toolbar shows the size of java
> > heap (which can be specified via -Xmx option), while task manager reports
> > memory used by java process.
> > 
> > > I will attach the messages.log
> > > 
> > > When in this state the IDE will not refresh the Project and Navigator
> > > viewports and the code viewport is very slow to react to any user input.
> > messages.log is full of java.lang.IllegalStateException from
> > org.netbeans.modules.web.core.jsploader.BaseJspEditorSupport. This can cause
> > the problems you see in Projects and Navigation. Reassigning to asp for
> > further investigation.
> 
> I have since updated the IDE to 802 and the issue still happens - the
> symptoms are as described above. The performance toolbar show 390+MB while
> NetBeans.exe in task manager shows 600-700MB. Performance is horrendous -
> refresh rates are ridiculous - just switching from one file to another can
> take over 30 seconds. The only way to temporarily "fix" the issue is to
> restart the IDE completely.
Comment 4 capey0 2014-12-03 18:17:01 UTC
Some more observations:

This issue seems to occur when having multiple files open in the editor (of multiple different types (in my case: jsp, java, css, js)). The problem progressively gets worse the more I switch between and edit/save different files.
Comment 5 Petr Hejl 2015-03-12 10:04:58 UTC
The ISE is just a warning (though deserves some investigation). Please provide a heapdump and reopen so we can investigate the leak.

http://wiki.netbeans.org/FaqMemoryDump