Socket accept - “Too many open files”

后端 未结 13 1931
情歌与酒
情歌与酒 2020-11-28 02:48

I am working on a school project where I had to write a multi-threaded server, and now I am comparing it to apache by running some tests against it. I am using autobench to

13条回答
  •  无人及你
    2020-11-28 02:59

    Just another information about CentOS. In this case, when using "systemctl" to launch process. You have to modify the system file ==> /usr/lib/systemd/system/processName.service .Had this line in the file :

    LimitNOFILE=50000
    

    And just reload your system conf :

    systemctl daemon-reload
    

提交回复
热议问题