Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#125 memory leak

closed-duplicate
Martin Kutter
None
7
2007-10-02
2007-04-17
Anonymous
No

I am using SOAP::Lite for publishing some information from many nodes to a single server periodically. The problem is that for each piece of information I am creating an instance of SOAP::Lite object using

$gv_service = SOAP::Lite->service($CONF_SERVER_WSDL)

$gv_service->myfuction();

this variable is local to a function and its scope ends with the function.

I am doing this with every call of "myfunction". This is done to get the latest description of the function.

But what I am observing is a memory leak. Since the program is a daemon and polls for an event and sleeps, this memory leak eats up the memory.

I tried to find out if there is some method to free the memory allocated by the SOAP::Lite during initialisation.

Discussion

  • Martin Kutter
    Martin Kutter
    2007-10-01

    Logged In: YES
    user_id=884175
    Originator: NO

    Confirm & fix. This is an important one.

     
  • Martin Kutter
    Martin Kutter
    2007-10-01

    • priority: 5 --> 7
     
  • fyneman
    fyneman
    2007-10-02

    Logged In: YES
    user_id=1280913
    Originator: NO

    I have experienced the same problem. In my application, some of the data structures returned in the SOAP object can have circular references. I have worked around the issue by weakening the references in the SOAP object after retrieving the results. Then, when the object goes out of scope, the garbage collector can reclaim the memory.

     
  • Martin Kutter
    Martin Kutter
    2007-10-02

    • assigned_to: nobody --> kutterma
    • status: open --> closed-duplicate
     
  • Martin Kutter
    Martin Kutter
    2007-10-02

    Logged In: YES
    user_id=884175
    Originator: NO

    Duplicate of 887015 Memory Leak