Displaying Server Load Average Through HTTP
Nov 26, 2008to display the server load average through HTTP. How may I do that?
Please note that I have all insecure functions disabled, such as exec, system, etc... But I have root access.
to display the server load average through HTTP. How may I do that?
Please note that I have all insecure functions disabled, such as exec, system, etc... But I have root access.
If everyone can take a look at this (while all domains were turned off) and give me any advice to what is eating up resources so badly? The load averages are at 1.3+ with only yum trying to run on the box and it has already been running to nearly two hours were this would typically take 10-15 minutes max prior.
Host: FutureHost
Type: VPS
DC: Dallas
Plan: VPS Elite with 1.5GB of memory
top - 11:40:21 up 2:26, 2 users, load average: 1.35, 1.39, 1.37
Tasks: 41 total, 1 running, 40 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.3%us, 0.0%sy, 0.0%ni, 99.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 1572864k total, 202300k used, 1370564k free, 0k buffers
Swap: 0k total, 0k used, 0k free, 0k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1 root 15 0 1988 664 572 S 0 0.0 0:02.57 init
3572 admin 15 0 24488 9308 6072 S 0 0.6 0:00.11 php-cgi
3643 admin 15 0 24488 9324 6088 S 0 0.6 0:00.10 php-cgi
3685 apache 18 0 7940 3688 876 S 0 0.2 0:06.49 lighttpd
3686 admin 25 0 24076 7684 5096 S 0 0.5 0:00.05 php-cgi
3689 admin 25 0 24080 7684 5096 S 0 0.5 0:00.05 php-cgi
3690 admin 25 0 24080 7692 5096 S 0 0.5 0:00.05 php-cgi
3692 admin 20 0 24076 7684 5096 S 0 0.5 0:00.05 php-cgi
3693 admin 20 0 24076 7684 5096 S 0 0.5 0:00.05 php-cgi
3790 admin 20 0 24080 7688 5096 S 0 0.5 0:00.05 php-cgi
3905 admin 20 0 24072 7680 5096 S 0 0.5 0:00.05 php-cgi
4053 admin 20 0 24072 7680 5096 S 0 0.5 0:00.05 php-cgi
5252 admin 20 0 24080 7688 5096 S 0 0.5 0:00.06 php-cgi
5415 admin 15 0 24368 8820 5748 S 0 0.6 0:00.06 php-cgi
5628 admin 20 0 24076 7684 5096 S 0 0.5 0:00.06 php-cgi
5734 root 18 0 9844 2804 2268 S 0 0.2 0:00.52 sshd
5828 root 15 0 2516 1408 1116 S 0 0.1 0:00.02 bash
I have a VPS, and i wanted to know if the CPU / Load Average that shows at my Plesk control panel reports only the usage of my part of the server cpu, or if it is the real/complete cpu usage for the entire server?
So in a simple way, is another user with a vps at the same server is doing a high cpu task at is vps, will it show at my plesk cpu load average?
What Should be load average of a VPS to be called as IDEAL?
View 12 Replies View Relatedoptimize MySql i have load average: 3.49, 3.79, 3.80
my server have more than 200 web site working online i have so many Mysql process ..
my server info:
CPUs:
Quote:
Processor #1 Vendor: GenuineIntel
Processor #1 Name: Intel(R) Xeon(TM) CPU 3.00GHz
Processor #1 speed: 2993.075 MHz
Processor #1 cache size: 2048 KB
Processor #2 Vendor: GenuineIntel
Processor #2 Name: Intel(R) Xeon(TM) CPU 3.00GHz
Processor #2 speed: 2993.075 MHz
Processor #2 cache size: 2048 KB
Processor #3 Vendor: GenuineIntel
Processor #3 Name: Intel(R) Xeon(TM) CPU 3.00GHz
Processor #3 speed: 2993.075 MHz
Processor #3 cache size: 2048 KB
Processor #4 Vendor: GenuineIntel
Processor #4 Name: Intel(R) Xeon(TM) CPU 3.00GHz
Processor #4 speed: 2993.075 MHz
Processor #4 cache size: 2048 KB
Memory Information:
Quote:
Memory: 5190364k/5767168k available (1877k kernel code, 51280k reserved, 759k data, 184k init, 4325120k highmem)
System Information:
Quote:
Linux 2.6.9-42.0.8.ELsmp #1 SMP Tue Jan 23 13:01:26 EST 2007 i686 i686 i386 GNU/Linux
PHP Version: 4.4.4
MySQL Version: 4.1.21-standard
MySql Settings :
Quote:
[mysqld]
skip-locking
character-sets-dir=/usr/share/mysql/charsets/
query_cache_limit=1M
query_cache_size=16M
query_cache_type=1
max_user_connections=100
max_connections=500
interactive_timeout=60
wait_timeout=30
connect_timeout=10
thread_cache_size=96
thread_concurrency=2
key_buffer=8M
join_buffer=1M
max_allowed_packet=24M
table_cache=1024
record_buffer=1M
sort_buffer_size=1024K
read_buffer_size=1024K
max_connect_errors=10
read_rnd_buffer_size=1024K
myisam_sort_buffer_size=16M
socket=/var/lib/mysql/mysql.sock
key_buffer_size=16M
[mysql.server]
user=mysql
basedir=/var/lib
[safe_mysqld]
open_files_limit=4096
[mysqldump]
quick
max_allowed_packet=8M
max_allowed_packet=8M
[mysql]
no-auto-rehash
[isamchk]
key_buffer=16M
sort_buffer=16M
read_buffer=8
write_buffer=8M
[myisamchk]
key_buffer=16M
sort_buffer=16M
read_buffer=8M
write_buffer=8M
[mysqlhotcopy]
interactive-timeout
I am tried to integrate Apache HTTP server and JBoss app server 7 with mod_jk module plugin in Apache.I have two instances of Jboss running and Apache server sends requests to them.I have added following code in "httpd.conf" of Apache:
Code:
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule proxy_http_module modules/mod_proxy_http.so
JkWorkersFile "D:/Program Files/Apache Group/Apache2/conf/workers.properties"
JkShmFile "D:/Program Files/Apache Group/Apache2/logs/mod_jk.shm"
JkLogFile "D:/Program Files/Apache Group/Apache2/logs/mod_jk.log"
[Code] ....
But, though I have configured this way, when my worker1 goes down,Apache is not sending requests to worker2 and I get "Service Temporarily Unavailable" message.
I have to move about 50 GB each night from one server to another.
This is the command I'm using:
Code:
/bin/nice -n +19 scp -c blowfish -l 18000 -P 22222 root@XX.XX.XX.XX:/backup/dailybacks/*.tar.gz ./
There is no private lan so i have to use internet. I'm using blowfish, which will reduce cpu load, and also limiting bandwidth transfer, usign -l 18000. How ever, I still do see some high load averages..
Do you have any other suggestion to optimize CPU performance while running scp?
Why my server - load average is high?
below is output of top:
top - 13:52:53 up 29 days, 5:39, 3 users, load average: 72.05, 68.90, 67.89
Tasks: 857 total, 2 running, 833 sleeping, 20 stopped, 2 zombie
Cpu(s): 4.2%us, 2.5%sy, 0.0%ni, 26.4%id, 63.6%wa, 0.5%hi, 2.8%si, 0.0%st
Mem: 8181908k total, 8135188k used, 46720k free, 35104k buffers
Swap: 4192956k total, 26624k used, 4166332k free, 7321172k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
337 mysql 15 0 327m 56m 4252 S 4.0 0.7 74:18.53 mysqld
24732 root 15 0 13380 1760 808 R 1.0 0.0 0:10.44 top
313 root 10 -5 0 0 0 S 0.3 0.0 90:25.28 kswapd0
22040 nobody 15 0 63148 3272 1572 S 0.3 0.0 0:00.30 httpd
22136 nobody 15 0 63148 3260 1572 S 0.3 0.0 0:00.21 httpd
22291 nobody 15 0 63148 3280 1580 S 0.3 0.0 0:00.18 httpd
22327 nobody 16 0 63148 3280 1580 D 0.3 0.0 0:00.20 httpd
22406 nobody 15 0 63148 3276 1580 S 0.3 0.0 0:00.18 httpd
22522 nobody 16 0 63148 3268 1580 S 0.3 0.0 0:00.10 httpd
23553 nobody 16 0 63148 3244 1556 S 0.3 0.0 0:00.09 httpd
23556 nobody 15 0 63148 3256 1568 S 0.3 0.0 0:00.09 httpd
26260 nobody 16 0 63148 3296 1608 S 0.3 0.0 0:00.13 httpd
26618 nobody 16 0 63148 3244 1556 S 0.3 0.0 0:00.13 httpd
28849 nobody 16 0 63148 3240 1556 S 0.3 0.0 0:00.04 httpd
28903 nobody 15 0 63148 3208 1532 S 0.3 0.0 0:00.02 httpd
29533 nobody 15 0 0 0 0 Z 0.3 0.0 0:00.02 httpd <defunct>
29558 nobody 15 0 63148 3236 1548 S 0.3 0.0 0:00.01 httpd
29587 nobody 15 0 63148 3216 1536 S 0.3 0.0 0:00.01 httpd
29592 nobody 15 0 63148 3208 1532 S 0.3 0.0 0:00.02 httpd
1 root 15 0 10344 576 544 S 0.0 0.0 0:05.36 init
2 root RT -5 0 0 0 S 0.0 0.0 3:58.90 migration/0
3 root 34 19 0 0 0 S 0.0 0.0 6:15.52 ksoftirqd/0
4 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/0
5 root RT -5 0 0 0 S 0.0 0.0 0:12.33 migration/1
6 root 34 19 0 0 0 S 0.0 0.0 0:30.07 ksoftirqd/1
7 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/1
8 root RT -5 0 0 0 S 0.0 0.0 0:02.57 migration/2
9 root 34 19 0 0 0 S 0.0 0.0 0:02.84 ksoftirqd/2
10 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/2
11 root RT -5 0 0 0 S 0.0 0.0 0:11.61 migration/3
12 root 34 19 0 0 0 S 0.0 0.0 0:01.12 ksoftirqd/3
13 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/3
14 root 10 -5 0 0 0 S 0.0 0.0 0:00.22 events/0
15 root 10 -5 0 0 0 S 0.0 0.0 0:00.10 events/1
16 root 10 -5 0 0 0 S 0.0 0.0 0:00.16 events/2
17 root 10 -5 0 0 0 S 0.0 0.0 0:00.09 events/3
18 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 khelper
87 root 10 -5 0 0 0 S 0.0 0.0 0:00.03 kthread
94 root 10 -5 0 0 0 S 0.0 0.0 0:00.78
My site is running really slow at the moment. I checked Virtuozzo for resource usage, and it has been saying this for the past 1/2 hour.
CPU Usage: 0%
Load Average: Varies between 0.88 and 1.3 (anything over 1 is full capacity, and critical)
How can the load average be maxed out when my site hardly uses any CPU usage?
I have a server with Core2Duo E6600 CPU, 4 gigs of RAM and 2x250 GB HDD's. What is the "normal" load average I can expect having ~50 websites running on it with medium visits. My current load averages (and most of the time ones) are:
load average: 0.24, 0.13, 0.16
Is this "normal"?
What would you call a high load average? What is the top number?
Does this look unhealthy?....
1:48PM up 562 days, 18:14, 4 users, load averages: 11.15, 9.11, 6.48
2:14PM up 562 days, 18:39, 4 users, load averages: 0.85, 2.38, 3.94
I have a new Quad core server which has a high load average. Only hosting about 200 sites on it and they are not database sites. Only a few MySQL sites.
Here is the output from top:
top - 15:12:06 up 13 days, 16:38, 1 user, load average: 14.66, 14.21, 12.81
Tasks: 247 total, 4 running, 241 sleeping, 0 stopped, 2 zombie
Cpu(s): 7.9%us, 6.6%sy, 0.0%ni, 79.6%id, 5.9%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 3369172k total, 3244620k used, 124552k free, 6296k buffers
Swap: 2096472k total, 5180k used, 2091292k free, 2499476k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
29439 apache 18 0 148m 101m 4516 D 13 3.1 19:57.79 httpd
29444 apache 18 0 146m 98m 3668 R 12 3.0 11:15.56 httpd
1883 apache 18 0 147m 99m 3584 D 11 3.0 6:08.36 httpd
30263 apache 18 0 146m 99m 4116 D 11 3.0 14:58.88 httpd
1881 apache 18 0 147m 99m 3656 D 10 3.0 2:43.73 httpd
1884 apache 18 0 147m 99m 3632 D 10 3.0 4:15.96 httpd
4768 apache 18 0 149m 102m 4312 R 10 3.1 0:39.93 httpd
29443 apache 18 0 146m 98m 3620 D 10 3.0 24:53.11 httpd
30209 apache 18 0 147m 100m 4228 D 8 3.1 8:25.29 httpd
2230 apache 17 0 154m 108m 5048 D 8 3.3 0:02.94 httpd
1886 apache 18 0 147m 100m 3984 R 7 3.0 1:27.71 httpd
1882 apache 15 0 153m 106m 5328 S 3 3.3 0:01.68 httpd
8795 root 15 0 0 0 0 D 1 0.0 0:00.08 pdflush
273 root 10 -5 0 0 0 S 1 0.0 0:39.82 kswapd0
1984 root 10 -5 0 0 0 D 0 0.0 2:09.22 kjournald
5113 mysql 15 0 135m 33m 5460 S 0 1.0 15:55.22 mysqld
i`m using csf + lfd on the server ( CentOS / Cpanel )
i have received the notification from my root user regarding the "High 5 minute load average "
i have just checked my apache but couldn`t find any problem , everything is normal , But what`s the notification for ?
Note : The email included 3 files ( Apache status files )
Time: Sat Nov 7 00:34:48 2009 +0330
1 Min Load Avg: 8.28
5 Min Load Avg: 8.26
15 Min Load Avg: 8.26
Running/Total Processes: 11/171
how to auto reboot when load average =5. and send an email to me before reboot.
View 3 Replies View RelatedI am trying just to extract the 5 minute load average from the output of a uptime command.
The output is as follows:
15:30:23 up 5:42, 3 users, load average: 0.03, 0.06, 0.08
So the value I need is 0.06.
CPU load average is around 2-5% on my box. I'd like to know when I'll have to upgrade the CPU. Can I wait and add more accounts until it reaches 90%
View 12 Replies View RelatedI use CSF on a VPS with 512 RAM and 1024 Busrt and the other day I received the below notification. My hostsaid it was Mailman and since I don't use mailing lists the recommendationwas to disable it. So I did. I'm curious tho as to why this happened in the first place.
Time: Wed Mar 19 17:53:33 2008
1 Min Load Avg: 11.41
5 Min Load Avg: 6.37
15 Min Load Avg: 2.70
Running/Total Processes: 12/94 ...............
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE
Parallels Plesk Panel 11.5.30 MU #44 CentOS 6.5 (Final) 64bit
2 of our our servers are suddenly experiencing high Wait I/O Times, and high Load Averages during the backup process. During this period the Plesk grinds to a halt, sometimes crashing out completely (although SSh is still possible. We have been in talks with our server suppliers (assuming this would be node related) however they have done a lot of testing etc. and categorically state the node is fine , with no other users affecting it.
STEPS TO REPRODUCE : We backup the server using the scheduled backup service and Wait I/O immediately goes up.
ACTUAL RESULT: Plesk downtime / Website downtime
EXPECTED RESULT: No downtime, successful back up
Some other info :
All other processes (MYSQL, apache, Nginx etc) are all running between 1 - 10%
Partition "/usr" utilization 4.2% used (1.81 GB of 43.3 GB) (?)
Partition "/var" utilization 50.6% used (61.8 GB of 122 GB) (?)
We are struggling to identify what has changed on the server that would cause this sudden change.
I am using single Apache HTTP Server (2.2.23) as a Load Balancer with two IBM Websphere application server nodes (other machines). I have deployed the simple text based helloWorld application and it works fine with load balancer. But When I deploy the real application that contains images,css file , java script file. It loads the page without images and show me simple text and gives me the following Exception on error_logs and similar kind of exceptions
[error] [client 192.217.71.77] File does not exist: /usr/local/apache2/htdocs/application, referer: http://192.168.141.17/application/faces/test.jsp
Interestingly, when I access the application without load balancer, it also works fine.
Here are the load balancer settings
I am hosting my site on cpanel server, but there is a little problem, my images in the application are not getting displayed, whereas they are displaying alright on my local server, i've tried different methods to ressolve this issue, but, i wonder is it something to do with the server.
View 6 Replies View RelatedThis can be adapted to other operating systems, for the scope of this tutorial it will be designed for Redhat enterprise / Centos ....
View 0 Replies View RelatedI run a FreeBSD box as my file and webserver I use a DynDns domain name and run the little update program. But anyway when ever I use my lappy and when ever my lappy makes an outgoing connection a login prompt comes up asking to connect to my domain. It used to just say my public IP but I edited hosts.rc so now it says my domain on the prompt.
Is this somthing to do with samba or apache on BSD or is windows detecting that I host my own or what.
I have a cpanel server and currently only have about 20 domain hosted, not bandwidth heavy. My dedi is Core2Duo E6550 with 8gb ram. How many domains i can host if all of my clients? How many is too many? I don't like to oversell just to get extra money?
View 10 Replies View RelatedAs I have never used cPanel neither have whatsoever experience with control panels, in the process of ordering a couple of new server I am wondering what's the average recovery time after a server failure which involves data (ie. disk failure).
I am interested to understand this, because I need to choose between hardware raid or backup disk.
For example, at LiquidWeb (this is just one of the many managed providers i am evaluating) you can pay the same server 264$ with 2x250 hardware raid 1, and 219$ with 2x250 simple hard drives, where the second one is supposed to be a backup drive.
I am yet to ask, but on this servers most likely (at this prices) they do not have hot swappable disk drives where they can rebuild the array "live", so also if i choose raid hardware, in case of a disk failure, i face a downtime to bring down the server, rebuild the array, bring on the server, which I guess is something not less than 30-60 minutes downtime.
The advantage of this solution is that a disk failure keeps the system running, so you can schedule a maintenance window to replace the disk and rebuild the array, I guess.
On the other side, relying on a backup disk (and of course rsyncing data to an offsite server, i would do this anyway) you save 45$ each month, and disks after all do not fail every month.
If the main disk fails, they need to replace the disk, install again the server with what I suppose being a standard image (so let's figure a couple of hours, as they have a 30min hardware replacement sla), then you need to restore backups (which in my case are something like 20gigs). So I guess, on an average, it would take something like 4 hours downtime.
Am I correct ?
What would you reccomend as a solution with cpanel, taking into account the huge price difference ? Backup drive or Hardware raid ?
This would be for a single big website, not a hosting-company with resellers and customers environment, so I would value more the monthly saving, rather than the high availability, but of course I am interested to know what is the average time to recover a cpanel server after a drive failure.
Besides I have also another question, as I have never had a colocated server with raid hardware, so i do not know anything about this.
When a drive fails in a raid1 hardware environment, how the hosting provider gets notified ? I suppose it's not a led on the server to blink, as no one would see it.
So if you have software raid (like my computer at home) you get an email from mdadm with "warning, array degraded", so you know it quick and you can check it anytime doing a ' cat /proc/mdstat '. What about hardware raid?
My fear is that nobody notices my raid1 drive failure, the server keeps going on just a drive, then maybe the other drive fails, and it would be unpleasant: while a single drive failure would be obviously very easy to spot for me.
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.
basically it has to do with supporting filenames(or urls) in non English (Arabic) encoding in apache webserver....
I'm assuming that its apache that needs to be configured for this, i can't think of anything else except encoding support on the o/s too.....
funny thing is, i can upload and download non Arabic file names through ftp, and ftp displays them correctly, but they can't be accessed through a webbrowser.....
hmmmm, actually firefox can access them, it screws up the file name into funny signs but actually displays the file, I.E can't access them at all....
So, how can I enable Arabic language support on my webserver?
to do a 301 redirect from domainA to domainB but continue displaying DomainA's url when someone goes through.
Right now I'm doing:
redirectMatch 301 ^(.*)$ [url]
redirectMatch permanent ^(.*)$ [url]
How do I accomplish this?
It's very dangerous to display Google ads on your website! ("adsense"). If they decide they don't like your website, for any reasons, for example political reasons (they told it to me), then instead of displaying their regular ads, and even instead of displaying a blank space instead - they display a frame with big "Action canceled" at the top of your website and your customers might think you went out of business or something like that (they are not displaying any relation to Google). They did it to my and my website, www.speedywhois.com (currently .net), look for yourself, read this post and especially the images attached (MSIE and MZFF) and especially if you're politically active as I am and support human rights and especially in China or Israel or criticize Google or the United States of America then you can find "Action canceled" frames on the top of your website too.
http://www.speedy.net/uri/blog/?p=84
I currently don't have a computer and I'm using public computers to connect to the internet (it costs) and when I noticed this "Action canceled" on the top of my website it was shabbat (weekend) but since this is a top security issue and I didn't want my customers to think I went bankrupt and stop using Speedy Whois, I removed google ads and put a warning to other webmasters too.
By the way I also asked them why they stopped displaying my ads for Speedy Whois on their websites ("adwords"), I wrote them in english and my website is english and my language preferences are english but instead they wrote me something in hebrew about them hating me and my website which I didn't even bother to read. I asked them to reply in english and they refused so I'm not advertising with them either. Godaddy is also not displaying whois data to my customers so they are together (Google & Godaddy) doing their best to cause my customers to stop using my website.
Google also caused me problems with sending mail from my gmail and they are censoring me big time because of my political views. I'm against wars and I wrote some things against war crimes on my website and it made them very angry about me.
I host my site on webcity and have done for 6-7months. Most of the time, I publish my web and the changes appear virtually immediately.
Some weeks ago, the lag between publishing and appearing began to take hours. I advised webcity support and the next day back to normal.
Yesterday, it started again. I emailed webcity and their reposnse was - it's your cache. I rang webcity and again was advised - it's your cache (or something your ISP is doing).
I don't believe it is cache. I can refresh the page, close the browser, reboot the computer, clear all temp files (run CC Cleaner) - no difference.