1)As soon as I call LoadPatternDB() method in parser.go there is some increase in memory consumption(some memory leak). Ideally that should not have happened.
--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/9d360b1e-47ca-4e71-8547-80fad296f5ff%40googlegroups.com.
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.
--
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...@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.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CALjMrq6DC98p4M4V2QCbQFTcsL1PtOWELvg8MEcMYj9EM9ui_A%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CALjMrq7QiVa54kcgZo8mjBf2g8KWQbjGGnt4HCP6o4FA43--hg%40mail.gmail.com.
This might be a dumb question but...
From reading the code, I assume that the `pattern_db_new()` does some sort of allocation of a new pattern DB. I don't see any code releasing the pattern DB. Is that just missing from your post or something that some automatic mechanism does?
If not, that might be your 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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CALjMrq5cAJ19CQ8OmMPSJmVB1P3t4hE0CKZ4HsEsH-mp6zm3Ng%40mail.gmail.com.
-- -- Gregor Best be...@pferdewetten.de
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/fee07a13-e3d7-4a2e-6a6c-fdb11140ce21%40pferdewetten.de.
Hi,
I upgraded the go version and compiled the binary against go version 'go version go1.12.4 linux/amd64'.
I ran the program for some time. I made almost 30-40 calls to the method Load_Pattern_Db().
The program starts with 6% Mem Usage. The memory usage increases only when I call 'LoadPatternDb()' method and LoadPatternDb() method is called by a goroutine at regular intervals of 3 minutes(making use of ticker here ).
What I observed is:
1)After almost 16-17 calls to the method 'LoadPatternDb(), the memory usage got almost constant at 29%. But I did not expect the program to take this much memory.
When I restart the service the Mem Usage again starts with 6%.
a) Is this the sign of memory leaking?
b) Till this moment I did not see memory getting reclaimed or going down but it did become constant.
As mentioned by experts above, the same sort of behavior is seen here. But I did not expect the memory usage to grow this much. Is this expected?
2)I will run mem-profiling at intervals(10 minutes, 100 minutes..etc) as mentioned in the earlier email.
a) Which all mem-stats variables should I look into for debugging this kind of behavior?
On Mar 16, 2020, at 9:03 AM, Nitish Saboo <nitish....@gmail.com> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CALjMrq4-%3DcsuKRP4Xa-MVgrm5MJdWLNVe0v5_i3jswjesHQTqA%40mail.gmail.com.
On Mar 16, 2020, at 9:12 AM, Robert Engels <ren...@ix.netcom.com> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/4A1AFEDD-2D70-4B33-A183-83887A79A9A0%40ix.netcom.com.
On Mar 16, 2020, at 9:32 AM, Nitish Saboo <nitish....@gmail.com> wrote:
--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/e664151d-474d-4c1d-ae1d-979dc6975469%40googlegroups.com.
On Mar 16, 2020, at 9:35 AM, Nitish Saboo <nitish....@gmail.com> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CALjMrq7EuvpFBaAQCJfO_QhkW8ceac8oEv-oFq9GPsik%3D5GNkw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/2BD0A731-0F46-44DF-AEDE-8CC2F182D1B3%40ix.netcom.com.
On Mar 17, 2020, at 9:21 AM, Nitish Saboo <nitish....@gmail.com> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CALjMrq5-gjzMUKAgWjUjJFYRFVyrctT5p-Sesd_f%3DRR-h9-39A%40mail.gmail.com.
On Mar 19, 2020, at 9:24 AM, Nitish Saboo <nitish....@gmail.com> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/D02AE06E-1289-4B3F-A65F-913E885EFF58%40ix.netcom.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CALjMrq7_d8s%3DmS5WVgV9K1m5VCBUoep2mitvX4o%3D%2BHVqf1APmQ%40mail.gmail.com.
Hi,I have already gone through those links. They helped me to gather the mem profile and while analyzing the data(as given in those links) I have come across the following issue:While I was running the service for 100 minutes the 'top' command output was showing Mem% as 11.1. There was no increase in mem usage since I had not called 'LoadPatternDB()' method. I have 8GB of memory on the node where I am running the service. My issue is :
- Why is it showing memory accounting for around 17GB? 11.1 % of 8GB is .88GB and my node is only of 8GB. I feel the way I gathered the mem profiling was not correct ..is it ?
Please let me know where am I going wrong?Thanks,Nitish
On Tue, Mar 24, 2020 at 5:32 PM Nitish Saboo <nitish...@gmail.com> wrote:
Hi,>>There is no root analysis available in Go. Read the paper I linked to.
Sorry I did not get you. Which paper are you referring to?
While I was running the service for 100 minutes the 'top' command output was showing Mem% as 11.1. There was no increase in mem usage since I had not called 'LoadPatternDB()' method.I have 8GB of memory on the node where I am running the service. My issue is :
- Why is it showing memory accounting for around 17GB? 11.1 % of 8GB is .88GB and my node is only of 8GB. I feel the way I gathered the mem profiling was not correct ..is it ?
Please advise me what am I missing?Thanks,Nitish
On Tue, Mar 24, 2020 at 1:28 AM Robert Engels <ren...@ix.netcom.com> wrote:
Yes. You have a leak in your Go code. It shows you the object types that are taking up all of the space. There is no root analysis available in Go. Read the paper I linked to.
To unsubscribe from this group and stop receiving emails from it, send an email to golan...@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.
--
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 golan...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CALjMrq6DC98p4M4V2QCbQFTcsL1PtOWELvg8MEcMYj9EM9ui_A%40mail.gmail.com.
--Michael T. Jones
michae...@gmail.com
--Michael T. Jones
michae...@gmail.com
--
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 golan...@googlegroups.com.
On Mar 24, 2020, at 1:46 PM, Tamás Gulácsi <tgula...@gmail.com> wrote:
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/6455e855-3f1f-4836-ab58-2256e97f7eef%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/6455e855-3f1f-4836-ab58-2256e97f7eef%40googlegroups.com.
On Mar 30, 2020, at 12:43 PM, Nitish Saboo <nitish....@gmail.com> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CALjMrq7zyBTHv8YDwZqzn8Va6oN-wb7D-Cga8p_yPg3jOK950w%40mail.gmail.com.
Hi,
Requesting valuable inputs on this.Thanks,Nitish