I have a server running Apache 2 with php 5 as an apache module. There are 2 PHP scripts that get about 500k hits a day. These scripts have to parse data out of a remote webpage and display it on an image. They used to make loads go up to 40-50, but I have added a cache which only updates every 4 hours. This helped a lot, but loads are still around 10 when the script updates, and it slows down the server. Memory usage is fine. The server is an AMD Athlon 64 2800+ with 1 gb of ram and an 80GB SATA hard drive.
Here's `top` when the cache had just been cleared.
Quote:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 28004 named 16 0 121m 11m 3796 S 12.3 1.3 0:00.96 apache2 28003 named 15 0 121m 11m 3740 S 12.0 1.3 0:01.00 apache2 5316 tarball 15 0 43032 29m 2320 S 11.3 3.1 326:08.68 ircd 27998 named 16 0 121m 11m 3808 S 11.3 1.3 0:00.51 apache2 27989 named 15 0 121m 11m 3800 S 10.3 1.3 0:01.14 apache2 28007 named 16 0 121m 11m 3776 R 8.0 1.2 0:00.24 apache2 28008 named 15 0 121m 11m 3776 S 7.0 1.2 0:00.22 apache2 27979 named 16 0 121m 11m 3752 R 6.0 1.3 0:02.06 apache2 27983 named 16 0 121m 11m 3748 R 6.0 1.3 0:01.94 apache2 27985 named 15 0 121m 11m 3748 S 6.0 1.3 0:01.05 apache2 27992 named 16 0 121m 11m 3792 S 5.0 1.3 0:00.33 apache2 27980 named 15 0 121m 11m 3796 R 2.3 1.3 0:03.24 apache2 28009 named 15 0 121m 11m 3796 S 1.7 1.3 0:00.82 apache2 27715 root 15 0 5192 1164 844 R 0.3 0.1 0:00.94 top 27960 named 15 0 121m 11m 3808 S 0.3 1.3 0:01.42 apache2 27984 named 15 0 121m 11m 3804 S 0.3 1.3 0:01.94 apache2 27987 named 15 0 121m 11m 3796 S 0.3 1.3 0:01.04 apache2 28006 named 15 0 121m 10m 3292 S 0.3 1.2 0:00.50 apache2
Idle CPU usage usually goes anywhere from 30%-0%. Is there any way to limit apache from using more than 75% cpu, or any other ways to drop cpu usage?
i have one centos dedicated server and cpanel i will going to apache status is very request link and 2 site are very high in the list and my apache worked very hard and going to down any hours of your seems i must how control it?
what tools are available for Fedora 4 that allow an admin to set limits on how much memory and cpu usage clients can use. I have plesk 8 but I can't seem to find anything related to it in there, and I set up webmin as well,
How can I limit my dedicated server's resources ? For example, one of reseller provider's limits :
Quote:
Resellers may not use more than 2% CPU daily, 3% memory daily, run more than 10 simultaneous processes per user, allow any process to run for longer than 30 seconds CPU time, run any process that consumes more than 20% of available CPU at any time, or run any process that consumes more than 16 MB of memory. Databases are limited to 16 max user connections with a max query time of 8 seconds. Cron jobs must not execute more than once every 15 minutes and will be niced to 15 or greater.
I'm starting a webhosting business in the next few months (working on the panel), and was wondering what is the best method to limit the amount of disk usage the user can use? I know about Disk Quota, but that would be a pain to use. Is there anything built into IIS7?
Also, is it possible to use a SQL 05 DB for FTP user accounts with IIS7? If not, is there any other way to have FTP accounts *without* having to create a windows user account?
I am going to run a VPS as a VPN proxy server and therefore I was asking myself if it is possible to freeze or shut down the VPS before it exceeds it bandwidth limit of 100GB a month?
The server is temporarily unable to service your request due to the site owner reaching his/her bandwidth limit. Please try again later. Apache/2.2.11 (Unix) mod_ssl/2.2.11 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 Server at confidentchemicals.com Port 80
Bandwidth limit gets reset every first of month but what to do when users reached to this limit between 1 to 10 days?
we don't want to upgrade users packages or bandwidth limit rather than allocated.
why can't we reduce bandwidth limit? __________________
I have a reseller package and when creating a new site i grossly underestimated the traffic and am now approaching my bandwidth limit already.
Im just curious what happens when i reach this limit so i know what to expect. Will my site just go down until next month comes along when my bandwidth refreshes again?
How do you limit the amount of processes a user can create? I'm running suEXEc mode and I want to limit the processes to 5 to prevent abuse and resource drainage.
Is it possible (or if anyone has) to have ability or some script that will integrate into apache or something and will tell limit CPU load per directory (hence user)?
Eg: I don't want one high traffic user using like 2% load.
In your professional opinion, does a simple shared account with 20+ gigs of bandwidth have enough to handle a website that, for a week out of a month, might hit about 5 or so thousand visits (to a single web page with mysql connection) per hour?
The traffic wouldn't last at that rate for more than a few days. but I want to make sure even a basic good web host with a shared account can handle this. Or is a must that I hit a dedicated server?
Linux, bsaic dual intel set-up like any other seems to be what I will have. Not sure about ram, but I am on a reseller account and the only one that will have real traffic.
When a reseller create a service plan themselves...is there any way to limit the CPU and memory setting for the application pool to recycle on their own created plan?
Do you get a warning mail before you are about to cross your bundled data transfer limit?
I read in some post that it is user's responsibility to monitor bandwidth usage... But i think client has the right to know before he is about to consume his bandwidth limit...
probably alerts like.. you have consumed 80%/90%/95%/98%/99% of ur bandwidth limit.. Isn't it fair to expect this?
I have a small VPS that is running only openVPN. (No http/pop/ftp/imap/smtp...) Only one port is open for the openVPN software.
I've also disabled (not running) any other networking software, so there is no apache or anything "normal" like that.
It's a plain-jane CentOS 5.3 install, used only for openVPN.
The problem is that I have no idea how much bandwidth is being used.
Since the openVPN does not track bandwidth usage, I am now looking for some other way to do it...
I am thinking that perhaps munin or cacti or something like that would be a solution?
Basically, the only statistic I need to actually monitor is bandwidth, as I don't care about disk space, load, memory, or anything else..
(The server is using VirtualVM, but since that software is insecure... the VPS control panel is not currently online, so all the normal "tools" that the VPS came with are not working.)
We're not the Influxis host and also not affiliated with the host.
We wanted to get affiliated with this host but they don't have an affilate program.
We're currently hosting applications used from videowhisper com , videochat-software com (not the websites, just flash server applications) and also for multiple customers.
One of our applications generated today 18Gb of traffic on Influxis for about 100 connections!
The interesting part is that another copy of it used for our main demos generated 0.25Gb for 350 connections (as it usually does).
And the most important part is that the person running and testing that application from soberfolk org contacted us that video streaming was not working at all for it - and we had to restart VHost to get things back to normal. It was returning an error about bad stream name in flash debugger.
So video streaming was not working and it used hundreds of times more than it usually does.
Very weird.. we contacted them. We'll keep you updated about this.
We mention that the software we use has ghost detection routines that close connections occurring when users abruptly disconnect from FMS servers.
Did any of you get any huge bandwidth usage on FMS hosts due to ghosts or other errors?