0

Following error I am getting when I run thrift services

Thrift: Wed Dec 11 18:03:14 2013 thriftServerEventHandler: accept() Too many open files
Thrift: Wed Dec 11 18:03:14 2013 thriftServerEventHandler: accept() Too many open files
Thrift: Wed Dec 11 18:03:14 2013 thriftServerEventHandler: accept() Too many open files
Thrift: Wed Dec 11 18:03:14 2013 thriftServerEventHandler: accept() Too many open files
Thrift: Wed Dec 11 18:03:14 2013 thriftServerEventHandler: accept() Too many open files
Thrift: Wed Dec 11 18:03:14 2013 thriftServerEventHandler: accept() Too many open files

Mt thrift server in c++ and using ThreadManager and php client with TFramedTransport

JensG
  • 12,102
  • 4
  • 40
  • 51
PHP Connect
  • 517
  • 2
  • 6
  • 24
  • Assuming Linux: Have you checked http://stackoverflow.com/questions/880557/socket-accept-too-many-open-files and related answers? – JensG Dec 11 '13 at 18:00
  • But my problem is connection is not going beyond 500 without any concurrency ulimit is the later part – PHP Connect Dec 12 '13 at 05:04
  • So what does `ulimit -a` say and how many FDs are in use? If in doubt, check http://stackoverflow.com/questions/1356675/check-the-open-fd-limit-for-a-given-process-in-linux to find out the latter. – JensG Dec 14 '13 at 10:28

0 Answers0