WHM Wordpress admin-ajax.php CPU 负载过高:错误“-1 ENOENT(没有此类文件或目录)”

发布于 2025-01-15 09:59:39 字数 2712 浏览 2 评论 0原文

致所有出色的专家:

我刚刚迁移到新的 VPS 服务器,并注意到 admin-ajax.php 在 WHM 中使用了非常高的 CPU%,当我跟踪该过程时,我可以看到大量访问错误,如图所示下面:

链接到图像

    access("/home/xxx/public_html/wp-content/plugins/cornerstone/includes/classes/dynamic-content/class-control-textarea.php", F_OK) = -1 ENOENT (No such file or directory)
    access("/home/xxx/public_html/wp-content/plugins/cornerstone/includes/classes/element/class-control-textarea.php", F_OK) = -1 ENOENT (No such file or directory)
    access("/home/xxx/public_html/wp-content/plugins/cornerstone/includes/classes/options/class-control-textarea.php", F_OK) = -1 ENOENT (No such file or directory)
    access("/home/xxx/public_html/wp-content/plugins/cornerstone/includes/classes/pro/class-control-textarea.php", F_OK) = -1 ENOENT (No such file or directory)
    access("/home/xxx/public_html/wp-content/plugins/cornerstone/includes/classes/regions/class-control-textarea.php", F_OK) = -1 ENOENT (No such file or directory)
    access("/home/xxx/public_html/wp-content/plugins/cornerstone/includes/classes/styling/class-control-textarea.php", F_OK) = -1 ENOENT (No such file or directory)
    access("/home/xxx/public_html/wp-content/plugins/cornerstone/includes/classes/templating/class-control-textarea.php", F_OK) = -1 ENOENT (No such file or directory)
    access("/home/xxx/public_html/wp-content/plugins/cornerstone/includes/classes/classic/builder/class-control-textarea.php", F_OK) = -1 ENOENT (No such file or directory)
    access("/home/xxx/public_html/wp-content/plugins/cornerstone/includes/classes/classic/controls/class-control-textarea.php", F_OK) = 0
    lstat("/home/xxx/public_html/wp-content/plugins/cornerstone/includes/classes/classic/controls/class-control-textarea.php", {st_mode=S_IFREG|0644, st_size=262, ...}) = 0
    open("/home/xxx/public_html/wp-content/plugins/cornerstone/includes/classes/classic/controls/class-control-textarea.php", O_RDONLY) = 5
    fstat(5, {st_mode=S_IFREG|0644, st_size=262, ...}) = 0
    read(5, "<?php\nclass Cornerstone_Control_"..., 262) = 262
    fcntl(3, F_SETLKW, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=0, l_len=1}) = 0
    fcntl(3, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=1}) = 0
    close(5)

如您所见,它在找到文件之前循环遍历整个目录然后关闭的过程。 (这是在一个进程中,它在该进程中发生了大约 400 次)

我担心这是导致 CPU 过载的问题,并且它导致我的网页加载非常缓慢的前端和后端。

我也在升级我的服务器,但下面是我的服务器规格:

操作系统:Linux

CPU:2 核 Intel(R) Xeon(R) CPU E5-2420 0 @ 1.90GHz

内存:2GB

PHP 处理程序:suphp

CMS:Wordpress 多站点

在升级到 VPS 服务器之前,我从未遇到过此问题我担心这可能是与性能相关的问题。

我愿意接受任何建议,提前谢谢你们,请原谅我在 Linux 服务器上的经验不足

To all the awesome gurus out there:

I have just migrated to a new VPS server and noticed admin-ajax.php using up a very high amount of CPU% in WHM and when I traced the process I can see plenty of access error as shown below:

Link to image

    access("/home/xxx/public_html/wp-content/plugins/cornerstone/includes/classes/dynamic-content/class-control-textarea.php", F_OK) = -1 ENOENT (No such file or directory)
    access("/home/xxx/public_html/wp-content/plugins/cornerstone/includes/classes/element/class-control-textarea.php", F_OK) = -1 ENOENT (No such file or directory)
    access("/home/xxx/public_html/wp-content/plugins/cornerstone/includes/classes/options/class-control-textarea.php", F_OK) = -1 ENOENT (No such file or directory)
    access("/home/xxx/public_html/wp-content/plugins/cornerstone/includes/classes/pro/class-control-textarea.php", F_OK) = -1 ENOENT (No such file or directory)
    access("/home/xxx/public_html/wp-content/plugins/cornerstone/includes/classes/regions/class-control-textarea.php", F_OK) = -1 ENOENT (No such file or directory)
    access("/home/xxx/public_html/wp-content/plugins/cornerstone/includes/classes/styling/class-control-textarea.php", F_OK) = -1 ENOENT (No such file or directory)
    access("/home/xxx/public_html/wp-content/plugins/cornerstone/includes/classes/templating/class-control-textarea.php", F_OK) = -1 ENOENT (No such file or directory)
    access("/home/xxx/public_html/wp-content/plugins/cornerstone/includes/classes/classic/builder/class-control-textarea.php", F_OK) = -1 ENOENT (No such file or directory)
    access("/home/xxx/public_html/wp-content/plugins/cornerstone/includes/classes/classic/controls/class-control-textarea.php", F_OK) = 0
    lstat("/home/xxx/public_html/wp-content/plugins/cornerstone/includes/classes/classic/controls/class-control-textarea.php", {st_mode=S_IFREG|0644, st_size=262, ...}) = 0
    open("/home/xxx/public_html/wp-content/plugins/cornerstone/includes/classes/classic/controls/class-control-textarea.php", O_RDONLY) = 5
    fstat(5, {st_mode=S_IFREG|0644, st_size=262, ...}) = 0
    read(5, "<?php\nclass Cornerstone_Control_"..., 262) = 262
    fcntl(3, F_SETLKW, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=0, l_len=1}) = 0
    fcntl(3, F_SETLK, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=1}) = 0
    close(5)

As you can see, it cycles through a whole directory before finding the file and then closing the process. (this is in a single process where it happens about 400 times in that one process)

I'm concerned that this is the issue that is causing the CPU overload, and it's causing my webpage to load really slowly frontend and backend.

I am also in the midst of upgrading my server but here's my server spec below:

OS: Linux

CPU: 2 Cores Intel(R) Xeon(R) CPU E5-2420 0 @ 1.90GHz

RAM: 2GB

PHP Handler: suphp

CMS: Wordpress Multisite

I have never had this issue prior to my upgrade to the VPS server and I am concerned that this may be a performance related issue.

I'm open to any suggestions here, thank you guys in advance and pardon my inexperience on Linux servers

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文