Howie's Workshop

26Mar/065

已经确认运行于mod_php下的网站不会计算CPU Minutes

昨天,由于网友桑葚提示说DreamHost的wiki上有这样一段关于CPU Minutes的话:
You will see a drop in CPU usage once these changes go into effect. Please keep in mind that this is a false reading because your scripts are running as an Apache module now, and thus are reporting under Apache’s usage rather than your username. This is intended to help you pinpoint your problem script, not to “solve” your CPU usage issues.

带着疑问,我给DreamHost的客服发了email,由于对自己的英文水平不够自信,我发出的信件将转译成中文显示,呵呵.

1.要求他把我运行于mod_php模式下的网站的cpu统计数据给我.
他们回答:Unfortunately, there's no way to see that. mod_php runs as the apache user, and not you, so there's no way to report that. Sorry about that.
2.乘胜追击继续发问,"那是不是mod_php模式下不会计算我的cpu时间?还是你们另有计算方式?"
他们回答:Currently, we don't have a way to monitor CPU for mod_php. We monitor on a machine by machine basis. If we see a machine that's causing problems, we audit it. If we determine that all the usage is mod_php, then we take steps to bring the usage down.
Hope this helps. If you need anything else, please let us know.
这样就真相大明了,除非你的程序真的有问题,不然你运行于mod_php模式下的网站将永远在其保护伞下.

另外,我昨天也发了一封信给bluehost,问他们是不是有CPU MINUTES的概念,他们居然回答说有,而且是60秒???我估计是笔误,赶紧问是每小时还是每天啊,呵呵.等回信ing...看来cpu时间限制不只是dreamhost的特权呢.

ps.
BlueHost客服回应了,原来他们所指的CPU时间是每次执行的CPU时间:
That would be 60sec at a time. If a process takes longer than 60sec then the server would terminate that process. Any process should not take longer than 60sec. We do not have a cumulative amount of CPU usage per month.

Comments (5) Trackbacks (0)
  1. BlueHost客服回应了,原来他们所指的CPU时间是每次执行的CPU时间:
    That would be 60sec at a time. If a process takes longer than 60sec then the server would terminate that process. Any process should not take longer than 60sec. We do not have a cumulative amount of CPU usage per month.

  2. 怎样才算是运行于mod_php模式下?

  3. 呵呵,就是不要打Run PHP as CGI?前面的那个勾.

  4. 呵呵,就是不要打Run PHP as CGI?前面的那个勾.
    ==========
    没找到你说的这个呀.是不是这个:Extra Web Security?

  5. 刀,因为从周日(4月8日)开始,DH已经不支持mod_php了,你当然找不到Run PHP as CGI啦


Leave a comment


No trackbacks yet.