You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Samuel Vogel <sa...@gmx.de> on 2007/09/29 17:08:54 UTC

[users@httpd] Investigating high harddrive load

Hey people,

I would like to know if there is any way to debug what vhost is causing 
the high load on my harddrive, that I'm experiencing.
To be more specific:
When I run "top", 80% of my CPU time is in i/o wait. How could I find 
out, what vhost is causing this?

Regards,
Samy

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Investigating high harddrive load

Posted by Samuel Vogel <sa...@gmx.de>.
I enabled mysql logging and after some SQL magic I had found the problem.
Thanks!

Regards,
Samy

Brian A. Seklecki schrieb:
> Basic log analysis should be pretty obvious?  Do you have a standard
> format for vhost log subdirs?  /var/log/${vhost}/{access,error}_log ?
>
> $ sudo tail -F /var/log/*/access_log 
>
> It should become obvious very quickly -- unless it's a CGI/PHP script
> running a disk-intensive code block.
>
> ~BAS
>
> On Sat, 2007-09-29 at 17:08 +0200, Samuel Vogel wrote:
>   
>> Hey people,
>>
>> I would like to know if there is any way to debug what vhost is causing 
>> the high load on my harddrive, that I'm experiencing.
>> To be more specific:
>> When I run "top", 80% of my CPU time is in i/o wait. How could I find 
>> out, what vhost is causing this?
>>
>> Regards,
>> Samy
>>
>> ---------------------------------------------------------------------
>> The official User-To-User support forum of the Apache HTTP Server Project.
>> See <URL:http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
>> For additional commands, e-mail: users-help@httpd.apache.org
>>
>>
>>
>>
>>
>>
>>
>>     
>
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>   

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Investigating high harddrive load

Posted by "Brian A. Seklecki" <la...@spiritual-machines.org>.
Basic log analysis should be pretty obvious?  Do you have a standard
format for vhost log subdirs?  /var/log/${vhost}/{access,error}_log ?

$ sudo tail -F /var/log/*/access_log 

It should become obvious very quickly -- unless it's a CGI/PHP script
running a disk-intensive code block.

~BAS

On Sat, 2007-09-29 at 17:08 +0200, Samuel Vogel wrote:
> Hey people,
> 
> I would like to know if there is any way to debug what vhost is causing 
> the high load on my harddrive, that I'm experiencing.
> To be more specific:
> When I run "top", 80% of my CPU time is in i/o wait. How could I find 
> out, what vhost is causing this?
> 
> Regards,
> Samy
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 
> 
> 
> 
> 
> 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Investigating high harddrive load

Posted by Matus UHLAR - fantomas <uh...@fantomas.sk>.
Hello,

please, if you are writing a new post, send it as new mail and not
as reply/followup on old mail. It makes people with threading clients
angry and they can also in such case miss your e-mail.

This time I send copy to the list, because you seem to have ignored my last
3 mails asking you the same.

Thank you.

On 29.09.07 17:08, Samuel Vogel wrote:
> Date: Sat, 29 Sep 2007 17:08:54 +0200
> From: Samuel Vogel <sa...@gmx.de>
> To: users@httpd.apache.org
> References: <!&...@tlec.se>
> In-Reply-To: <!&...@tlec.se>
> Subject: [users@httpd] Investigating high harddrive load
> 
> Hey people,
> 
> I would like to know if there is any way to debug what vhost is causing 
> the high load on my harddrive, that I'm experiencing.
> To be more specific:
> When I run "top", 80% of my CPU time is in i/o wait. How could I find 
> out, what vhost is causing this?

-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Fucking windows! Bring Bill Gates! (Southpark the movie)

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] Investigating high harddrive load

Posted by Axel-Stéphane SMORGRAV <Ax...@europe.adp.com>.
Somebody is probably reformatting your hard drive.

No, seriously you need to provide a LOT more information about your configuration for anyone to get the foggiest idea about what causes this.

What HW/OS? Are these disk reads or writes? What kind of modules do you use? PHP or no PHP? etc.

I once observed really poor performance on a server during a load test due to disk IO and associated wait-times. The IO operations were disk writes which was bizarre because nothing was supposed to be written to disk. It turned out being mod_ssl writing to the DBM-based SSL session cache. After changing it to shm the problem went away...

-ascs
 
-----Message d'origine-----
De : Samuel Vogel [mailto:samy-delux@gmx.de] 
Envoyé : samedi 29 septembre 2007 17:09
À : users@httpd.apache.org
Objet : [users@httpd] Investigating high harddrive load

Hey people,

I would like to know if there is any way to debug what vhost is causing the high load on my harddrive, that I'm experiencing.
To be more specific:
When I run "top", 80% of my CPU time is in i/o wait. How could I find out, what vhost is causing this?

Regards,
Samy

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org