You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Tiago <ti...@terra.com.br> on 2003/10/20 00:08:33 UTC

[users@httpd] Please - help

Hey ppl, how can i limit a cpu/mem usage of a specificaly website on my apache server?

On my machine i have +- 40 websites, but i need to make this control to one website.

Its a REDHAT 9.

Re: [users@httpd] mod_disk_cache cleanup?

Posted by Larry Coffin <lc...@PointInfinity.com>.
At 12:17 PM -0400 10/20/03, Jonas Eckerman wrote:
>
>>     Is anyone out there using mod_disk_cache? What do you do for
>> cleaning up/managing the cache?
>
>You write a script that is called by "cron" to clean it up.

	Ok, that's what I suspected needed to be done.

>Check if
>the system you're using has any utilities for cleaning up temp files
>(tmpwatch for example). If it has, use them.

	Cool. I haven't stumbled across tmpwatch before. That looks really
handy!

	Do you know of any existing utilities that can remove files based
on disk usage rather than last accessed time? Or rather a combination of
those two things -- i.e. I want to say "delete the oldest files in this
directory until the directory usage (or perhaps quota usage?) is below this
number"? I can whip one up something in perl without too much trouble, but
if there is already something out there that will work, it will save some
time.

	---Larry



+------------------------------------------------------------------------+
| Larry Coffin, G.P.H.                                     Watertown, MA |
| http://www.PointInfinity.com/lcoffin/        lcoffin@PointInfinity.com |
| http://www.whosmytwin.com                    Find your long lost twin! |
+------------------------------------------------------------------------+

Drive defensively.  Buy a tank.


-



---------------------------------------------------------------------
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] mod_disk_cache cleanup?

Posted by Jonas Eckerman <jo...@frukt.org>.
On Mon, 20 Oct 2003 11:38:32 -0400, Larry Coffin wrote:

>     Is anyone out there using mod_disk_cache? What do you do for
> cleaning up/managing the cache?

You write a script that is called by "cron" to clean it up. Check if 
the system you're using has any utilities for cleaning up temp files 
(tmpwatch for example). If it has, use them.

One place to check can be the cron config, it's possible you can just 
copy the cron config for some other cleanup task and modify it for 
cleaning the cache dirs.

Regards
/Jonas

-- 
Jonas Eckerman, jonas_lists@frukt.org
http://www.fsdb.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


[users@httpd] mod_disk_cache cleanup?

Posted by Larry Coffin <lc...@PointInfinity.com>.
	Is anyone out there using mod_disk_cache? What do you do for
cleaning up/managing the cache? This is for Apache 2.0.47 (the most recent
official release).

	The documentation isn't too clear about that issue -- from the
DiskSize directive it sounds like *something* should be cleaning up the
disk cache and bringing it back down to the limit set. But I've been using
it for a few days now and haven't seen anything like that unless I don't
have it configured correctly.

	The rest of the documentation makes it sound like there is no
built-in garbage collection at all but it doesn't mention what other people
(i.e. the developers!) do instead.

	I've searched all the places I could think of to find any mention
of this and I've looked through the code a bit but haven't seen any
specific mention of what people are doing. Before I spend the time to dig
further into the code, I thought I'd post here and see what other people
are doing.

	I know the documentation states that all the Gc related directives
are not implemented, but is there some default Gc underneath that should be
going on? And if so, how do I turn it on or figure out how it works?

	If there really isn't *any* Gc going on, what are you doing to
manage your cache? Can you have another process go through and delete old
files outside of Apache without messing the internal cache information up
(i.e. if you delete files from the cache, will Apache still think they are
there and get "confused")?

	Thanks!

	---Larry



+------------------------------------------------------------------------+
| Larry Coffin, G.P.H.                                     Watertown, MA |
| http://www.PointInfinity.com/lcoffin/        lcoffin@PointInfinity.com |
| http://www.whosmytwin.com                    Find your long lost twin! |
+------------------------------------------------------------------------+

Drive defensively.  Buy a tank.


-



---------------------------------------------------------------------
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] Please - help

Posted by Leif W <wa...@usa.net>.
No, I can't.  :-)  I currently do not have any of the directives in use, so
I can't just copy an example, and would merely be going to the URLs below
and reading the docs and trying it myself and then posting to you.  So just
read the examples and try some values.  Best way to learn.  Or perhaps
someone else on the list with experience using RLimitCPU and RLimitMEM on
Redhat 9 or other Linux could chime in?

Leif

----- Original Message ----- 
From: "Tiago" <ti...@terra.com.br>
To: <us...@httpd.apache.org>
Sent: Monday, October 20, 2003 11:37 AM
Subject: Re: [users@httpd] Please - help


> Sorry, but can u give me an example?
> I will appreciate very much.
> Thanks again!
>
>
> ----- Original Message -----
> From: "Leif W" <wa...@usa.net>
> To: <us...@httpd.apache.org>
> Sent: Monday, October 20, 2003 1:23 PM
> Subject: Re: [users@httpd] Please - help
>
>
> > Plain text, please.
> >
> > Which version of Apache are you using? I'm only assuming Apache 2.0.x.
> > Perlhaps check RLimitCPU and RLimitMem directiuves, which can be set in
> each
> > VirtualHost, among other places.
> >
> > http://httpd.apache.org/docs-2.0/mod/core.html#rlimitcpu
> > http://httpd.apache.org/docs-2.0/mod/core.html#rlimitmem
> >
> > Leif
> >
> > ----- Original Message -----
> > From: Tiago
> > To: users@httpd.apache.org
> > Sent: Sunday, October 19, 2003 6:08 PM
> > Subject: [users@httpd] Please - help
> >
> >
> > Hey ppl, how can i limit a cpu/mem usage of a specificaly website on my
> > apache server?
> >
> > On my machine i have +- 40 websites, but i need to make this control to
> one
> > website.
> >
> > Its a REDHAT 9.
> >
> >
> >
> > ---------------------------------------------------------------------
> > 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] Please - help

Posted by Tiago <ti...@terra.com.br>.
Sorry, but can u give me an example?
I will appreciate very much.
Thanks again!


----- Original Message -----
From: "Leif W" <wa...@usa.net>
To: <us...@httpd.apache.org>
Sent: Monday, October 20, 2003 1:23 PM
Subject: Re: [users@httpd] Please - help


> Plain text, please.
>
> Which version of Apache are you using? I'm only assuming Apache 2.0.x.
> Perlhaps check RLimitCPU and RLimitMem directiuves, which can be set in
each
> VirtualHost, among other places.
>
> http://httpd.apache.org/docs-2.0/mod/core.html#rlimitcpu
> http://httpd.apache.org/docs-2.0/mod/core.html#rlimitmem
>
> Leif
>
> ----- Original Message -----
> From: Tiago
> To: users@httpd.apache.org
> Sent: Sunday, October 19, 2003 6:08 PM
> Subject: [users@httpd] Please - help
>
>
> Hey ppl, how can i limit a cpu/mem usage of a specificaly website on my
> apache server?
>
> On my machine i have +- 40 websites, but i need to make this control to
one
> website.
>
> Its a REDHAT 9.
>
>
>
> ---------------------------------------------------------------------
> 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] Please - help

Posted by Leif W <wa...@usa.net>.
Plain text, please.

Which version of Apache are you using? I'm only assuming Apache 2.0.x.
Perlhaps check RLimitCPU and RLimitMem directiuves, which can be set in each
VirtualHost, among other places.

http://httpd.apache.org/docs-2.0/mod/core.html#rlimitcpu
http://httpd.apache.org/docs-2.0/mod/core.html#rlimitmem

Leif

----- Original Message ----- 
From: Tiago
To: users@httpd.apache.org
Sent: Sunday, October 19, 2003 6:08 PM
Subject: [users@httpd] Please - help


Hey ppl, how can i limit a cpu/mem usage of a specificaly website on my
apache server?

On my machine i have +- 40 websites, but i need to make this control to one
website.

Its a REDHAT 9.



---------------------------------------------------------------------
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