On Monday, March 9, 2020 at 1:37:00 PM UTC-4, Nitish Saboo wrote:
>
> Hi Jake,
>
> The memory usage remains constant when the rest of the service is 
> running.Only when LoadPatternDB() method is called within the service, 
> Memory Consumption increases which actually should not happen.
>  I am assuming if there is a memory leak while calling this method because 
> the memory usage then becomes constant after getting increased and then 
> further increases on next call.
>

Its possible that I am not fully understanding, perhaps a language problem. 
But from what you have written above I still don't see that this means you 
definitely have a memory leak. To test for that you would need to *continuously 
*call LoadPatternDB() and monitor memory for a *considerable time*. If it 
eventually stabilizes to a constant range then there is no leak, just 
normal Go-GC variation. If it never stops climbing, and eventually consumes 
all the memory, then it would probably be a leak. Just because it goes up 
after one call, or a few calls doe not mean there is a leak. 

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/f897fdb1-8968-4435-9fe9-02e167e09a36%40googlegroups.com.

Reply via email to