Too many connections error!

Sometimes in my bench, a message appear to tell me that there are too many connections!
and the system is very slow then !!!
and terminal show this error !!

Error on request:
Traceback (most recent call last):
File “/home/frappe/frappe-bench/env/lib/python2.7/site-packages/werkzeug/serving.py”, line 193, in run_wsgi
execute(self.server.app)
File “/home/frappe/frappe-bench/env/lib/python2.7/site-packages/werkzeug/serving.py”, line 184, in execute
write(data)
File “/home/frappe/frappe-bench/env/lib/python2.7/site-packages/werkzeug/serving.py”, line 152, in write
self.send_header(key, value)
File “/usr/lib/python2.7/BaseHTTPServer.py”, line 401, in send_header
self.wfile.write(“%s: %s\r\n” % (keyword, value))
IOError: [Errno 32] Broken pipe
ERROR:werkzeug:Error on request:
Traceback (most recent call last):
File “/home/frappe/frappe-bench/env/lib/python2.7/site-packages/werkzeug/serving.py”, line 193, in run_wsgi
execute(self.server.app)

Any solution or useful reason for this?

I believe this has something to do with the Python code having a lot of print functions.

2 Likes

It is confusing!

Maybe you have a network problem?

A pipe connects a server with a client process.

This talks about code that fails to correctly handle a broken pipe -

1 Like

Looks like you’re running in developer mode. Change to production mode.

1 Like