code_junkie

cherrypy not closing the sockets

Nov 11th, 2011
163
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. [21/Oct/2008:12:44:25] ENGINE HTTP Server
  2. cherrypy._cpwsgi_server.CPWSGIServer(('0.0.0.0', 8080)) shut down
  3. [21/Oct/2008:12:44:25] ENGINE Stopped thread '_TimeoutMonitor'.
  4. [21/Oct/2008:12:44:25] ENGINE Stopped thread 'Autoreloader'.
  5. [21/Oct/2008:12:44:25] ENGINE Bus STOPPED
  6. [21/Oct/2008:12:44:25] ENGINE Bus EXITING
  7. [21/Oct/2008:12:44:25] ENGINE Bus EXITED
  8. Exception in thread HTTPServer Thread-3:
  9. Traceback (most recent call last):
  10. File "/usr/lib/python2.3/threading.py", line 436, in __bootstrap
  11. self.run()
  12. File "/usr/lib/python2.3/threading.py", line 416, in run
  13. self.__target(*self.__args, **self.__kwargs)
  14. File "/usr/lib/python2.3/site-packages/cherrypy/process/servers.py", line 73, in
  15. _start_http_thread
  16. self.httpserver.start()
  17. File "/usr/lib/python2.3/site-packages/cherrypy/wsgiserver/__init__.py", line 1388, in start
  18. self.tick()
  19. File "/usr/lib/python2.3/site-packages/cherrypy/wsgiserver/__init__.py", line 1417, in tick
  20. s, addr = self.socket.accept()
  21. File "/usr/lib/python2.3/socket.py", line 167, in accept
  22. sock, addr = self._sock.accept()
  23. error: (24, 'Too many open files')
  24. [21/Oct/2008:12:44:25] ENGINE Waiting for child threads to terminate..
  25.  
  26. netstat -ap | grep "4536" | grep CLOSE_WAIT | wc -l
  27.  
  28. cherrypy.config.update({'server.socketQueueSize': '10'})
Add Comment
Please, Sign In to add comment