NetBeans Forums

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

Memory leak in profiler?

 
Post new topic   Reply to topic    NetBeans Forums -> Profiler Users
View previous topic :: View next topic  
Author Message
j1mcross



Joined: 11 Apr 2014
Posts: 8

PostPosted: Fri May 22, 2015 1:54 pm    Post subject: Memory leak in profiler? Reply with quote

With JBOSS, the profiler got turned on during load testing. After running multiple hours the server crashed and we got jmap dump.

We found a byte[] that is taking up the bulk of the JVM is from

org.netbeans.lib.profiler.server.Monitors

in the ThreadDataTable

This array is taking up 16.8 GB. There are 25,641 arrays each of 655,368 bytes.

private byte[][] threadStates;

Of course, probably it is not a good idea to run this during load tests but is there some wrong in the code?
Back to top
Tomas Hurka
Posted via mailing list.





PostPosted: Tue May 26, 2015 9:18 am    Post subject: Memory leak in profiler? Reply with quote

Hi Jim,
There must be something unusual in your case, which prevent NetBeans profiler work correctly. In normal circumstances threadStates array is reused every two seconds, so it cannot grow too much. Are you able to provide steps how to reproduce this problem?

Thanks,
--
Tomas Hurka <mailto:address-removed>
NetBeans Profiler http://profiler.netbeans.org
VisualVM http://visualvm.java.net
Software Developer
Oracle, Praha Czech Republic


Quote:
On 22 May 2015, at 15:54, j1mcross <address-removed> wrote:

With JBOSS, the profiler got turned on during load testing. After running multiple hours the server crashed and we got jmap dump.

We found a byte[] that is taking up the bulk of the JVM is from

org.netbeans.lib.profiler.server.Monitors

in the ThreadDataTable

This array is taking up 16.8 GB. There are 25,641 arrays each of 655,368 bytes.

private byte[][] threadStates;

Of course, probably it is not a good idea to run this during load tests but is there some wrong in the code?
Back to top
j1mcross



Joined: 11 Apr 2014
Posts: 8

PostPosted: Wed May 27, 2015 10:36 am    Post subject: Memory leak in profiler? Reply with quote

Not easily reproducible.

We were trying to recreate a memory leak or issue from production on a
QA box. To do it, we were throwing a wide mix of transactions against it
and even then it took 36 hours to produce the problem.

There is some speculation that it was related to attaching VisualVM from
a remote box to the server which occurred at about hour 30 in the test.

The application server was JBOSS and the transaction mix included
database and Lucene queries. The Lucene related is where we think our
production leak or over consumption of memory is and the crash in the
test had a relatively high amount of memory consumed by it but the
byte[][] in profiler seemed to be what ate up most of the memory and
caused the issue.

On 5/26/2015 5:18 AM, Tomas Hurka wrote:
Quote:
Hi Jim,
There must be something unusual in your case, which prevent NetBeans profiler work correctly. In normal circumstances threadStates array is reused every two seconds, so it cannot grow too much. Are you able to provide steps how to reproduce this problem?

Thanks,
--
Tomas Hurka <mailto:address-removed>
NetBeans Profiler http://profiler.netbeans.org
VisualVM http://visualvm.java.net
Software Developer
Oracle, Praha Czech Republic


Quote:
On 22 May 2015, at 15:54, j1mcross <address-removed> wrote:

With JBOSS, the profiler got turned on during load testing. After running multiple hours the server crashed and we got jmap dump.

We found a byte[] that is taking up the bulk of the JVM is from

org.netbeans.lib.profiler.server.Monitors

in the ThreadDataTable

This array is taking up 16.8 GB. There are 25,641 arrays each of 655,368 bytes.

private byte[][] threadStates;

Of course, probably it is not a good idea to run this during load tests but is there some wrong in the code?


Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Profiler 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