SMF Support > Server Performance and Configuration

Forum is getting slow

<< < (2/2)

Seta Soujiro:
Ah yes, I sometimes have this problem.  Put this in your cron file to run every 30 minutes: /etc/init.d/httpd stop ; /etc/rc.d/init.d/mysqld stop ; sleep 5 ; /etc/rc.d/init.d/mysqld start ; /etc/init.d/httpd start ; renice -20 -u apache.  This will restart httpd and mysql, and then change the priority of httpd to realtime -20 priority.

Ben_S:

--- Quote from: Kjell Heilevang on June 30, 2005, 01:31:07 PM ---
Not all the time, but I do think I will say it is at least 60-70 % of the time. It might be the server on total traffic on all websites, because I just did a check on my site. When the forum is slow, all other sections of my site connected to MySql is also slow. Plain html pages download fast.

I have just made contact with my host and asked them to check if my forum and the increased traffic cause problems for MySql to work properly.

--- End quote ---

In honesty, I imagine it's likely to be caused by someone elses scripts, do you know what version of MySQL is in use on the server.


--- Quote from: Yugi on June 30, 2005, 04:08:58 PM ---Ah yes, I sometimes have this problem.  Put this in your cron file to run every 30 minutes: /etc/init.d/httpd stop ; /etc/rc.d/init.d/mysqld stop ; sleep 5 ; /etc/rc.d/init.d/mysqld start ; /etc/init.d/httpd start ; renice -20 -u apache.  This will restart httpd and mysql, and then change the priority of httpd to realtime -20 priority.
--- End quote ---

If you having to restart apache and MySQL every 30 mins, you should probably look into fixing the problem with your scripts / config.

Besides the original poster is on a shared host so cannot do that.

Kjell H.:


--- Quote ---In honesty, I imagine it's likely to be caused by someone elses scripts, do you know what version of MySQL is in use on the server.


--- End quote ---

Here's the info at
http://www.cascity.com/forumhall/phpinfo.php

I am not sure if can mess with any cron job since I am on a shared server though.
The host reports back and says everythings look good at their end also checking from an outside computer. Anyhow, I have to do some more research on this.

[Unknown]:
That doesn't show the MySQL version (the one it shows is just PHP's internal support, not the actual MySQL installation.)

Please upload the following file, so we can see what it says.

-[Unknown]

Navigation

[0] Message Index

[*] Previous page

Go to full version