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 239675 - OutOfMemoryError: Java heap space
Summary: OutOfMemoryError: Java heap space
Status: VERIFIED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Project (show other bugs)
Version: 7.4
Hardware: All All
: P3 normal (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-20 08:06 UTC by Exceptions Reporter
Modified: 2014-01-24 13:24 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 206152


Attachments
stacktrace (609 bytes, text/plain)
2013-12-20 08:06 UTC, Exceptions Reporter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2013-12-20 08:06:39 UTC
This issue was reported manually by thurka.
It already has 1 duplicates 


Build: NetBeans IDE 7.4 (Build 201310111528)
VM: Java HotSpot(TM) 64-Bit Server VM, 23.25-b01, Java(TM) SE Runtime Environment, 1.7.0_25-b17
OS: Windows 8

User Comments:
GUEST: ??????????




Stacktrace: 
java.lang.OutOfMemoryError: Java heap space
   at java.util.WeakHashMap.newTable(WeakHashMap.java:249)
   at java.util.WeakHashMap.<init>(WeakHashMap.java:274)
   at java.util.WeakHashMap.<init>(WeakHashMap.java:289)
   at org.netbeans.modules.sampler.SamplesOutputStream.<init>(SamplesOutputStream.java:115)
   at org.netbeans.modules.sampler.Sampler.start(Sampler.java:173)
   at org.netbeans.core.TimableEventQueue.run(TimableEventQueue.java:227)
Comment 1 Exceptions Reporter 2013-12-20 08:06:41 UTC
Created attachment 143355 [details]
stacktrace
Comment 2 Tomas Hurka 2013-12-20 09:49:06 UTC
Retained size of org.netbeans.modules.php.project.connections.RemoteClient$2 instances is 452M. Most of the data from that 452M are in final parameter TmpLocalFile source of method copyTmpLocalFile().
Comment 3 Tomas Mysik 2013-12-20 09:56:55 UTC
Thanks a lot Tome for the analysis, I will have a look at it.
Comment 4 Tomas Mysik 2014-01-22 13:06:47 UTC
Should be fixed, I hope. Láďo, please verify that the download action works as expected. Thanks.

Thanks Tome for your help!

http://hg.netbeans.org/web-main/rev/b5c24766f473
Comment 5 Quality Engineering 2014-01-23 02:39:50 UTC
Integrated into 'main-silver', will be available in build *201401230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/b5c24766f473
User: Tomas Mysik <tmysik@netbeans.org>
Log: #239675 - OutOfMemoryError: Java heap space

Hopefully fixed, no need to run in atomic action since we already run in it.
Comment 6 Vladimir Riha 2014-01-24 13:24:40 UTC
I've tried to download file/folder/project/sources and download in Synchronize, all went well


Product Version: NetBeans IDE Dev (Build 201401240001)
Java: 1.8.0-ea; Java HotSpot(TM) Client VM 25.0-b65
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b122
System: Linux version 3.2.0-48-generic-pae running on i386; UTF-8; en_US (nb)