最大请求是什么意思?服务器高手进来...

Max Requests Per Child: 0 - Keep Alive: off - Max Per Connection: 100
我在我的主机上用phpinfo看到了上面的消息:
那么我的主机是不是在线人数最大为100人....
他说可以撑到250人,可能吗?
高手回答...100 分不够再加
Max Per Connection: 100 的100是不是可以再加..
如果真的如上面是真的话,
服务商是不是骗了我
???
困惑中...

---------------------------------------------------------------

are you using Apache? find the file named "httpd.conf" in conf directory, look for

MaxKeepAliveRequests: The maximum number of requests to allow

during a persistent connection. Set to 0 to allow an unlimited amount.

We recommend you leave this number high, for maximum performance.

MaxKeepAliveRequests 100

MaxRequestsPerChild: the number of requests each child process is

allowed to process before the child dies. The child will exit so

as to avoid problems after prolonged use when Apache (and maybe the

libraries it uses) leak memory or other resources. On most systems, this

isn't really needed, but a few (such as Solaris) do have notable leaks

in the libraries. For Win32, set this value to zero (unlimited)

unless advised otherwise.

MaxRequestsPerChild 0
---------------------------------------------------------------

允许的同一时间最大的请求数是100。
也就是同时允许100个人进行操作。
---------------------------------------------------------------

这么理解吧:
当我访问你的网站时,我就与服务器建立了连接,当所有数据都传输完成时,连接就中断了。同时,在我请求数据的时候又有别人来访问这个网站,那么他也算一个连接。MaxKeepAliveRequests 100表示可以最多有100个人同时请求数据,后来的人就必须等待连接,如果等待时间比较长的话浏览器就会返回无法连接的错误(这个时间由浏览器决定)。如果你的脚本执行时间较长,而且访问量比较大,就有麻烦了。apache默认情况下最多有256个同时连接(如果需要更多的话可以修改源文件然后再编译)。
---------------------------------------------------------------

春之风理解错误,人家是用的服务商的空间,除非网管愿意,用户怎样改MaxKeepAliveRequests?但他的说法是对的,并发100连接太少,绝对不可能在线250人,因为一个用户可能打开几个连接,每个连接算一个connect.要求网管增加吧。

Published At
Categories with Web编程
Tagged with
comments powered by Disqus