Web Hosting Talk







View Full Version : How to limit a site's CPU on a web hosting server


asics
02-28-2002, 04:57 PM
I have a server hosting about 250 sites runing IIS 5.

some sites use little resource but some sites such as chatroom and forums need a lot resource.

question is how can I limit the heave cost site cpu and ram connections and bandwidth so that the light sites should work ok and whole server can run smothly.

I try lots of ways including set the site to isolated state and set the cpu limitd and limited the connections to 100,but seem not a good way.

sometimes will appear too many users to a 100 connections limit site even though I am quite sure that no people is visiting the site,but the page always show too many users untill i stop and restart the site.

and to the site that I limit its cpu,i can still find that the cpu it cost still higer than the max number i set.

I am a master of lots of web hosting servers,I need help of you,thx very much!

bcbcbc
03-31-2004, 12:07 AM
The old way still apply, upgrade your server with more RAM and a better CPU

maxknight
03-31-2004, 04:55 AM
Is "Enforce Limits" checked in the Performance Tab of the site?

bcbcbc
04-01-2004, 06:43 AM
Enforce Limits doesn't really work, it's only a time limit, not really limiting CPUs.

squirrelhost
04-01-2004, 05:53 PM
freebsd allows bandwidth throttling (shaping or limiting) for
apache (or whatever port), and can be implemented using
ipfw or pf if supported. I believe there are linux rpm modules
for apache which allow similar. search on google for some
of the above terms maybe?

Groovy
04-02-2004, 03:41 AM
Originally posted by squirrelhost
freebsd allows bandwidth throttling (shaping or limiting) for
apache (or whatever port), and can be implemented using
ipfw or pf if supported. I believe there are linux rpm modules
for apache which allow similar. search on google for some
of the above terms maybe?

He uses ISS 5 and not linux or apache