glassfish
  1. glassfish
  2. GLASSFISH-19038

'wget' on stateless webservice bean leaks memory

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 3.1_dev, 3.1.2
    • Fix Version/s: 4.0
    • Component/s: web_services
    • Labels:
      None
    • Environment:

      redhat 5.4 x86_64, glassfish 3.1+

      Description

      When running a Stateless Webservice EJB, the glassfish domain will leak memory when the WSDL is accessed. The culprit appears to be the "com.sun.ejb.EjbInvocation" object, which does not get garbage collected. It appears that about 183 bytes are being leaked upon each invocation. After some time, this causes the domain to stop functioning due to OutOfMemory exceptions. Regardless of the heap size, this will occur.

      I used 'jvisualvm' to monitor the memory and object allocations, and during profiling the EjbInvocation generations grew continuously. This can also be observed by doing the memory sampling, as well, and filtering for 'EjbInvocation'.

      To test this, I deployed a simple web service, then ran a script to get the wsdl:
      'wget http://host:port/TestService/TestService?WSDL'

      With my domain configuration (default), to 512MB heap space, it died after ~2.5 million 'wget's.

        Activity

        Hide
        Martin Grebac added a comment -

        Fixed in trunk.
        Committed revision 58651.
        Revision: 58651
        Author : snajper
        Date : Jan 18, 2013 3:51:44 PM
        Fix of GF19038 - wget' on stateless webservice bean leaks memory

        Show
        Martin Grebac added a comment - Fixed in trunk. Committed revision 58651. Revision: 58651 Author : snajper Date : Jan 18, 2013 3:51:44 PM Fix of GF19038 - wget' on stateless webservice bean leaks memory

          People

          • Assignee:
            Martin Grebac
            Reporter:
            bhicks01
          • Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: