用户的Web服务器的最大数目Apache可以办理? [英] web server maximum number of users apache can handle?

查看:280
本文介绍了用户的Web服务器的最大数目Apache可以办理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的问题是什么是Apache网络服务器2.2.2可以处理,我有一个网站,该网站有时会超过300多个并发用户,但是默认的Apache配置设置为最大值150,我知道我可以增加用户的最大数量这个值,但是如果我这样做,我担心我可能会在阿帕奇可以处理运行的能力,我的服务器是8个四核AMD处理器,拥有16 GM内存

My question is what is the maximum number of users that Apache webserver 2.2.2 can handle, i have a website which sometimes gets over 300+ concurrent users, however apache default configuration is set to max 150, i know i can increase this value, however if i do i fear that i might run over the capacity that Apache can handle, my server is quite powerful with 8 quad core AMD processor with 16 GM memory


  1. 如何确定有多少Apache可以处理请求,

  1. How do i determine how many requests that apache can handle,

在什么一般为服务器负载最佳优化的选项/配置。即禁用保活...等

In general what the options/configurations for a best optimised for server loads. i.e disable keep alive ..etc

当我增加最大用户规模时,MySQL吃掉了大部分的处理器的功耗与去超过150%的CPU有时....不知道为什么。

When i increase the max user size , MySql eats up most of the processor power with going over 150% CPU sometimes .... not sure why ..

哪位高手?

推荐答案

的Apache自带40-100最大线程数。它可以增加以允许更多的线程同时进行处理。

Apache comes with 40-100 max threads. It can be increased to allow more threads to be handled at the same time.

应用程序应进行任何更改之前进行监控。基于响应,尝试改变相应的ThreadsPerChild是和AcceptThreads。

The application should be monitored before making any changes to it. Based on the response, try to change "ThreadsPerChild" and "AcceptThreads" accordingly.

线程的最大号的缺省数量通常是不够的;然而,可以存在,其中此号码可能必须增加的条件。线程使用进行监控。为了监控,启动管理实例,请选择有问题的HTTP服务器,然后选择实时服务器统计左下角。

The default amount of "maximum" number of threads is usually enough; however, there can be conditions where this number may have to be increased. The threads usage can be monitored. To monitor, start the Administrative instance, select the HTTP server in question, and select Real Time Server Statistics at the bottom left.

如果空闲线程是接近或在零,这是一个问题。只要空闲线程是零,没有新的客户端连接,就可以建立。新客户端将被放入一个等待状态,直到一个线程变得可用。我们对这种条件的建议是具有增加的值添加指令ThreadsPerChild的,大约两倍的当前值,如果它是在40至100,或加50的范围内,如果是上述100所需的最低值(最大参数)只能通过试验和错误被发现。如果增加值之后,服务器将运行平稳,停止检测。

If Idle Threads is close to or at zero, this is a problem. As long as Idle Threads is zero, no new client connections can be established. New clients will be put into a wait status until a thread becomes available. Our recommendation for this condition is to add the directive ThreadsPerChild with an increased value, approximately double the current value if it was in the range of 40 to 100, or plus 50, if it was above 100. The required minimum value (for the maximum parameter) can only be found by trial and error. If after increasing the value, the server runs smoothly, stop testing.

(<一个href=\"http://www-912.ibm.com/s_dir/SLKBase.nsf/1ac66549a21402188625680b0002037e/7e27dfd157d89f5b862577430075c554?OpenDocument\">source)

这篇关于用户的Web服务器的最大数目Apache可以办理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆