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 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: NEW
Alias: None
Product: platform
Classification: Unclassified
Component: Nodes (show other bugs)
Version: 8.0
Hardware: All All
: P4 normal (vote)
Assignee: Jan Peska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-12-04 21:07 UTC by adlix
Modified: 2014-12-15 16:28 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 213917


Attachments
stacktrace (571 bytes, text/plain)
2014-12-04 21:07 UTC, adlix
Details

Note You need to log in before you can comment on or make changes to this bug.
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.