[SNMP4J] A memory leak in MPv3.Cache?

Frank Fock fock at agentpp.com
Mon Jan 24 23:19:06 CET 2005


Hi Feyon,

A comparison between 1.1 and 1.0 sources showed that
one fix was indeed missing from 1.0. I have uploaded v1.0.4e
to fix the pending request leak.

Best regards,
Frank

Feyon wrote:

>Hi Frank,
>
>But I 'm using synchronous mode to consistantly access an noexist address and the
>pendingRequests hashtable seems to be increasing its capacity!
>
>Best regards,
>Feyon
>
>ÔÚÄúµÄÀ´ÐÅÖÐÔø¾­Ìáµ½:
>  
>
>>From:Frank Fock <fock at agentpp.com>
>>Reply-To: 
>>To: Feyon <yangfei at tsinghua.org.cn>
>>Subject: Re: [SNMP4J] A memory leak in MPv3.Cache?
>>
>>Hi Feyon,
>>
>>You need to call Snmp.cancel(..) to remove a (asynchronous) request from
>>the "pendingRequest" table. See the JavaDoc for details.
>>
>>Since I do not think that the below problem is critical, I will not 
>>provide a patch
>>for 1.0. The 1.1 release should be available early next week (if nothing 
>>unexpected
>>happens).
>>
>>Best regards,
>>Frank
>>
>>Feyon wrote:
>>
>>    
>>
>>>Hi Frank,
>>>
>>>I think there is the same problem with pendingRequests. May I know if a patch
>>>      
>>>
>for
>  
>
>>>version 1.0 will be available soon and what is your schedule for version 1.1?
>>>
>>>Best Regards,
>>>Feyon
>>>
>>>ÔÚÄúµÄÀ´ÐÅÖÐÔø¾­Ìáµ½:
>>> 
>>>
>>>      
>>>
>>>>From:Frank Fock <fock at agentpp.com>
>>>>Reply-To: 
>>>>To: Feyon <yangfei at tsinghua.org.cn>
>>>>Subject: Re: [SNMP4J] A memory leak in MPv3.Cache?
>>>>
>>>>Hi Feyon,
>>>>
>>>>Yes, that is indeed a memory leak under such special situations.
>>>>Version 1.1 will be fool-proof here.
>>>>
>>>>Best regards,
>>>>Frank
>>>>
>>>>Feyon wrote:
>>>>
>>>>   
>>>>
>>>>        
>>>>
>>>>>hi,
>>>>>
>>>>>  Is there a memory leak in MPv3.Cache? When using v3 to access an nonexist
>>>>>address the cache increase its capacity continiously without deletEntry
>>>>>          
>>>>>
>called.
>  
>
>>>>>     
>>>>>
>>>>>          
>>>>>
>>> 
>>>
>>>      
>>>
>>>>>Best Regards,
>>>>>Feyon
>>>>>
>>>>>
>>>>>
>>>>>_______________________________________________
>>>>>SNMP4J mailing list
>>>>>SNMP4J at agentpp.org
>>>>>http://p15141779.pureserver.info/mailman/listinfo/snmp4j
>>>>>
>>>>>
>>>>>
>>>>>     
>>>>>
>>>>>          
>>>>>
>>>>   
>>>>
>>>>        
>>>>
>>>_______________________________________________
>>>SNMP4J mailing list
>>>SNMP4J at agentpp.org
>>>http://p15141779.pureserver.info/mailman/listinfo/snmp4j
>>>
>>> 
>>>
>>>      
>>>
>>    
>>
>
>
>
>  
>





More information about the SNMP4J mailing list