I built a small example, that reflects what I do basically do in my service. The service runs out of memory pretty quickly: https://github.com/Strernd/libp2p-example
To watch the memory use docker stats
After a few minutes I’m up to 650MB memory usage from around 200 MB at the start. The memory consumption per service increases at a rate of approximately 100MB per 3 minutes.
Every service sends a message to pubsub every 100-200ms and every other service is subscribed to it.
I guess this is not intended?