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?
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?
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?
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?
Im running the latest version of apache on my box and have 15 ip's on my box. Each ip goes to the site hosted on apache is there a way to limit it to one. Say for example i have these ips on my box 1.1.1.1 - 1.1.1.15
How do i select one of those ips to go to the site and have the rest not go anywhere.
I'm facing a very critical issue in my server and i think its kind of DDOS attack!
the server is running normal and then i noticed that the server load is going up till reaches about 400! and all the services went down!
the cause of this issue was the Apache...
I noticed that the normal SLOT ( Total megabytes transferred this slot ) is in the range between 0.1 and 0.5(max) but the upnormal when the server load went up each slot was in range between (150 : 200)! my conclusion is that someone sending a large packets to the server... is there a limitation for this slot for not going up in that way? Server Version: Apache/2.2.9 (Unix) mod_ssl/2.2.9 OpenSSL/0.9.8b mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 PHP/5.2.6
I am in a bind with Apache's multi process limit. Let me explain what I am doing. There's this website which has career details of all the football players since the beginning of professional football. They have a simple web form which allows you to look at a player's profile by entering his name or his 7 digit numeric id number (on that website).
One of my client wants a list of all the players with a certain "flag" in their profile. So I created an automatic form submission and HTML parsing script to get details of all the players with that "flag" in their profile. Let me not go into too much details and tell you that after applying a few pattern rules to the id number, the number of possible id numbers comes to about 1 million (instead of 10^7; each field can have {0,1,2,3,4,5,6,7,8,9}=10 digits, so net combinations = 10*10*10*10*10*10*10).
Therefore, to completely automate this process I wrote a script which would generate an id number, submit the form with that id number, and parse the resulting HTML profile for the "flag". If the script finds a hit on the flag, it stores all the fields of that player in a database. This script is working absolutely fine but the speed I was getting was about one check per second which means that I would have to leave the script running for about 11 days (to process all of about 1 million checks).
So i came up with this idea to divide the check into ten parts and i created separate scripts for each part. Now basically the first script checks for the first 100 thousand combinations, the second checks for another 100 thousand combinations, and so on.
The problem is that I am able to get only two of these scripts running at the same time. So it would still take me at least 5 days to get all the results. The rest of the scripts just sit there in the server's backlog. This is definitely due to Apache's limitation to handle multiple processes. The server I am using to run this script as well the target webserver both run on Apache2. I am sure it's not a problem with the receiving server. It has to be my Apache web server which is running the scripts. I have tried using mpm_winnt (on a windows server) as well as the prefork and worker modules (on a linux server) without any luck. Has any of you ever faced the same situation?
For those concerned about the legitimacy of this work, rest assured, this is absolutely legit. There's nothing in the website's use policy which restricts somebody from doing this. Moreover, my client hired me to do this only because the website owners were not able to hand over the data he required. They gave the stupid reason that they are helpless in providing the data because they don't have a system in place which would allow them to do a search restriction!
I've been having trouble the past few days with someone who's been "attacking" my site so to speak by continuously downloading very large files with as many connections as (he) can open. I operate a large downloads site for computer games, this person has selected the largest files (like 400-500MB). Not sure of the real intent other than to clog up my bandwidth capacity. Also he appears to be using proxies since as soon as I ban one, another shows up seeminly from China.
Anyway, I have mod_bw and I've limited the number of connections in the downloads area to 2. While that works ok, his tool uses threads like a download manager would and he's using up 30-40 child threads for his 2 file downloads.
So 2 questions,
Is there anyway to not only limit file downloads to 2, but limit the number of connections per request? Many of my visitors do use download managers and I'd like for them to continue using them but use a reasonable number of threads like 6 or 8, but not 30.
Also, is there a way to restrict access to someone using a proxy?
How to increase the Open Files limits descriptor in Apache. In the earlier version of Cpanel, we had an option of Raise FD Size Limit to 16384, but the option no longer appear while rebuilding Apache. What is the way to do it and make the change permanent?
My configuration is Apache 2.2.3 using Tomcat - AJP with mod_proxy_ajp, mod_ssl.We have configured Kerberos but some users are getting an error - Size of a request header field exceeds server limit.
Users with headers above 8K are getting this error, users less than 8K can get in fine. How can I increase this header limit in Apache/Tomcat? I have tried multiple suggestions found on google and other sites.
Here is what I tried:
Adding the following to the http.conf LimitRequestFieldSize 65536 ProxyIOBufferSize 65536
Adding the following to server.xml packetSize="65536"
editing a workers.propeties file, but we dont have any files on the server with that name.
I currently have 2 VPSs that I'm monitoring and I noticed that on one of them the memory usage is much higher than the other which doesn't make sense to me. I tracked the high memory usage to the Apache processes.
Here's the overview of the VPSs:
LiquidWeb VPS- 512MB RAM, 10 Sites with minimal usage. Average httpd process (Owner Priority Cpu% Mem% Command): nobody 0 0.0 1.2 /usr/local/apache/bin/httpd -k start -DSSL
Virpus VPS- 384MB RAM, 61 sites with moderate usage. Average httpd process (Owner Priority Cpu% Mem% Command): nobody 0 0.0 0.3 /usr/local/apache/bin/httpd -k start -DSSL
Both Apache configurations are identical, the only difference besides the hardware is that LiquidWeb runs CentOS4.7 and Virpus runs CentOS5.2, any ideas? It's not to big of a deal since I'm not near my limit for either of them but I was just curious.
I'm running a single Magento website with only around 150 products, and very low traffic, on a VPS with 2 Cores and 4GB of ram. However I am getting constant warning emails about high Apache Memory usage and High CPU usage.
The server and site were working fine, however since the server failed (Power cut on upgrade at the hosts end) and we rebuilt the website I'm getting these warnings, my host said it is just the website and the server needed upgrading... to which I did (server was a 1 core 2GB ram server). However since I've upgraded I'm still getting these warning emails.
I'm really new to VPS's and plesk so I'm wondering what I can do to try and track down what is causing these high usage as I'm 100% certain the site was fine before. The server has default build both before and after the fail.
We are currently running plesk 11.5 and over the last few months, the apache memory usage has been very high. On investigation we have gone through the logs and we can't find a cause.
I can issue a service httpd restart and the memory drops for about 30 minutes and then we see the apache memory grow to almost 1.5 - 2GB. Why this keeps happening?