Link Details

Link 930993 thumbnail
User 801929 avatar

By jpaoletti
via blog.javabenchmark.org
Published: Mar 01 2013 / 07:53

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.
  • 11
  • 0
  • 1248
  • 622

Comments

Add your comment
User 1090611 avatar

Jonathan Lermitage replied ago:

1 votes Vote down Vote up Reply

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

User 801929 avatar

jpaoletti replied ago:

0 votes Vote down Vote up Reply

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 !

User 1090611 avatar

Jonathan Lermitage replied ago:

1 votes Vote down Vote up Reply

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).

User 801929 avatar

jpaoletti replied ago:

0 votes Vote down Vote up Reply

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.

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.

Apache Hadoop
Written by: Piotr Krewski
Featured Refcardz: Top Refcardz:
  1. Play
  2. Akka
  3. Design Patterns
  4. OO JS
  5. Cont. Delivery
  1. Play
  2. Java Performance
  3. Akka
  4. REST
  5. Java