linux - 服务器加载时间问题

标签 linux apache cpanel

我收到了一封来自托管公司的电子邮件,告诉我我的服务器上存在加载问题,实际上我不是网站管理员,因此如果可能的话,我需要您的帮助。 他们说:

IMPORTANT: Do not ignore this email.
  This is cPanel stats runner on examle.com!
  While processing the log files for user "example", the cpu has been
maxed out for more than a 6 hour period.  The current load/uptime line on the server at the time of
this email is
  18:19:49 up 129 days, 21:47,  0 users,  load average: 4.20, 3.37, 3.16
  You should check the server to see why the load is so high and take
steps to lower the load.  If you want stats to continue to run even with a high load; Edit
/var/cpanel/cpanel.config and change extracpus to a number larger then 0 (run
/usr/local/cpanel/startup afterwards to pickup the changes).

我想知道我的服务器是否被攻击或者服务器内部有问题(网站加载时出现问题)? 我希望你能帮我解决这个紧急情况。谢谢

最佳答案

嘿,

当处理网站统计数据的程序处理您的网站统计数据超过 6 小时时,就会发送此电子邮件。程序正在构建的统计信息位于 cPanel 的统计信息部分下。

发生这种情况的原因有多种,但最有可能的是,托管您的 cPanel 帐户的服务器过载,并且您的统计数据处理暂停,而服务器过载超过 6 小时,导致您的统计数据无法运行。

此错误还有其他原因,包括如果您使用 awstats.conf 文件,这可能会导致问题。

但是,这个问题是服务器管理员必须解决的问题,因为他们需要访问特定的日志文件以及服务器的根 shell。

服务器管理员可以使用的一种补救措施是在/var/cpanel/cpanel.config 中将 extracpus 更改为大于 0 的数字,然后运行 ​​/scripts/restartsrv_cpsrvd

如果上述方法失败,服务器管理员将必须从以下日志文​​件之一中查找问题:

/usr/local/cpanel/logs/error_log
/usr/local/cpanel/logs/stats_log

可以在下面的链接中找到 cPanel 日志文件和配置文件的图表,以便进一步调查。

关于linux - 服务器加载时间问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19195506/

相关文章:

php - 无法打开位于 "/etc/sw/keys"的存储库

c - tcsh 时间和 makefile 时间明显不同

php - 我网站上的 404 机器人攻击(各种 DDoS)

php - WordPress 抛出 "The maximum number of databases you can create has been reached, so installation cannot proceed."

linux - 未找到 Sudo 命令(Jenkins 执行 shell 时出错)

windows - IIS 用户目录,如 linux public_html

apache - 如何避免在 LAN 网站上出现自签名 SSL 警告?

php - 如何在 cPanel 上启用 "Default Address",我在那里看不到图标

php - 将网站从我的计算机移动到主机或服务器?

linux - 如何在远程服务器上执行命令行文件?