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 249129

Summary: OutOfMemoryError: Java heap space
Product: platform Reporter: adlix
Component: NodesAssignee: Jan Peska <JPESKA>
Status: NEW ---    
Severity: normal CC: git
Priority: P4    
Version: 8.0   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter: 213917
Attachments: stacktrace

Description adlix 2014-12-04 21:07:31 UTC
Build: NetBeans IDE 8.0.2 (Build 201411181905)
VM: Java HotSpot(TM) 64-Bit Server VM, 24.71-b01, Java(TM) SE Runtime Environment, 1.7.0_71-b14
OS: Mac OS X

User Comments:
adlix: Too much images to delete and BitBucket too slow...




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at java.util.HashMap.inflateTable(HashMap.java:316)
   at java.util.HashMap.put(HashMap.java:488)
   at java.util.HashSet.add(HashSet.java:217)
   at java.util.AbstractCollection.addAll(AbstractCollection.java:342)
   at java.util.HashSet.<init>(HashSet.java:117)
   at org.netbeans.modules.git.FilesystemInterceptor$RefreshTask.run(FilesystemInterceptor.java:666)
Comment 1 adlix 2014-12-04 21:07:32 UTC
Created attachment 150896 [details]
stacktrace
Comment 2 Ondrej Vrabec 2014-12-15 16:28:28 UTC
not sure if this is worth any fox. There is a lot of instances of:
org.openide.nodes.EntrySupportLazyState$EntryInfo	18.01266419232795	3,208,834 (18%)	166,859,368 (13.3%)
But the behavior is correct, the instances are referenced from a node event that is fired when several tens of thousands of image files are deleted inside NetBeans (looks like deleting a web server temporary folder). Well, NB obviously cannot handle this.
Please do such expensive operations outside of NetBeans.