Link Details

When stressing a simple echo web service deployed on Glassfish 3.1.2.2, the heap usage is continuously increasing. This article shows how to reproduce it and identify where the leak comes from.

Posted by jpaoletti  |   Mar 01 2013 / 07:53

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Comments

User 1090611 avatar

Jonathan Lermitage replied ago:

The bug case seems to be very specific. I'm testing a very similar SOAP Web Service (that computes the sum of two integers) on GlassFish 3.1.2.2 with JDK7u15 x64 on Windows7 x64 : after 5.000.000 calls the memory utilization is still very stable. I'll let it run during the night to verify ^^. A screenshot of the current situation: http://tof.canardpc.com/view/7d408dfa-f855-4070-b3f9-bb1012ecbd52.jpg

Reply 1 votes
User 801929 avatar

jpaoletti replied ago:

Do you use any injection/implementation in your Web Service ? Because it seems that the bug occurs only without it. Thanks for your comment by the way !

Reply 0 votes
User 1090611 avatar

Jonathan Lermitage replied ago:

Hi, I only use well known annotations. To test, I've uploaded my server and client code to http://netbeanscolors.org/files/tmp/jaxws2-client.zip and http://netbeanscolors.org/files/tmp/jaxws2-service.zip (two Web Services : the first makes a sum of two integers, and the other downloads a file with MTOM).

Reply 1 votes
User 801929 avatar

jpaoletti replied ago:

I looked at your code and you are right, it must be a very specific issue, because you do not use any injection at all. Thank you for taking the time to reply and upload your files.

Reply 0 votes

Recommended Links

Scala
Written by: Ryan Knight
Featured Refcardz: Top Refcardz:
  1. Apache Hadoop
  2. Play
  3. Akka
  4. Debugging JavaScript
  5. Design Patterns
  1. Apache Hadoop
  2. REST
  3. Java
  4. Git
  5. Java Performance
Connect with DZone