axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "vd (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Created: (AXIS-1765) Memory leak when setting server's service as global scope
Date Sat, 15 Jan 2005 00:34:16 GMT
Memory leak when setting server's service as global scope
---------------------------------------------------------

         Key: AXIS-1765
         URL: http://issues.apache.org/jira/browse/AXIS-1765
     Project: Axis
        Type: Bug
  Components: Basic Architecture  
    Versions: 1.2RC2    
 Environment: MS windows xp, sp2
    Reporter: vd



When setting the scope of my service to application, the client side will run out of memory
after 5-10 thousand hits. The service object on the server side is thread safe and works with
both application and request scope.  The server does not have any leak.

To fix memory leak, inside the generated stub, I wrap the call with a try/catch/finally, and
in that, I put:

_call.getMessageContext().getRequestMessage().getSOAPEnvelope().getRecorder().clear();

This would clear out the memory and no more leak.



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message