Since the past few months I am facing cpu load on a server. The server is a Intel Xeon server with 4 gigs of RAM. Today the load average went over 150 which is very high. I could not access the server to check what is causing such a high load. I had to reboot the server using Remote Power switch. Is there a way I can find out the cause of the heavy load after the server is reboot? Is there any log where all the information is stored?
a good method to have processes controlled in the resources they use, in a shared cpanel environment?
For example, it appears that the cpanel backup (compressed) made the load skyrocket to beyond 60% cpu and 95% memory usage today, and this server is beefy to begin with.
I want some system to kill processes immediately if they exceed X amount of resources or kill processes that spiral out of control (X amount of processes from same user).
Anyone know of some good server load testers ( commercial )?
Im not looking for application based load testing, I need real web server load testing... need to see how much traffic this one site can take before it cries.
I'm having the oddest issue. For some reason, some of the websites on my server load fine, and some take a really long time to load (2 minutes).
Now, the server load is fine, and the size of the sites aren't the issue either. I've restarted Apache and a couple more services, and still the same sites seem to load very slow.
What could be causing this since it's only effecting certain websites?
Do I need 3 LB to do this or I can do it with only one? The screenshot of Barracuda LB seem to show many "virtual LB", so I guest it's a yes?
2) So... it's service only?
On the Barracuda and some page, they are talking about "service" and not "server" LB. Can I LB a whole serveur ? Like all service from an IP xxx.xxx.xxx.234 to a server ? Or I can only do "HTTP -> SRV1" "DNS -> SRV1"? If no, what happen to service that the LB didn't know (like cPanel)?
3) An Internal Network? what About cPanel?
According to my search, LB are working like this:
EXTERNAL IP of SERVICE (xxx.xxx.xxx.200) -> INTERNAL IP SERVER 1(10.0.0.25), INTERNAL IP SERVER 2 (10.0.0.26)
So, I need to configure the server with an Internal IP cause else, it will conflit on the "local network". The probleme is, cPanel will be using the "Internal IP" to make all of his configuration... so if a user add a new website, he will configure it with 10.0.0.25, this won't since the external IP will be xxx.xxx.xxx.200 and Apache won't anwser to this virtual host. What can I do?
Can I do this ? (same internal IP as the external?) EXTERNAL IP (70.234.125.123) -> SERVER 1 INTERNAL IP (70.234.125.123), SERVER 2 INTERNAL IP (10.0.0.26)
If yes, I will configure the second serveur without cPanel and only sync the configuration and files. So in case of "crash" of the server 1, cPanel won't be working, but website won't be down...
I've been having trouble with my VPS for a while now. In the QoS alerts page in Virtuozzo it seems to be a problem with numtcpsock and tcprcvbuf, mainly numtcpsock.
Copy these into the browser: i18.photobucket.com/albums/b106/gnatfish/qosnumtcpsock2.jpg
Now-a-days server is having too much load due to http and in access logs we see following message : ======================================== 127.0.0.1 - - [11/Oct/2008:01:40:02 -0700] "OPTIONS * HTTP/1.0" 200 - 127.0.0.1 - - [11/Oct/2008:01:40:03 -0700] "OPTIONS * HTTP/1.0" 200 - 127.0.0.1 - - [11/Oct/2008:01:40:02 -0700] "OPTIONS * HTTP/1.0" 200 -=============================================
And due to this there is load on server. We are not able to understand why this is happening and how to stop this. So please suggest with some solution.
I am facing a strange issue with two RPG games sites that i am hosting on a 2GB ram server with softlayer, each of these sites was running on a 512MB VPS and they were doing fine but i decided to move them to better server so things run smoother when each has 50+ members online.
So the issue is when i have around 40 online members on each site, they start coughing up mysql errors, sometimes the sites just hang and stop loading, server load goes up to 3 or 4 but memory usage remains around 40%, I also notice that mysql uses the most of the CPU usage, around 75%
What i probably need is for someone to identify the cause of this, can it be an attack of some sort? or is it probably some code issues in the sites? do you recommend anyone that can have a look at this?
I have my WHM/cPanel installation configured with daily and weekly backups. I checked at what time of the day the server load was at the minimum and configured the cPanel backup cron to run then.
The problem now is: Backing up a few hundred accounts results in a high server load. My server configuration:
Dual Processor Quad Core Xeon 5335 2.0GHz with 4GB RAM and 2 x 250GB SATA HDD hosted at SoftLayer.
The accounts are located on the first HDD and the backup archives are placed on the second HDD.
What can I do about this? I'd like to take daily backups of all accounts but not if my server load increases up to 10... That kind of renders the cPanel backup feature useless if it doesn't even work on a powerful server like this one...
Would it help if I use an application such as Auto Nice Daemon to give the backup process a lower priority? But then again that won't work on the MySQL dumps? And I think it's not a CPU problem but an I/O wait problem? Other processes have to wait for disk access because the disk-intensive backup process is running?
I built an online application using PHP / MySQL and it's pretty optimized (it's a very simple app). I've inadvertently picked up a huge client that could represent a few 1,000 "posts" per minute.
The process goes like this:
Consumer posts mobile data -> third party receives data -> third party sends data to my server -> my php script throws the data into a database.
I've got about a month to prepare things for these nightly "posts" before it's a real-life affair.
My questions are:
1) How can I "stress" or "load" test my machine and script to see what I'm up against.
2) What is my cheapest option for "redundancy" (Would something like MediaTemple's MySQL Grid products be a fix?)
When I say a few thousand posts per minute - each one is around 350 bytes.
I'm sure you may be wondering if I've bitten off more than I can chew - yea kind of but I made it perfectly clear to the client about my uncertainty and they are willing to give me benefit-of-a-doubt since I'm a very hard worker, very easy to deal with and loyal - not to mention my product is unlike any other that we have seen.
I have some serious server load issues on one of my web servers...
Hardware: Intel Pentium D 3.40GHz 1024 MB DDR RAM
Software: RH Linux with 2.6.9-42.0.3.ELsmp kernel cPanel with most recent Apache and PHP 5.2.x
Process list (top output, on a regular moment):
[url]
When everything is running normal (read: server load below 2) there's between 100 and 300 MB of free memory. Though sometimes (this happens about 2 times per day, at random times of the day) the server load dramatically increases.
I wrote a script (the chkApache.sh process in the top list) that constantly checks the server load and if it raises about 4, it will check if the sum of all httpd processes are consuming too much CPU or Memory. In this case, it will force a httpd restart... I need this to prevent Apache from crashing my server almost daily. If I let Apache do its thing without this script, it will happen that tons of httpd processes (50 and up) take in all the RAM and server load increases to 100 or more and the eventually I need to reboot the server using the SoftLayer control panel.
That chkApache script I wrote also sends me a detailed report of the state of the server when it needs to restart Apache, here's a report of an event that occurred today (includes server load info, memory info, top list, httpd processes info, netstat, etc):
[url]
In this case you would think that someone is attacking the youthforums.co.uk domain but I doubt that's the case... It doesn't always happen with that site, in fact I can't seem to find a pattern in the Apache status page so I don't think a single account is causing this...
Today I also used the Apache JMeter to "stress test" my server. I was shocked when I saw how easy it is to use that tool in order to make my server crash... I used 10 threads loading one PHP page (that makes some MySQL queries) and made a loop that kept requesting that information, with 10 connections at a time... The server load rapidly increased to 30 and above... I think it's unacceptable that something like this can happen so easilly...
I tried several things with my Apache configuration settings... Here's what I have at the moment:
LoadModule rewrite_module libexec/mod_rewrite.so LoadModule expires_module libexec/mod_expires.so LoadModule bwlimited_module libexec/mod_bwlimited.so LoadModule bytes_log_module libexec/mod_log_bytes.so LoadModule auth_passthrough_module libexec/mod_auth_passthrough.so LoadModule php5_module libexec/libphp5.so LoadModule security_module libexec/mod_security.so LoadModule evasive_module libexec/mod_evasive.so LoadModule limitipconn_module libexec/mod_limitipconn.so Does anyone have an idea what's wrong here? Anything I can do to get more detailed information on what's causing this? I've been on this problem for weeks now but I can't seem to find any proper solution.
In case it matters I'm also running: SIM, RPM, BFD, APF and SPRI
how the load on your web hosting machines looks like. I've seen companies that keep the load at values of 10-15 units and the server is still responsive. Though there might be different reasons for the high load and it's a sure indication for an upcoming problem it doesn't seem normal to have this high load on a hosting server. (well actually it would if the machine was running on 16 cpus but it's a normal dual xeon woodcrest for example).