Hello Bryce,

Thursday, October 10, 2002, 8:14:22 AM, you wrote:

BC> I have a mysql + php + apache server that is under
BC> heavy load. 

BC> I have a script that runs every minute to deterimine
BC> if the load is above a certain value (or if swap is
BC> high) and if so, it kills all the httpd processes,
BC> does /etc/rc.d/init.d/mysql stop

BC> The script then starts everything back up again.

BC> I am curious if there is a better way to restart mysql

[]

I can say that solving performance/load problems by resetting
SQL server or web server is a totally wrong solution.

The Right Way(tm) is to fine-tune both MySQL and Apache to fit in
memory/CPU load - this way you'll get much better performance and
reliability!

So you can take a look at http://www.mysql.com/doc/en/MySQL_Optimisation.html



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com




---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to