当我执行Apache Benchmark以测试我网站上的流量负载时......我的服务器的cpu被HHVM 100%使用。
$critical = DB::table('dbo_modules')
->where('ModuleCountLeft' , '<' , DB::table('dbo_modules')->pluck('ModuleCriticalLevel') )
->count();
check screenshot of apacheBenchmark test
此处运行基准测试时的CPU状态
$data = array
(
'Samsung GT-i9300 Galaxy S III 16GB',
'Samsung GT-i9100 Galaxy S II'
);
$new_arr=array();
foreach ($data as $val) {
$new_arr[]['name'] = $val;
}
print_r($new_arr);
screenshot HHVM uses High CPU more than 100%
服务器: Digitalocean, 1GB RAM, 2核心CPU, Ubuntu 14.04, Nginx 1.8.0