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 243982 - OutOfMemoryError: GC overhead limit exceeded
Summary: OutOfMemoryError: GC overhead limit exceeded
Status: RESOLVED WONTFIX
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 8.0
Hardware: All All
: P4 normal (vote)
Assignee: Jaroslav Havlin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-22 06:08 UTC by chakrit_w
Modified: 2014-07-11 10:09 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 209197


Attachments
stacktrace (3.06 KB, text/plain)
2014-04-22 06:08 UTC, chakrit_w
Details

Note You need to log in before you can comment on or make changes to this bug.
Description chakrit_w 2014-04-22 06:08:56 UTC
Build: NetBeans IDE 8.0 (Build 201403101706)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.51-b03, Java(TM) SE Runtime Environment, 1.7.0_51-b13
OS: Mac OS X

User Comments:
chakrit_w: Tried to restart IDE after long time not finishing Background scanning of projects




Stacktrace: 
java.lang.OutOfMemoryError: GC overhead limit exceeded
   at org.tmatesoft.svn.core.internal.util.SVNHashMap.createTableEntry(SVNHashMap.java:177)
   at org.tmatesoft.svn.core.internal.util.SVNHashMap.put(SVNHashMap.java:161)
   at org.tmatesoft.svn.core.internal.wc17.SVNStatusEditor17$DefaultSvnFileListHook.listFiles(SVNStatusEditor17.java:176)
   at org.tmatesoft.svn.core.internal.wc17.SVNStatusEditor17.getDirStatus(SVNStatusEditor17.java:648)
   at org.tmatesoft.svn.core.internal.wc17.SVNStatusEditor17.walkStatus(SVNStatusEditor17.java:636)
   at org.tmatesoft.svn.core.internal.wc2.ng.SvnNgGetStatus.run(SvnNgGetStatus.java:123)
Comment 1 chakrit_w 2014-04-22 06:08:58 UTC
Created attachment 146873 [details]
stacktrace
Comment 2 Ondrej Vrabec 2014-04-22 06:34:34 UTC
i can see this in the log:
WARNING [org.netbeans.modules.subversion.DiskMapTurboProvider]: Subversion cache contains 1,686 locally new (uncommitted) files. That many uncommitted files may cause performance problems when accessing the working copy. You should consider committing or permanently ignoring these files. Candidates for ignoring are: [/UCConnect/NetBeansProjects/UC_Softphone_JPhoneLite/src/resources: 1,686 new files]

i strongly suggest you svn ignore this folder: /UCConnect/NetBeansProjects/UC_Softphone_JPhoneLite/src/resources

All of memory is more or less consumed by FileUtil-Refresh-All task. It collects hundreds of thousands of files in rg.netbeans.modules.masterfs.filebasedfs.fileobjects.BaseFileObj.refresh
 and more interestingly in a single call to org.netbeans.modules.masterfs.filebasedfs.children.ChildrenSupport.
Looking at the heap dump folder /UCConnect/NetBeansProjects/UC_Softphone_JPhoneLite/src/resources contains around 300 000 files !!!!

chakrit_w: why do you keep 300 000 files in /UCConnect/NetBeansProjects/UC_Softphone_JPhoneLite/src/resources??? Lot of them in the format IMG.png.HASH. Remove them.
Comment 3 Jaroslav Havlin 2014-07-11 10:09:21 UTC
> Looking at the heap dump folder [...] contains around 300 000 files !!!!
Working with such a huge project has quite high memory requirements.
Please consider removing/hiding/ignoring the folder. Or increase the Xmx parameter if you really need to keep the files in your project.