Results 1 to 19 of 19
Thread: a quest about vps stats command
-
02-18-2007, 10:55 AM #1Newbie
- Join Date
- Feb 2007
- Posts
- 29
a quest about vps stats command
I have seen many people here showing the stats below:
Server Load 0.04 (4 cpus)
Memory Used 21.9 %
Swap 0.999 %
Disk vzfs (/) 6 %
and i have done lots of search on google and in this forum as well,
I have no idea how you can generate stats in this kind of format in SSH.
Can anyone tell me how?
-
02-18-2007, 11:03 AM #2WebHosting Master
- Join Date
- Dec 2006
- Posts
- 4,151
I believe this is an output from WHM?
You can achieve each inidividually by :
free - will show total memory & swap, free memory & swap.
uptime - will show 3 measurements of load, 1min, 5min and 15min respectively.
df - will show diskspace used.
-
02-18-2007, 11:18 AM #3Newbie
- Join Date
- Feb 2007
- Posts
- 29
Originally Posted by tsj5j
here is my free command output, i wonder this is apply to my vps or the server?
total used free shared buffers cached
Mem: 8294080 8251908 42172 0 135932 4468656
-/+ buffers/cache: 3647320 4646760
Swap: 8385920 76724 8309196
-
02-18-2007, 11:28 AM #4WebHosting Master
- Join Date
- Dec 2006
- Posts
- 4,151
There is 8GB of RAM according to the output.
Are you on an 8GB VPS (unlikely)?
If not, you are probably on OS-level virtualization technologies.
Try this command :
cat /proc/beancounters
If you get an output, you're on Virtuozzo.
Those statistics truely reflect your VPS limits.
-
02-18-2007, 11:32 AM #5Newbie
- Join Date
- Feb 2007
- Posts
- 29
actually i run this command " cat /proc/user_beancounters ", and it returns:
Version: 2.5
uid resource held maxheld barrier limit failcnt
200245174: kmemsize 8165834 8184135 22111846 22754099 0
lockedpages 0 0 512 512 0
privvmpages 102169 102687 131072 139264 150550
shmpages 6155 6155 43008 43008 0
dummy 0 0 0 0 0
numproc 70 70 480 480 0
physpages 48899 48989 0 2147483647 0
vmguarpages 0 0 67584 2147483647 0
oomguarpages 48899 48989 52224 2147483647 0
numtcpsock 34 35 720 720 0
numflock 7 7 376 412 0
numpty 1 1 32 32 0
numsiginfo 0 1 512 512 0
tcpsndbuf 395772 429312 3440640 5406720 0
tcprcvbuf 419808 419808 3440640 5406720 0
othersockbuf 54972 105200 2252160 4194304 2433
dgramrcvbuf 0 700 524288 524288 0
numothersock 20 20 720 720 0
dcachesize 900581 907060 6819840 7249920 0
numfile 2713 2738 18624 18624 0
dummy 0 0 0 0 0
dummy 0 0 0 0 0
dummy 0 0 0 0 0
numiptent 10 10 256 256 0
-
02-18-2007, 11:34 AM #6Newbie
- Join Date
- Feb 2007
- Posts
- 29
after i run "top"
top - 07:33:56 up 40 min, 1 user, load average: 0.02, 0.03, 0.00
Tasks: 52 total, 2 running, 50 sleeping, 0 stopped, 0 zombie
Cpu(s): 1.2% us, 0.5% sy, 0.0% ni, 98.1% id, 0.2% wa, 0.0% hi, 0.0% si
Mem: 8294080k total, 8275940k used, 18140k free, 137860k buffers
Swap: 8385920k total, 77032k used, 8308888k free, 4449520k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
14131 mysql 15 0 123m 31m 4656 S 1 0.4 0:11.81 mysqld
15434 psaadm 16 0 46784 27m 18m S 0 0.3 0:01.32 httpsd
15467 psaadm 15 0 45456 25m 16m S 0 0.3 0:00.74 httpsd
15401 popuser 16 0 25540 22m 2336 S 0 0.3 0:00.38 spamd
15413 popuser 16 0 25540 20m 672 S 0 0.3 0:00.00 spamd
5898 apache 15 0 34940 17m 5916 S 0 0.2 0:00.64 httpd
14273 root 16 0 29244 13m 7528 S 0 0.2 0:00.56 httpd
3725 apache 15 0 31768 11m 3356 S 0 0.1 0:00.80 httpd
15469 drweb 16 0 16332 11m 436 S 0 0.1 0:00.00 drwebd
31751 apache 16 0 31276 11m 3364 S 0 0.1 0:01.19 httpd
30308 apache 16 0 31136 11m 3368 S 0 0.1 0:01.35 httpd
31782 apache 15 0 30860 11m 3520 S 0 0.1 0:00.87 httpd
5721 apache 15 0 30820 11m 3372 S 0 0.1 0:00.51 httpd
7889 apache 16 0 31060 11m 3128 S 2 0.1 0:00.19 httpd
5915 apache 15 0 30844 11m 3352 S 0 0.1 0:00.42 httpd
5992 apache 16 0 30808 11m 3356 S 0 0.1 0:00.32 httpd
6037 apache 15 0 30800 10m 3356 S 0 0.1 0:00.34 httpd
29967 apache 16 0 30640 10m 3368 S 0 0.1 0:01.04 httpd
7881 apache 16 0 30468 10m 3484 S 0 0.1 0:00.24 httpd
5169 apache 16 0 30432 10m 3512 S 0 0.1 0:00.42 httpd
5174 apache 16 0 30608 10m 3348 S 0 0.1 0:00.72 httpd
2038 apache 15 0 30648 10m 3296 S 0 0.1 0:00.28 httpd
5908 apache 15 0 30548 10m 3360 S 0 0.1 0:00.62 httpd
30599 apache 16 0 30584 10m 3320 S 0 0.1 0:01.06 httpd
30302 apache 15 0 30544 10m 3340 S 0 0.1 0:01.17 httpd
7891 apache 16 0 30764 10m 3092 S 0 0.1 0:00.43 httpd
31752 apache 16 0 30464 10m 3368 S 0 0.1 0:00.94 httpd
5161 apache 16 0 30512 10m 3320 S 0 0.1 0:00.42 httpd
5909 apache 15 0 30400 10m 3360 S 0 0.1 0:00.32 httpd
7883 apache 15 0 30408 10m 3316 S 0 0.1 0:00.16 httpd
9400 apache 16 0 30392 10m 3284 S 3 0.1 0:00.15 httpd
9395 apache 16 0 29976 10m 3264 S 0 0.1 0:00.08 httpd
25952 psaadm 15 0 40300 9936 6472 S 0 0.1 0:00.25 httpsd
9401 apache 16 0 29244 8136 1828 S 0 0.1 0:00.00 httpd
15431 root 15 0 35524 4820 3032 S 0 0.1 0:00.02 httpsd
14290 apache 16 0 16556 3844 644 S 0 0.0 0:00.04 httpd
14008 named 20 0 36216 2740 1900 S 0 0.0 0:00.10 named
17859 root 16 0 8692 2552 1984 R 0 0.0 0:00.10 sshd
17950 root 15 0 2284 1364 1088 S 0 0.0 0:00.04 bash
-
02-18-2007, 11:36 AM #7Newbie
- Join Date
- Feb 2007
- Posts
- 29
it seems it used up lots of memory, but i do not know why.
-
02-18-2007, 11:47 AM #8WebHosting Master
- Join Date
- Dec 2006
- Posts
- 4,151
If I'm not wrong, Linux tries to use up all memory by means of caching.
It is not surprising for a Linux system to fully utilize the RAM.
-
02-18-2007, 11:52 AM #9Newbie
- Join Date
- Feb 2007
- Posts
- 29
if that's the case, i think there is no problem with mysql database.
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
14131 mysql 16 0 123m 34m 4668 S 0 0.4 0:18.52 mysqld
but one of my colleague in hosting company says that 123m and 34m are too high, i am a bit confuse now.
-
03-01-2007, 08:16 AM #10Newbie
- Join Date
- Feb 2007
- Posts
- 29
any input will be grateful
-
03-01-2007, 09:18 AM #11Junior Guru Wannabe
- Join Date
- Feb 2007
- Location
- Home
- Posts
- 63
Hello,
it is the best way, asking to your provider about your guaranteed and burstable ram pieces. I see you are on a 8GB VZ node and your VPS is running on a VZ based system (SwSoft-VZ)
as tsj5j said before, you will need 3 different commands to see your resources.
df -hl (harddrive usage)
free -m (ram usage)
uptime and w (cpu usage per vps and per user)
I think your vz software is an older version coz new versions show all ram available to vps and not the node's ram. (openVZ, don't know about swsoft)
regards,
Dan -> ironVPS.com - VPS servers made of iron.
> Feel the power!!!
www.ironvps.com - Quick support both before and buing services. Our customers are our BOSS!!
-
03-01-2007, 07:25 PM #12Aspiring Evangelist
- Join Date
- Aug 2002
- Location
- Manchester, UK
- Posts
- 367
Originally Posted by Dan-Iron
privvmpages 102169 102687 131072 139264 150550
vmguarpages 0 0 67584 2147483647 0
This means you have 264MB guaranteed memory, 512MB burstable memory. You get these by dividing the number by 1024 (to convert to MB) and multiplying by 4 (as they're measured in 4KB pages on VZ). You should be concerned about the 150550 failcnt in the privvmpages parameter. This means that your VPS is running out of memory.Last edited by Layershift Andrew; 03-01-2007 at 07:29 PM.
Andrew Cranson, Director of Operations
Layershift Fully Managed Cloud Hosting :: WizzVPS Cheap Unmanaged VPS
Jelastic :: Next generation PaaS :: Cloud Hosting
True 24x7 Technical Support - peace of mind around the clock! UK, USA, Singapore server locations.
-
03-01-2007, 07:33 PM #13Newbie
- Join Date
- Feb 2007
- Posts
- 29
My vps Auxiliary UBC Parameters
the attachment is My vps's Primary UBC Parameters, Secondary UBC Parameters and Auxiliary UBC Parameters
which i think it means guaranteed memory should be 512mb (131,027*4/1024 = 511.71Mb)on my vps, correct me if i am wrong pls!
the following is my.cnf setting on mysql
[mysqld]
max_connections = 400
key_buffer = 16M
myisam_sort_buffer_size = 32M
join_buffer_size = 1M
read_buffer_size = 1M
sort_buffer_size = 1M
table_cache = 500
thread_cache_size = 64
interactive_timeout = 25
wait_timeout = 1000
connect_timeout = 10
max_allowed_packet = 16M
max_connect_errors = 10
query_cache_limit = 1M
query_cache_size = 10M
query_cache_type = 1
tmp_table_size = 16M
[mysqld_safe]
open_files_limit = 8192
[mysqldump]
quick
max_allowed_packet = 16M
[myisamchk]
key_buffer = 32M
sort_buffer = 32M
read_buffer = 16M
write_buffer = 16M
[mysqlhotcopy]
interactive-timeout
does this looks alright for a website which has 10,000 IPs per day? or 100 users online simultaneously?Last edited by renbinyan; 03-01-2007 at 07:46 PM.
-
03-02-2007, 02:02 AM #14WebHosting Master
- Join Date
- Dec 2006
- Posts
- 4,151
If its a forum/database intensive site, then it looks normal.
Do you also run CPanel?
-
03-02-2007, 04:20 AM #15Newbie
- Join Date
- Feb 2007
- Posts
- 29
hi tsj5j, i got no cpanel, just plesk
i guess i only got 256mb guaranteed memory instead of 512mb
can anyone justify this for me?
-
03-02-2007, 04:57 AM #16Junior Guru Wannabe
- Join Date
- Mar 2006
- Posts
- 59
Maybe you should contact your host and they can find out
-
03-12-2007, 06:16 PM #17Newbie
- Join Date
- Feb 2007
- Posts
- 29
Originally Posted by Cranky
this reply is all i needed, sorry missing your reply .
and many thanks!Hao Hosting dot COM -- A place to find a hosting !
Find a hosting is never easy for a beginer, even for someone like me who worked for hosting company before.
-
12-11-2007, 11:17 AM #18Web Hosting Guru
- Join Date
- Aug 2006
- Posts
- 296
Hello,
Actually, what is the differences between SLM and UBC. Does UBC is the guaranted and bursable type? And SLM is guaranted only (the new version of memory management?)?
And, how can we know which memory type that the VPS currently used? Here I copy my /proc/user_beancounters result..
===================== uid resource held maxheld barrier limit failcnt
7878: kmemsize 32648665 32845815 2147483647 2147483647 0
lockedpages 0 0 2147483647 2147483647 0
privvmpages 110378 112463 2147483647 2147483647 0
shmpages 731 731 2147483647 2147483647 0
dummy 0 0 2147483647 2147483647 0
numproc 108 110 2147483647 2147483647 0
physpages 45752 47433 2147483647 2147483647 0
vmguarpages 0 0 2147483647 2147483647 0
oomguarpages 62551 64232 2147483647 2147483647 0
numtcpsock 37 39 2147483647 2147483647 0
numflock 11 11 2147483647 2147483647 0
numpty 1 1 2147483647 2147483647 0
numsiginfo 0 1 2147483647 2147483647 0
tcpsndbuf 425132 454200 2147483647 2147483647 0
tcprcvbuf 606208 638976 2147483647 2147483647 0
othersockbuf 19680 37276 2147483647 2147483647 0
dgramrcvbuf 0 0 2147483647 2147483647 0
numothersock 28 30 2147483647 2147483647 0
dcachesize 0 0 2147483647 2147483647 0
numfile 126051 126117 2147483647 2147483647 0
dummy 0 0 0 0 0
dummy 0 0 0 0 0
dummy 0 0 0 0 0
numiptent 296 296 2147483647 2147483647 0=====================
Which value should we pay attention to count our memory in the VPS?
Thanks...
-
12-11-2007, 10:56 PM #19Web Hosting Guru
- Join Date
- Aug 2006
- Posts
- 296
Anyone please?