Comments (5)
I have created memory snapshot with gdb --pid=226 and gcore and could share with you:
397M Oct 8 19:08 core.226
from gobgp.
Thanks for the report (and sorry about the delay),
Surely, looks worrying. Let me try to reproduce here. You just configure a single peer and let it run for a week? No gRPC (and CLI commands)?
The number of processes also looks scary. How about the number of processes just after starting gobgp?
btw, I've just add the pprof support:
https://golang.org/pkg/net/http/pprof/
The following command gives an idea on who hogs memory:
$go tool pprof --text http://localhost:6060/debug/pprof/heap
from gobgp.
Hello!
Yes, we have only single peer but we have used gRPC from CLI tool.
Recently started tool looks like this:
root 8984 0.0 0.3 290236 7328 pts/1 Sl 16:21 0:00 /opt/gobgp_1_0_0/gobgpd -f /etc/gobgpd.conf
gobgpd---7*[{gobgpd}]
Nice idea about pprof!
from gobgp.
Sorry about the delay,
We added lots of routes and then remove them via gRPC. Seems no memory leak.
https://gist.github.com/fujita/cf526e8db0e082daf4f7#file-gistfile1-txt
RSS increased as the number of routes does, then RSS decreased as the number of routes does. As same as your observation, VIRT increased up to about 2G and didn't decrease. But VIRT isn't the amount of memory actually in use. Seems that what we observed is what we expect with golang.
Here is some info about how golang uses memory:
https://deferpanic.com/blog/understanding-golang-memory-usage/
from gobgp.
Hello!
I'm running GoBGP for ~1 weeks and it's looks like this:
root 260 0.0 0.3 1521048 8224 ? Sl Nov12 1:09 /usr/local/bin/gobgpd -f /etc/gobgpd.conf
So it's OK :) We actually haven't any memory leaks in awesome gobgp toolkit! Thanks for nice explanation of go's memory behavior.
from gobgp.
Related Issues (20)
- Request for Review on Exporting BGP Configuration Package HOT 1
- Set neighbor password through CLI HOT 1
- Q&A Best way to get the list of locally originated routes via gRPC
- How to use BGP-LS EPE with GoBGP?
- after installing grpcio and grpc-tools, attribute_pb2.py and other files aren't available HOT 3
- [oss-fuzz] upstream support request HOT 3
- gRPC Error: <_InactiveRpcError of RPC that terminated with: details = "unknown service apipb.GobgpApi"
- SEGV bug in `pkg/server/fsm.go` HOT 7
- A packet parse bug that causes wrong value for `My AS` field HOT 1
- slice bounds out of range bug in `packet/bgp/bgp.go` HOT 3
- Gobgp does not check the length of the received `Capability Length` of the `Software Version Capability` HOT 4
- Question about RFC6286
- Is there a way to add BGP extended communities like encapsulation and origin via rib add command? HOT 3
- "Context deadline exceeded" after entering gobgp mrt inject command HOT 2
- Failed to parse issue HOT 3
- it is possible to speed up advertisement prefix?
- Why does bmp not support MultiPathList? HOT 7
- Does goBGP support batch collection of full routing tables of specified AFI and SFAFI types through gRPC API (acquire in batches and multiple times)? HOT 16
- Quick EVPN question HOT 2
- Limit number of announces in GoBGP RIB per AFI HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gobgp.