I'm not sure how useful this will be to you, but for me it was part of my 5 month nightmare... which nearly led me to buying a new top spec server for £1000+ when it wasnt needed
Basically i run a very very busy website, which uses a lot of MYSQL and has a lot of downloads... Now when their were a lot of users online pages on the server could take as long as 15 seconds to load.. i began tweakin MYSQL and APACHE confs to improve performance... Didnt work
i invesigated hardware, again no really problem...
Finally i came to the conclusion it was MYSQL and disk access time.. so i bought a SCSI drive 15K... their was slight improvement, but only by an extra few seconds..
In the end, it turned out to be CLUTTERED LOG FILES !!
Now by default apache will log every HTTP request into a single file located in DOMLOGS dir... my site was that busy that over time that log file had acumulated to 2.5GIG, so in other words, ever click, ever request made, the server had to open that hurendous file, dump a line of data into it, and close
imagine that happening 1000 times a second, on top of all the other processes!
The trick was, it doesnt really effect HARDWARE performance, so TOP etc produced no noticeable results.. !
I have no disabled all logs and the server runs as any other would, regardless of peaks !!
I just thought this was really interesting, and just goes to show that even the biggest problem with the most amount of research can have even the simplest solutions
And to any of you who had logs enabled, you may want to check the size of them...
du -sh * |grepM
run that command in the domlogs DIR and see what you get
or in my case... du -sh * |grepG !!
Basically i run a very very busy website, which uses a lot of MYSQL and has a lot of downloads... Now when their were a lot of users online pages on the server could take as long as 15 seconds to load.. i began tweakin MYSQL and APACHE confs to improve performance... Didnt work
i invesigated hardware, again no really problem...
Finally i came to the conclusion it was MYSQL and disk access time.. so i bought a SCSI drive 15K... their was slight improvement, but only by an extra few seconds..
In the end, it turned out to be CLUTTERED LOG FILES !!
Now by default apache will log every HTTP request into a single file located in DOMLOGS dir... my site was that busy that over time that log file had acumulated to 2.5GIG, so in other words, ever click, ever request made, the server had to open that hurendous file, dump a line of data into it, and close
imagine that happening 1000 times a second, on top of all the other processes!
The trick was, it doesnt really effect HARDWARE performance, so TOP etc produced no noticeable results.. !
I have no disabled all logs and the server runs as any other would, regardless of peaks !!
I just thought this was really interesting, and just goes to show that even the biggest problem with the most amount of research can have even the simplest solutions
And to any of you who had logs enabled, you may want to check the size of them...
du -sh * |grepM
run that command in the domlogs DIR and see what you get
or in my case... du -sh * |grepG !!