linux - Help: php high CPU usage
天蓬老师
天蓬老师 2017-06-30 09:55:09
0
2
936

linux deployed lnmp
Recently found that the server CPU usage is very high,
Use strace -cp 30811 to find out

There is one access that is the most occupied

Call strace -T -e access -p 30811 again, the result is as shown:

But I couldn’t find anywhere in the program where access is used
I couldn’t find the access function when looking for PHP functions.
I really don’t know who is calling this thing, and the CPU remains high every day. So melancholy.

I hope someone who knows can help. Help points out who is calling, is it the bottom layer of PHP or Linux or something else?
Grateful.

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(2)
迷茫

Generally, php is occupied once every time a page is opened. Are you related to processes, scheduled tasks, etc. in cli mode?

学习ing

Access is a Linux system call used to check the user's permissions on a file. There are many access errors in the output of strace -cp. Is it because some files do not have access permissions?
In addition, I personally feel that when PHP is accessed through fastcgi, the CPU is usually higher (especially on Windows).

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!