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.
Comments
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
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 !
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).
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.
Voters For This Link (11)
Voters Against This Link (0)