[zeromq-dev] Memory accumulation of Python-based PUB/SUB
Yanone
post at yanone.de
Wed Oct 20 11:46:19 CEST 2021
Hi everyone,
I’m implementing a long-running PUB/SUB server using 0mq. It’s accumulating a lot of memory over time (as users connect) and doesn’t release it after disconnection.
Is there a best-practice around this? The server is running in Python/Flask and is very simple, see here: https://github.com/typeworld/messagequeue-docker/blob/main/pub.py
Has anyone tried Python’s `gc` module (garbage collection) to any success?
Thank you
Jan
--
Yanone
Dipl.-Designer,
Master of Design in Type & Media
https://yanone.de
Twitter/Instagram: @yanone
+49 176 24023268 (Germany)
Type.World project:
https://type.world
Crowd funding on:
https://www.patreon.com/typeWorld
More information about the zeromq-dev
mailing list