question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Possible memory leak when monitoring large number of prefixes

See original GitHub issue

Hello,

Before anything, thanks for this project. I’ve been watching it for a while, and now finally deployed it… I hope I’ll be able to contribute to at some point, for now, at least, with some reports.

Describe the bug

Well, it is not exactly a bug (or maybe it is), but I’ve noticed the memory is steadily increasing. In 24 hours after deploying the app, the memory footprint grew from 150MB to over 800MB, and it looks like it’s only going to be getting worse - see screenshot below:

BGPalerter Mem Usage Grafana

The CPU usage seems pretty stable however.

I’m yet to play with Node Js, but in general a pattern like that means there’s a possibility of a memory leak somewhere.

Provide an example Provide an example in terms of prefixes and BGP messages. Possibly provide a snippet of config.yml and prefixes.yml.

Nothing really specific, pretty much all the prefixes from https://bgp.he.net/AS14061#_prefixes and https://bgp.he.net/AS14061#_prefixes6, e.g.,

"5.101.96.0/21":
  description: "Some description"
  asn: 14061
  ignoreMorespecifics: false
  ignore: false

3581 prefixes in total.

Expected behavior

Given the high number of prefixes, I’d expect to see a pretty important memory footprint, but I find an always growing figure more worrying because it’s not easily predictable how much resources you’re going to need on the long term.

Are you using the binary or the source code?

A custom Docker image based on nttgin/BGPalerter, so source code.

Your information Provide your name and your AS/company (see Bert Hubert’s post https://berthub.eu/articles/posts/anonymous-help/).

AS14061, DigitalOcean.

Cheers!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:19 (19 by maintainers)

github_iconTop GitHub Comments

2reactions
jobcommented, Jan 21, 2020

I just want to say you guys rock 😃

On Tue, Jan 21, 2020 at 23:03 Massimo Candela notifications@github.com wrote:

Hi @mirceaulinic https://github.com/mirceaulinic,

This is interesting! I need to replicate it. Could you please provide me with the rule in prefixes.yml covering this ip: 195.66.227.90

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/nttgin/BGPalerter/issues/114?email_source=notifications&email_token=AABFRWECS7BFSLPCO3VOAS3Q636BVA5CNFSM4J56R3OKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJP2ZMQ#issuecomment-576695474, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABFRWCYHZCULWNXIIAMN5DQ636BVANCNFSM4J56R3OA .

1reaction
massimocandelacommented, Jan 22, 2020

To be clear, the frequent re-announcements are real independently from the duplication. So there there are 2 phenomena:

  • re-announcements or anyway frequent updates
  • duplication of them (RIS bug)

The RIS team is working on the second one!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Java Memory Leaks: Solutions, Tools, Tutorials & More - Stackify
We put together this guide to help you understand how, why, and where Java memory leaks happen – and what you can do...
Read more >
How I investigated memory leaks in Go using pprof on a large ...
This tool, when mastered, can assist in investigating and most likely finding any memory issue. Another purpose it has is for investigating CPU ......
Read more >
Relic Solution: Troubleshooting Java Agent Memory Leaks ...
This is the simplest memory issue and it occurs when a user has set their -Xmx value low enough that adding the agent...
Read more >
3 Troubleshoot Memory Leaks - Java - Oracle Help Center
Detecting a slow memory leak can be hard. A typical symptom could be the application becoming slower after running for a long time...
Read more >
Seems bgpd-process consumes a lot of memory or memory leak
134.32 address-family ipv4-unicast prefix-list export 'SC-IPv4-OUT' set protocols bgp neighbor 10.228.134.32 address-family ipv4-unicast route- ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found