2

I have a nginx + gunicorn django application. Those process never die. For some reason until no-response: enter image description here

Once it runs on local Windows 10 env - It works really good, no memory leak hangs.

I think local only "fork" (win dont fork IO know) one main, but why does gunicorn process never die?

flice com
  • 125
  • 7

1 Answers1

0

The issue was:

        if qs:
            print('sql:', qs.query)
            print('explain:', qs.explain())

This evaluate all QS which is 2 millions raws .... changed to:

        if qs.exists():
            print('sql:', qs.query)
            print('explain:', qs.explain())

solved the issue.

flice com
  • 125
  • 7