- 论坛徽章:
- 0
|
inetd缺省的情况下每60s可以建立的server数目是40个.
可以通过更改inetd.conf来得到更大数目.
例如:
esoobserver stream tcp nowait.60 root /bin/sh /bin/sh
/usr/local/easysoft/oob/server/server
把数目扩展到60个.
参考原文:http://www.easysoft.com/support/kb/kb00633.html
inetd counts the number of server instances created in a 60 second interval. If your OOB Server is very busy accepting a lot of connections in a short period of time, inetd may decide the OOB Server is being flooded or looping and suspend the service for a while. A typical message output by inetd looks like this:
/var/log/messages:Feb 16 14:35:41 machine inetd[52]: esoobserver/tcp
failing (looping or being flooded), service terminated for 10 min
By default, most inetd servers count 40 instances in 60 seconds as too many. If you need a higher threshold that this you need to edit your inetd.conf file and amend the OOB Server line to add a maximum number of server instances [see the inetd.conf(8) man page]. Usually, all that is involved is placing a . and a number after the nowait.
e.g.
esoobserver stream tcp nowait.60 root /bin/sh /bin/sh
/usr/local/easysoft/oob/server/server
Do not forget to tell inetd to reread its configuration files after making changes to inetd.conf.
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/6783/showart_99407.html |
|