简体   繁体   English

网站运行速度非常慢

[英]Websites running very slow

we have a vserver problem that started all of the sudden yesterday. 我们有一个虚拟服务器问题,从昨天突然开始。 If you go to this Website: 如果您访问此网站:

http://www.rightsfreeradio.de http://www.rightsfreeradio.de

You will notice that it needs ages to load. 您会注意到它需要使用年龄才能加载。

This happends to all websites we have running on the vserver. 这发生在我们在虚拟服务器上运行的所有网站上。 I was asking the Provider if there is any problem with their connections, but they dont have any problems. 我问供应商他们的连接是否有任何问题,但他们没有任何问题。

If I log in to FTP its running fast as usual only all web based applications and websites are running very slow. 如果我登录到FTP,FTP照常运行,则只有所有基于Web的应用程序和网站运行非常缓慢。

Running "top" shows that mysql takes like 70%+ on the CPU, but Iam not sure if thats normal or not. 运行“ top”显示mysql在CPU上占用的内存超过70%,但是我不确定那是否正常。

Do you have any ideas what could be wrong with the server? 您有什么想法服务器可能出问题吗?

What programming standards are you using. 您正在使用什么编程标准。 I opened link but did not open it. 我打开了链接,但没有打开它。

Either there may issue with server. 服务器可能有问题。 Or another cas is: 或另一个cas是:

  1. Check any js, css file taking time to load 检查任何需要花费时间来加载的js,css文件
  2. Put unncessary imported files at the end of body tag 将不必要的导入文件放在body标签的末尾
  3. On load are you calling any function which may be prone to deadlock getting blocked? 在加载时,您是否正在调用任何可能容易导致死锁被阻塞的函数?
  1. Make sure to use HTML Validator to correct your HTML etc. 确保使用HTML验证程序来更正您的HTML等。
  2. Also make sure all scripts are working fine or to debug. 还要确保所有脚本都能正常工作或进行调试。 Take off all the script files imported and go from there. 取出所有导入的脚本文件,然后从那里开始。
  3. Link doesn't open at all. 链接根本没有打开。

first, I suggest you to restart all service on your server and then: 首先,建议您重新启动服务器上的所有服务,然后:

  1. check mysql error log as you say above 如上面所说检查mysql错误日志

    tail -f /var/log/mysql.log 尾-f /var/log/mysql.log

  2. and then, check your databases 然后,检查您的数据库

    mysqlcheck -Aor mysqlcheck -Aor

  3. and you can follow this link bellow 您可以点击以下链接

Show top five CPU consuming processes with ps ps显示前五个CPU消耗进程

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM