Re: [PHP] Limiting Cpu usage

2005-04-11 Thread Richard Lynch
On Mon, April 11, 2005 3:25 pm, Greg Donald said: > On Apr 11, 2005 5:06 PM, Richard Lynch <[EMAIL PROTECTED]> wrote: >> I quit my last job in part because my "dev" server was a "live" box. >> Sheesh! > > I have so been there before. Sucks. > > Vmware, user-mode-linux, and Freebsd jails someti

Re: [PHP] Limiting Cpu usage

2005-04-11 Thread Greg Donald
On Apr 11, 2005 5:06 PM, Richard Lynch <[EMAIL PROTECTED]> wrote: > I quit my last job in part because my "dev" server was a "live" box. Sheesh! I have so been there before. Sucks. Vmware, user-mode-linux, and Freebsd jails sometimes help in these situations. -- Greg Donald Zend Certified

Re: [PHP] Limiting Cpu usage

2005-04-11 Thread Richard Lynch
On Mon, April 11, 2005 3:05 am, zini10 said: > ok, that will do some of the trick , but still , a user can just write a > script which: > > for($i=0;$i<;$i++) > { > $x=$x+1; > } > > or something and refresh it the whole time and really slow down everybody > else Yes. Allowing untrus

Re: [PHP] Limiting Cpu usage

2005-04-11 Thread zini10
another thing i just noticed is that it is designed for nanoweb server , not for apache but thanks anyway for your help. "Greg Donald" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Apr 10, 2005 9:27 AM, zini10 <[EMAIL PROTECTED]> wrote: >> hello, how can i limit cpu usag

Re: [PHP] Limiting Cpu usage

2005-04-11 Thread zini10
ok, that will do some of the trick , but still , a user can just write a script which: for($i=0;$i<;$i++) { $x=$x+1; } or something and refresh it the whole time and really slow down everybody else "Greg Donald" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On A

Re: [PHP] Limiting Cpu usage

2005-04-10 Thread Greg Donald
On Apr 10, 2005 9:27 AM, zini10 <[EMAIL PROTECTED]> wrote: > hello, how can i limit cpu usage for shared hosting enviroment? > i mean , im hosting serveal sites and wish for all php scripts to have (for > example) no more than 5% of cpu usage so no one can bomb my server. > im currently using php a

Re: [PHP] Limiting Cpu usage

2005-04-10 Thread Philip Hallstrom
You might want to rethink your strategy. Consider the instance in which only *one* person is hitting your server. That one person *will* get 100% of your CPU since nothing else is going on at the time, so the system might as well give them all the CPU to get their task done sooner. You don't

[PHP] Limiting Cpu usage

2005-04-10 Thread zini10
hello, how can i limit cpu usage for shared hosting enviroment? i mean , im hosting serveal sites and wish for all php scripts to have (for example) no more than 5% of cpu usage so no one can bomb my server. im currently using php as a module , i know i can do it if ill use php as a cgi and limit

[PHP] Limiting CPU usage/time of spawned processes

2002-01-09 Thread Mike Eheler
Hi There, Okay, I have a server that allows a couple hundred virtual hosts that we have run websites as we are a hosting company. Recently one of our customers decided to spawn lynx through PHP. The process was running at 80% cpu for over 400 minutes, and it appears that Apache's RLimitCPU di