Memory / Cpanel
May 31, 2008I have a VPS with 384MB of guaranteed ram/ 1GB burst, and my question is roughly how many accounts [each with cpanel] I will be able to fit on it, before the vps starts to slow down?
View 7 RepliesI have a VPS with 384MB of guaranteed ram/ 1GB burst, and my question is roughly how many accounts [each with cpanel] I will be able to fit on it, before the vps starts to slow down?
View 7 RepliesI have a VPS. And have had an issue both when it was 1Gig and now I recently downgraded it to 768m, because I am moving some sites to a dedicated.
However, the part I am having trouble grasping is that when I look at graphs from Munin, it will typically always show 200-400MB free memory (and free -m and top agrees with munin), but Munin shows 'committed' memory that is above the total Ram on the VPS and once the 'committed' ram exceeds the VPS limit, processes start failing.
So, why is 'committed' memory exceeding the RAM on my VPS, when Munin, free -m and top all show there is free memory available?
Code:
root@server [~]# free -m
total used free shared buffers cached
Mem: 768 449 318 0 0 0
-/+ buffers/cache: 449 318
Swap: 0 0 0
Here's a graph that munin produces that shows the 'committed' memory exceeding the total memory.
[url]
I was told that cPanel itself eats about 128-256Mb of memory from the VPS, so if I want to have cPanel I need at least 384mb RAM to start few simple sites working.
Is it true? (I definitely need cPanel, abandon it - it's not an option)
What (as I think) require resources I need to work at the VPS:
1. Three php sites (osCommerce, MySQL, not ideal code optimization I believe, 80-180 visitors at the same time for all 3 in total)
2. One php photo gallery (20-50 visitors at the same time)
Those 4 sites generate about 70Gb bandwidth monthly.
3. cPanel.
which amount of RAM is required to get it working fast?
I purchased a cPanel VPS of 128MB RAM. Problem is that without even launching my website, the memory usage of the server is over 95%.
if shifting to Plesk will lower my memory usage? Can I deploy my site on 128MB RAM keeping in mind that site only get 6675 hits a month and is a dynamic site in PHP/MYSQL (not very complex programming though).
I want managed hosting and wont prefer upgrade as I am already paying $27 per month for it.
If upgrade is option, then can someone recommend a host under $30 with enough RAM OR will switching to Plesk save RAM?
top command on idle server with no visitors.
Quote:
Tasks: 46 total, 1 running, 43 sleeping, 0 stopped, 2 zombie
Cpu(s): 0.0% us, 0.0% sy, 0.0% ni, 100.0% id, 0.0% wa, 0.0% hi, 0.0% si
Mem: 131072k total, 101920k used, 29152k 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 16 0 1980 644 556 S 0 0.5 0:00.00 init
32636 root 19 0 1568 408 344 S 0 0.3 0:00.00 courierlogger
32637 root 16 0 1928 612 508 S 0 0.5 0:00.00 authdaemond
32648 root 16 0 1928 380 264 S 0 0.3 0:00.00 authdaemond
32649 root 16 0 1928 380 264 S 0 0.3 0:00.00 authdaemond
32651 root 16 0 6908 1048 672 S 0 0.8 0:00.00 sshd
32664 root 18 0 2368 1124 972 S 0 0.9 0:00.00 mysqld_safe
32689 mysql 16 0 153m 33m 4928 S 0 26.4 1:19.90 mysqld
32742 root 15 0 1572 412 344 S 0 0.3 0:00.00 courierlogger
32743 root 15 0 1680 536 460 S 0 0.4 0:00.00 couriertcpd
32752 root 22 0 1572 340 284 S 0 0.3 0:00.00 courierlogger
32753 root 18 0 1680 516 440 S 0 0.4 0:00.00 couriertcpd
32759 root 22 0 1572 340 284 S 0 0.3 0:00.00 courierlogger
32760 root 18 0 1680 516 440 S 0 0.4 0:00.00 couriertcpd
32766 root 18 0 1572 340 284 S 0 0.3 0:00.00 courierlogger
32767 root 22 0 1680 516 440 S 0 0.4 0:00.00 couriertcpd
1348 mailnull 15 0 10104 2608 2132 S 0 2.0 0:00.01 exim
1353 mailnull 17 0 10104 2588 2120 S 0 2.0 0:00.01 exim
1469 root 16 0 42352 14m 5364 S 0 10.9 0:12.08 httpd
1478 root 16 0 5076 1460 1128 S 0 1.1 0:00.31 pure-ftpd
1480 root 16 0 4804 1084 852 S 0 0.8 0:00.23 pure-authd
1490 root 16 0 3204 1108 572 S 0 0.8 0:00.18 crond
1560 root 16 0 7516 4996 1680 S 0 3.8 0:00.14 tailwatchd
1637 root 18 0 13724 6712 436 S 0 5.1 0:00.00 cpdavd
1654 root 36 19 10512 6924 1924 S 0 5.3 0:02.64 cpanellogd
1691 root 22 0 5396 688 424 S 0 0.5 0:00.00 saslauthd
1692 root 22 0 5396 432 168 S 0 0.3 0:00.00 saslauthd
1713 root 18 0 1600 416 336 S 0 0.3 0:00.00 portsentry
19603 named 20 0 71120 4152 2040 S 0 3.2 0:00.47 named
22416 root 16 0 17668 7556 888 S 0 5.8 0:01.81 cpsrvd-ssl
28477 mailnull 18 0 10104 1096 620 S 0 0.8 0:00.00 exim
28508 root 16 0 4496 2824 1196 S 0 2.2 0:00.14 chkservd
26385 root 16 0 22524 8508 1244 S 0 6.5 0:00.00 httpd
26386 nobody 16 0 43872 14m 4180 S 0 11.2 0:00.11 httpd
26387 nobody 16 0 42484 11m 3052 S 0 9.2 0:00.00 httpd
26388 nobody 16 0 43212 13m 3448 S 0 10.2 0:00.02 httpd
26389 nobody 16 0 44624 14m 4020 S 0 11.5 0:00.03 httpd
26391 nobody 16 0 45684 15m 3644 S 0 12.1 0:00.06 httpd
28510 nobody 16 0 45684 15m 4184 S 0 12.4 0:00.05 httpd
I tracked down another issue that I am having with this same server. I login and look at the system and 100% of the swap is used and 99% of the Ram. I look to see who's using it, and the user name is Nobody. What role does this user play in cpanel? Can I disable the user?
UPDATE: It is actually apache doing it.
7044 nobody 0
0.6
8.3 /usr/local/apache/bin/httpd -DSSL
2836 nobody 0
0.6
0.2 /usr/local/apache/bin/httpd -DSSL
2835 nobody 0
0.6
1.8 /usr/local/apache/bin/httpd -DSSL
2838 nobody 0
0.6
0.5 /usr/local/apache/bin/httpd -DSSL
2854 nobody 0
0.6
0.2 /usr/local/apache/bin/httpd -DSSL
7934 nobody 0
0.5
22.8 /usr/local/apache/bin/httpd -DSSL
2839 nobody 0
0.4
0.2 /usr/local/apache/bin/httpd -DSSL
2887 nobody 0
0.4
24.5 /usr/local/apache/bin/httpd -DSSL
2848 nobody 0
0.4
2.7 /usr/local/apache/bin/httpd -DSSL
if the cPanel VPS License will work on 128MB of memory?
View 8 Replies View RelatedI know bluehost.com "sort of" does this. If you use more then x % of the total CPU or memory of the server, then your account will be limited automatically.
(A page is displayed saying that the page you're trying to view can't be displayed because it is using too much resources.)
I know bluehost.com "sort of" does this. If you use more then x % of the total CPU or memory of the server, then your account will be limited automatically.
(A page is displayed saying that the page you're trying to view can't be displayed because it is using too much resources.)
for the last few days, i am facing high memory usage up to 90%.
Memory usage get's high, even if i don't have many visitors online. I have to restart httpd to get the memory to normal. some times, server loads, get's high aswell.
In error logs (only unusual things i see):
Code:
[Sat Jan 6 10:37:04 2007] [error] mod_gzip: TRANSMIT_ERROR:ISMEM:104
[Sat Jan 6 10:37:25 2007] [error] mod_gzip: TRANSMIT_ERROR:ISMEM:104
# top:
Code:
top - 10:42:19 up 10:35, 1 user, load average: 22.95, 10.67, 9.79
Tasks: 318 total, 1 running, 317 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.7% us, 1.3% sy, 0.0% ni, 0.0% id, 61.9% wa, 36.1% hi, 0.0% si
Mem: 2009652k total, 1220736k used, 788916k free, 28756k buffers
Swap: 6224564k total, 135212k used, 6089352k free, 389768k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
6365 root 0 -20 0 0 0 D 40 0.0 3:01.33 loop0
4553 root 16 0 3112 1108 760 R 1 0.1 0:00.30 top
327 root 15 0 0 0 0 S 0 0.0 6:33.15 kjournald
3743 nobody 15 0 18592 7260 2320 S 0 0.4 0:00.21 httpd
3833 nobody 15 0 21664 10m 2780 D 0 0.5 0:00.94 httpd
3838 nobody 15 0 20472 9400 2664 S 0 0.5 0:00.18 httpd
3858 nobody 15 0 18876 7616 2388 S 0 0.4 0:00.82 httpd
3919 nobody 16 0 21492 10m 2432 D 0 0.5 0:00.82 httpd
3931 nobody 15 0 18976 8016 2716 D 0 0.4 0:00.45 httpd
4439 nobody 15 0 18892 7612 2368 S 0 0.4 0:00.16 httpd
4913 root 18 0 2512 292 244 D 0 0.0 0:00.24 sync
1 root 16 0 2484 488 456 S 0 0.0 0:06.16 init
2 root RT 0 0 0 0 S 0 0.0 0:00.11 migration/0
3 root 34 19 0 0 0 S 0 0.0 0:06.66 ksoftirqd/0
4 root RT 0 0 0 0 S 0 0.0 0:00.16 migration/1
5 root 34 19 0 0 0 S 0 0.0 0:00.71 ksoftirqd/1
6 root 5 -10 0 0 0 S 0 0.0 0:14.59 events/0
7 root 5 -10 0 0 0 S 0 0.0 0:42.07 events/1
this looks suspisous to me:
6365 root 0 -20 0 0 0 D 40 0.0 3:01.33 loop0
as it's taking alot of memory. i don't see this before.
I just got a new server Dual E5520 with 6GB RAM, SAS 15k rpm raid10. It's running well. However, the memory usage is just around 2.5GB, even when I have more traffic. Here is the kernel info
Quote:
# uname -a
Linux server2.[url]2.6.18-128.1.10.el5 #1 SMP Thu May 7 10:35:59 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
Any idea that we can put more content into memory?