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 <[email protected]> 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
> [email protected]
> https://lists.zeromq.org/mailman/listinfo/zeromq-dev

_______________________________________________
zeromq-dev mailing list
[email protected]
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to