[zeromq-dev] Memory accumulation of Python-based PUB/SUB

Bill Torpey wallstprog at gmail.com
Wed Oct 20 17:17:12 CEST 2021


Hi Jan:

First step I would think would be to determine if the memory usage is coming from the python code or from libzmq itself.  Are you able to do that?

Regards,

Bill

> On Oct 20, 2021, at 5:46 AM, Yanone <post at yanone.de> wrote:
> 
> 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
> 
> 
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> https://lists.zeromq.org/mailman/listinfo/zeromq-dev



More information about the zeromq-dev mailing list