janharders

msg:3832514 | 8:37 pm on Jan 22, 2009 (gmt 0) |
first thing would be to actually look at the processlist in mysql so you can see what's running (and how long it's running. if it's heavy, you usually have a couple of seconds to see the processes). if you don't find the problem, ask your administrator to enable the mysql-slow-log, so that all slow queries will be logged to a special log file.
|
nick patrick

msg:3832517 | 8:41 pm on Jan 22, 2009 (gmt 0) |
as i said i just dont no anything about servers so which command will use to check the process list of mysql
|
nick patrick

msg:3832539 | 9:06 pm on Jan 22, 2009 (gmt 0) |
i found that optimizing MySql and Apache will fix the issue can anyone tell me how to optimize ?
|
janharders

msg:3832544 | 9:11 pm on Jan 22, 2009 (gmt 0) |
since you're already using , just don't pipe it's output into wc. you'll see what's running in mysql right now. as for optimization of mysql and apache: that may fix the issue. unfortunately, you cannot just set "optimize = 1" in some config file, you will have to tune the system and the configuration to fit your special situation and needs.
|
nick patrick

msg:3836039 | 10:21 pm on Jan 27, 2009 (gmt 0) |
ok i got the issue but i am still lookinh for solution the issue is apache + mysql is making much load on server but when i checked port80 so its root@host [/home/threezee/public_html]# netstat -an ¦grep :80 ¦wc -l 329 i have tried the basic optimize of mysql+httpd. please give me other ways with details and command lines i am new ;) its important for me :S
|
jeffatrackaid

msg:3836706 | 6:31 pm on Jan 28, 2009 (gmt 0) |
You will want to use sysstat to start tracking disk/cpu/memory metrics. Then have an external tool poll certain pages on your site to generate a baseline of response. This way you can clearly track your progress. I typically start with MySQL. There is a tool called mysqltuner.pl that can give you some initial indications of problems but it is no substitute for having handle on MySQL tuning. Sysstat is very useful in spotting hardware resource limits and depending on the limits being hit, there are different tuning paths.
|
|