NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

TopComponent memory leakage?

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users
View previous topic :: View next topic  
Author Message
LuisFer
Posted via mailing list.





PostPosted: Thu Jan 19, 2017 9:41 pm    Post subject: TopComponent memory leakage? Reply with quote

Hello.

I'm facing a problem that can easily be reproduced using the Paint App sample application(File, New Project, Samples/NetBeans Modules/Paint Application) . I add
<code>
byte test[] = new byte[1024*1024*50]; //50 megabytes
</code>
in PaintTopComponent.java just to easily see the memory leakage.

If I open and close 10 or more windows, there are still live objects in memory even after calling garbage collector several times. Sometimes the PaintTopComponent object is collected but its resources not. If i keep opening and closing windows, the number of live objects in memory increases and never get collected. I tested using Windows 7 and Windows 10 with Netbeans 8.2, JDK 8 upd 111 and openJDK 1.8. See image for details.

PS: This problem DOESN'T happen when using Ubuntu 16.04.1 LTS with Netbeans 8.2 and openJDK 1.8. I couldn't test using MAC OSX.

Any thoughts?
Thanks in advance.



tcleakage.png
 Description:
 Filesize:  220.37 KB
 Viewed:  486 Time(s)

tcleakage.png


Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Platform Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo