Results 1 to 9 of 9
  1. #1

    out of memory and too many processes

    Hello

    I just got today fresh VPS with cpanel optimised. i installed CSF and noticed, that out of 512mb i have only 16mb or so free. there are lots of empty processess.

    i tried to uninstall CSF but the problem still remains.

    I have another openvz VPS from another provider with same setup and it has arround 50 processes and uses 250 megs, this one is vmware and has 160 processes and uses almost all 500 megs of ram.

    could it be due to VPS configuration from provider?

    its an wmvare vps with 512megs of ram.

    Centos 5.3
    kernel (uname -r):
    2.6.18-128.4.1.el5

    [email protected] [~]# ps aux | more
    USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
    root 1 0.0 0.1 10344 652 ? Ss 00:08 0:01 init [3]
    root 2 0.0 0.0 0 0 ? S< 00:08 0:00 [migration/0]
    root 3 0.0 0.0 0 0 ? SN 00:08 0:00 [ksoftirqd/0]
    root 4 0.0 0.0 0 0 ? S< 00:08 0:00 [watchdog/0]
    root 5 0.0 0.0 0 0 ? S< 00:08 0:00 [migration/1]
    root 6 0.0 0.0 0 0 ? SN 00:08 0:00 [ksoftirqd/1]
    root 7 0.0 0.0 0 0 ? S< 00:08 0:00 [watchdog/1]
    root 8 0.0 0.0 0 0 ? S< 00:08 0:00 [migration/2]
    root 9 0.0 0.0 0 0 ? SN 00:08 0:00 [ksoftirqd/2]
    root 10 0.0 0.0 0 0 ? S< 00:08 0:00 [watchdog/2]
    root 11 0.0 0.0 0 0 ? S< 00:08 0:00 [migration/3]
    root 12 0.0 0.0 0 0 ? SN 00:08 0:00 [ksoftirqd/3]
    root 13 0.0 0.0 0 0 ? S< 00:08 0:00 [watchdog/3]
    root 14 0.0 0.0 0 0 ? S< 00:08 0:00 [events/0]
    root 15 0.0 0.0 0 0 ? S< 00:08 0:00 [events/1]
    root 16 0.0 0.0 0 0 ? S< 00:08 0:00 [events/2]
    root 17 0.0 0.0 0 0 ? S< 00:08 0:00 [events/3]
    root 18 0.0 0.0 0 0 ? S< 00:08 0:00 [khelper]
    root 23 0.0 0.0 0 0 ? S< 00:08 0:00 [kthread]
    root 30 0.0 0.0 0 0 ? S< 00:08 0:01 [kblockd/0]
    root 31 0.0 0.0 0 0 ? S< 00:08 0:00 [kblockd/1]
    root 32 0.0 0.0 0 0 ? S< 00:08 0:00 [kblockd/2]
    root 33 0.0 0.0 0 0 ? S< 00:08 0:00 [kblockd/3]
    root 34 0.0 0.0 0 0 ? S< 00:08 0:00 [kacpid]
    root 196 0.0 0.0 0 0 ? S< 00:08 0:00 [cqueue/0]
    root 197 0.0 0.0 0 0 ? S< 00:08 0:00 [cqueue/1]
    root 198 0.0 0.0 0 0 ? S< 00:08 0:00 [cqueue/2]
    root 199 0.0 0.0 0 0 ? S< 00:08 0:00 [cqueue/3]
    root 202 0.0 0.0 0 0 ? S< 00:08 0:00 [khubd]
    root 204 0.0 0.0 0 0 ? S< 00:08 0:00 [kseriod]
    root 289 0.0 0.0 0 0 ? S 00:08 0:04 [pdflush]
    root 290 0.0 0.0 0 0 ? S 00:08 0:03 [pdflush]
    root 291 0.0 0.0 0 0 ? S< 00:08 0:02 [kswapd0]
    root 292 0.0 0.0 0 0 ? S< 00:08 0:00 [aio/0]
    root 293 0.0 0.0 0 0 ? S< 00:08 0:00 [aio/1]
    root 294 0.0 0.0 0 0 ? S< 00:08 0:00 [aio/2]
    root 295 0.0 0.0 0 0 ? S< 00:08 0:00 [aio/3]
    root 501 0.0 0.0 0 0 ? S< 00:08 0:00 [kpsmoused]
    root 568 0.0 0.0 0 0 ? S< 00:08 0:00 [mpt_poll_0]
    root 569 0.0 0.0 0 0 ? S< 00:08 0:00 [scsi_eh_0]
    root 575 0.0 0.0 0 0 ? S< 00:08 0:00 [ata/0]
    root 576 0.0 0.0 0 0 ? S< 00:08 0:00 [ata/1]
    root 577 0.0 0.0 0 0 ? S< 00:08 0:00 [ata/2]
    root 578 0.0 0.0 0 0 ? S< 00:08 0:00 [ata/3]
    root 579 0.0 0.0 0 0 ? S< 00:08 0:00 [ata_aux]
    root 590 0.0 0.0 0 0 ? S< 00:08 0:00 [kstriped]
    root 611 0.0 0.0 0 0 ? S< 00:08 0:00 [ksnapd]
    root 634 0.0 0.0 0 0 ? S< 00:09 0:10 [kjournald]
    root 666 0.0 0.0 0 0 ? S< 00:09 0:00 [kauditd]
    root 700 0.0 0.3 13652 1868 ? S<s 00:09 0:01 /sbin/udevd -d
    root 2056 0.0 0.0 0 0 ? S< 00:09 0:00 [kmpathd/0]
    root 2057 0.0 0.0 0 0 ? S< 00:09 0:00 [kmpathd/1]
    root 2058 0.0 0.0 0 0 ? S< 00:09 0:00 [kmpathd/2]
    root 2059 0.0 0.0 0 0 ? S< 00:09 0:00 [kmpathd/3]
    root 2060 0.0 0.0 0 0 ? S< 00:09 0:00 [kmpath_handlerd]
    root 2084 0.0 0.0 0 0 ? S< 00:09 0:00 [kjournald]
    root 2377 0.0 0.0 0 0 ? S< 00:10 0:01 [loop0]
    root 2384 0.0 0.0 0 0 ? S< 00:10 0:00 [kjournald]
    root 2508 0.0 0.1 14552 516 ? Ss 00:10 0:00 mcstransd
    root 2858 0.0 0.1 92864 888 ? S<sl 00:10 0:00 auditd
    root 2860 0.0 0.1 81804 804 ? S<sl 00:10 0:00 /sbin/audispd
    root 2909 0.0 3.2 26152 16372 ? Ss 00:10 0:00 /usr/sbin/restorecond
    root 2924 0.0 0.1 5904 600 ? Ss 00:10 0:00 syslogd -m 0
    root 2927 0.0 0.0 3800 428 ? Ss 00:10 0:00 klogd -x
    root 2943 0.0 0.0 10728 368 ? Ss 00:10 0:01 irqbalance
    root 2960 0.0 3.5 246536 18248 ? Ssl 00:10 0:03 /usr/bin/python -E /usr/sbin/setroubleshootd
    root 3041 0.0 0.0 0 0 ? S< 00:10 0:00 [rpciod/0]
    root 3042 0.0 0.0 0 0 ? S< 00:10 0:00 [rpciod/1]
    root 3044 0.0 0.0 0 0 ? S< 00:10 0:00 [rpciod/2]
    root 3045 0.0 0.0 0 0 ? S< 00:10 0:00 [rpciod/3]
    dbus 3079 0.0 0.2 31628 1164 ? Ssl 00:10 0:00 dbus-daemon --system
    root 3133 0.0 0.0 0 0 ? S< 00:10 0:00 [krfcommd]
    root 3227 0.0 0.2 37964 1472 ? Ssl 00:10 0:00 automount
    root 3251 0.0 0.1 3796 568 ? Ss 00:10 0:00 /usr/sbin/acpid
    root 3269 0.0 0.2 60524 1180 ? Ss 00:10 0:00 /usr/sbin/sshd
    root 3296 0.0 0.2 65944 1268 ? S 00:10 0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/va
    r/lib/mysql/lv10.dubwave.lv.pid
    mysql 3320 0.0 1.1 114108 5984 ? Sl 00:10 0:00 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql -
    -pid-file=/var/lib/mysql/lv10.dubwave.lv.pid --skip-external-locking
    root 3569 0.0 0.2 74828 1212 ? Ss 00:11 0:01 crond
    68 3788 0.0 0.8 31068 4148 ? Ss 00:11 0:01 hald
    root 3789 0.0 0.2 21688 1056 ? S 00:11 0:00 hald-runner
    68 3798 0.0 0.1 12320 852 ? S 00:11 0:00 hald-addon-acpi: listening on acpid socket /var/run/acpid.socket
    68 3894 0.0 0.1 12320 852 ? S 00:11 0:00 hald-addon-keyboard: listening on /dev/input/event0
    root 3947 0.0 0.1 10224 688 ? S 00:11 0:09 hald-addon-storage: polling /dev/hdc
    root 3955 0.0 3.0 256800 15488 ? SN 00:11 0:00 /usr/bin/python -tt /usr/sbin/yum-updatesd
    root 3972 0.0 0.2 12912 1184 ? SN 00:11 0:00 /usr/libexec/gam_server
    root 3987 0.0 0.0 3808 340 ? Ss 00:11 0:00 /usr/sbin/portsentry -tcp
    root 4036 0.0 0.0 18412 460 ? S 00:12 0:00 /usr/sbin/smartd -q never
    root 4039 0.0 0.0 3788 488 tty1 Ss+ 00:12 0:00 /sbin/mingetty tty1
    root 4040 0.0 0.0 3788 488 tty2 Ss+ 00:12 0:00 /sbin/mingetty tty2
    root 4041 0.0 0.0 3788 488 tty3 Ss+ 00:12 0:00 /sbin/mingetty tty3
    root 4042 0.0 0.0 3788 488 tty4 Ss+ 00:12 0:00 /sbin/mingetty tty4
    root 4043 0.0 0.0 3788 484 tty5 Ss+ 00:12 0:00 /sbin/mingetty tty5
    root 4045 0.0 0.0 3788 488 tty6 Ss+ 00:12 0:00 /sbin/mingetty tty6
    root 5642 0.1 4.1 123768 20984 ? Ss 00:26 0:56 lfd - sleeping
    root 7219 0.0 0.0 3784 428 ? S 00:44 0:00 /usr/sbin/courierlogger -pid=/var/run/imapd.pid -start -name=imapd /
    usr/lib/courier-imap/libexec/couriertcpd -address=0 -maxprocs=50 -maxperip=30 -nodnslookup -noidentlookup 143 /usr/lib/courier-imap/s
    bin/imaplogin /usr/lib/courier-imap/bin/imapd Maildir
    root 7220 0.0 0.1 7980 572 ? S 00:44 0:00 /usr/lib/courier-imap/libexec/couriertcpd -address=0 -maxprocs=50 -m
    axperip=30 -nodnslookup -noidentlookup 143 /usr/lib/courier-imap/sbin/imaplogin /usr/lib/courier-imap/bin/imapd Maildir
    root 7226 0.0 0.0 3784 336 ? S 00:44 0:00 /usr/sbin/courierlogger -pid=/var/run/imapd-ssl.pid -start -name=ima
    pd-ssl /usr/lib/courier-imap/libexec/couriertcpd -address=0 -maxprocs=50 -maxperip=30 -nodnslookup -noidentlookup 993 /usr/lib/courie
    r-imap/bin/couriertls -server -tcpd /usr/lib/courier-imap/sbin/imaplogin /usr/lib/courier-imap/bin/imapd Maildir
    root 7227 0.0 0.1 7980 556 ? S 00:44 0:00 /usr/lib/courier-imap/libexec/couriertcpd -address=0 -maxprocs=50 -m
    axperip=30 -nodnslookup -noidentlookup 993 /usr/lib/courier-imap/bin/couriertls -server -tcpd /usr/lib/courier-imap/sbin/imaplogin /u
    sr/lib/courier-imap/bin/imapd Maildir
    root 7232 0.0 0.0 3784 432 ? S 00:44 0:00 /usr/sbin/courierlogger -pid=/var/run/pop3d.pid -start -name=pop3d /
    usr/lib/courier-imap/libexec/couriertcpd -address=0 -maxprocs=50 -maxperip=30 -nodnslookup -noidentlookup 110 /usr/lib/courier-imap/s
    bin/pop3login /usr/lib/courier-imap/bin/pop3d Maildir
    root 7233 0.0 0.1 7980 576 ? S 00:44 0:00 /usr/lib/courier-imap/libexec/couriertcpd -address=0 -maxprocs=50 -m
    axperip=30 -nodnslookup -noidentlookup 110 /usr/lib/courier-imap/sbin/pop3login /usr/lib/courier-imap/bin/pop3d Maildir
    root 7238 0.0 0.0 3784 336 ? S 00:44 0:00 /usr/sbin/courierlogger -pid=/var/run/pop3d-ssl.pid -start -name=pop
    3d-ssl /usr/lib/courier-imap/libexec/couriertcpd -address=0 -maxprocs=50 -maxperip=30 -nodnslookup -noidentlookup 995 /usr/lib/courie
    r-imap/bin/couriertls -server -tcpd /usr/lib/courier-imap/sbin/pop3login /usr/lib/courier-imap/bin/pop3d Maildir
    root 7239 0.0 0.1 7980 560 ? S 00:44 0:00 /usr/lib/courier-imap/libexec/couriertcpd -address=0 -maxprocs=50 -m
    axperip=30 -nodnslookup -noidentlookup 995 /usr/lib/courier-imap/bin/couriertls -server -tcpd /usr/lib/courier-imap/sbin/pop3login /u
    sr/lib/courier-imap/bin/pop3d Maildir
    root 7243 0.0 0.6 92036 3288 ? Ss 10:05 0:00 sshd: sender [priv]
    root 7244 0.0 0.0 3784 424 ? S 00:44 0:00 /usr/sbin/courierlogger -pid=/var/spool/authdaemon/pid -facility=mai
    l -start /usr/libexec/courier-authlib/authdaemond
    root 7245 0.0 0.1 16424 696 ? S 00:44 0:00 /usr/libexec/courier-authlib/authdaemond
    root 7246 0.0 0.0 16424 416 ? S 00:44 0:00 /usr/libexec/courier-authlib/authdaemond
    root 7247 0.0 0.0 16424 416 ? S 00:44 0:00 /usr/libexec/courier-authlib/authdaemond
    sender 7249 0.0 0.3 92188 1744 ? S 10:05 0:00 sshd: [email protected]/0
    sender 7250 0.0 0.2 66076 1492 pts/0 Ss 10:05 0:00 -bash
    root 7428 0.0 0.9 33456 4936 ? S 00:44 0:00 /etc/authlib/authProg
    root 8147 0.0 0.9 73316 4796 ? Ss 00:51 0:00 /usr/local/apache/bin/httpd -k start -DSSL
    named 8712 0.0 0.8 184780 4336 ? Ssl 00:59 0:00 /usr/sbin/named -u named
    root 10166 0.0 0.4 25488 2308 ? SN 01:07 0:00 cpanellogd - sleeping for logs
    root 10178 0.0 1.6 44324 8316 ? Ss 01:07 0:01 tailwatchd
    root 10183 0.0 1.1 37228 5800 ? Ss 01:07 0:00 cPhulkd - processor
    root 10189 0.0 2.5 96520 12852 ? S 01:07 0:00 cpdavd - accepting connections on 2077 and 2078
    nobody 10418 0.0 0.7 73452 3596 ? S 01:13 0:00 /usr/local/apache/bin/httpd -k start -DSSL
    nobody 10419 0.0 0.7 73452 3596 ? S 01:13 0:00 /usr/local/apache/bin/httpd -k start -DSSL
    nobody 10421 0.0 0.7 73452 3596 ? S 01:13 0:00 /usr/local/apache/bin/httpd -k start -DSSL
    nobody 10422 0.0 0.7 73452 3596 ? S 01:13 0:00 /usr/local/apache/bin/httpd -k start -DSSL
    nobody 10423 0.0 0.7 73452 3596 ? S 01:13 0:00 /usr/local/apache/bin/httpd -k start -DSSL
    sender 10563 0.0 0.1 65608 972 pts/0 R+ 11:22 0:00 ps aux
    sender 10564 0.0 0.1 61000 548 pts/0 D+ 11:22 0:00 more
    nobody 10595 0.0 0.7 73452 3596 ? S 01:14 0:00 /usr/local/apache/bin/httpd -k start -DSSL
    mailnull 10828 0.0 0.2 64252 1220 ? Ss 01:16 0:00 /usr/sbin/exim -bd -q60m
    mailnull 10833 0.0 0.2 64256 1152 ? Ss 01:16 0:00 /usr/sbin/exim -tls-on-connect -bd -oX 465
    root 11003 0.0 0.2 93308 1344 ? Ss 01:18 0:00 pure-ftpd (SERVER)


    root 11005 0.0 0.1 91000 968 ? S 01:18 0:00 /usr/sbin/pure-authd -s /var/run/ftpd.sock -r /usr/sbin/pureauth
    root 11705 0.0 0.9 33456 4936 ? S 01:29 0:00 /etc/authlib/authProg
    root 25564 0.0 7.6 105972 39020 ? Ss 04:38 0:01 /usr/bin/spamd -d --allowed-ips=127.0.0.1 --pidfile=/var/run/spamd.p
    id --max-children=3 --max-spare=1
    root 25576 0.0 7.5 106420 38760 ? S 04:38 0:10 spamd child
    root 25790 0.0 2.6 95436 13300 ? S 04:40 0:00 cpsrvd - waiting for connections

  2. #2
    here is screenshot of top
    Attached Thumbnails Attached Thumbnails top.jpg  

  3. #3
    Join Date
    May 2009
    Location
    SLASH ROOT
    Posts
    853

  4. #4
    disabling some processes seem to free up the memory but the it fills up again. i restricted spamd child from 4 to 1 and it freed up some 100 megs but now they're gone.

    is it normal for fresh centos 5.3 + cpanel + csf on VMWARE having so many processes

    122 total, 1 running, 121 sleeping, 0 stopped, 0 zombie
    Mem: 510600k total, 499008k used, 11592k free, 10612k buffers

    i have similar setup on another vps with OPENVZ and there is much less process and system twice as less memory:

    55 total, 1 running, 53 sleeping, 0 stopped, 1 zombie
    Mem: 1048576k total, 242732k used, 805844k free, 0k buffers

  5. #5
    Join Date
    Oct 2006
    Location
    /usr/src/linux/
    Posts
    699
    Your VM is healthy and pretty much idle. OpenVZ containers do not cache memory, processes only use as much memory as they currently need. While xen, vmware other non-container based hypervisors and physical servers benefit from caching memory, the cached memory will become available if a process(es) request it.
    Issue free -m and see the numbers under cached and free.
    VPSnoc.com offers high quality Xen OpenVZ & Windows Virtual Private Servers at affordable prices.
    99.95% Uptime | 24/7/365 Support | Unmetered bandwidth.
    Follow us: twitter.com/VPSnoc

  6. #6
    Join Date
    Nov 2007
    Location
    India
    Posts
    843
    in linux servers all mem will be cached so there is no need to worry about it
    HostNotch Hosting Services 99.9% uptime Shared Hosting, Reseller Hosting
    yajur | Sales Team
    CPanel Hosting R1 Soft Offsite-Backup Great Uptime
    http://hostnotch.com sales @ hostnotch.com

  7. #7
    thanks a lot for your helpful replies. i will then proceed with moving my sites + do some reading on cached memory topic

  8. #8
    Join Date
    Apr 2007
    Posts
    3,513
    Programs like htop give alot better visual representation of memory that is in-use, free or cached for the less Linux savy admins and personally I love been able to have a quick look and see the state of the server.

    Also this command is great for showing memory usage:
    free -m
    - Buying up websites, side-projects and companies - PM Me! -

  9. #9
    total used free shared buffers cached
    Mem: 8107 7816 290 0 22 7264
    -/+ buffers/cache: 528 7578
    Swap: 4000 0 4000


    How We reduce memmory from SSH . Mu server load memmory verry high ? please help

    Processor #1 Vendor: GenuineIntel
    Processor #1 Name: Intel(R) Core(TM)2 Quad CPU Q9450 @ 2.66GHz
    Processor #1 speed: 2666.762 MHz
    Processor #1 cache size: 6144 KB

    Processor #2 Vendor: GenuineIntel
    Processor #2 Name: Intel(R) Core(TM)2 Quad CPU Q9450 @ 2.66GHz
    Processor #2 speed: 2666.762 MHz
    Processor #2 cache size: 6144 KB

    Processor #3 Vendor: GenuineIntel
    Processor #3 Name: Intel(R) Core(TM)2 Quad CPU Q9450 @ 2.66GHz
    Processor #3 speed: 2666.762 MHz
    Processor #3 cache size: 6144 KB

    Processor #4 Vendor: GenuineIntel
    Processor #4 Name: Intel(R) Core(TM)2 Quad CPU Q9450 @ 2.66GHz
    Processor #4 speed: 2666.762 MHz
    Processor #4 cache size: 6144 KB


    This is my server infor ;

Similar Threads

  1. Cpanel VPS - Plenty of free memory, but 'committed' memory exceeds VPS RAM. Why?
    By tnedator in forum Hosting Security and Technology
    Replies: 3
    Last Post: 06-12-2009, 02:56 PM
  2. Keep getting problematic httpd processes (9% of memory each)
    By Tristan Perry in forum Hosting Security and Technology
    Replies: 3
    Last Post: 03-23-2008, 05:59 AM
  3. Newbie Guide: How to monitor a server, CPU, Memory, processes and all the rest.
    By Rocco Antonioni in forum Hosting Security and Technology
    Replies: 0
    Last Post: 11-07-2006, 02:34 PM
  4. MySQL Multiple Processes using the same amount of memory/cpu HELP
    By hostbox in forum Hosting Security and Technology
    Replies: 2
    Last Post: 09-21-2006, 04:41 PM
  5. Force certain processes to use memory only?
    By runes911 in forum Hosting Security and Technology
    Replies: 2
    Last Post: 07-07-2005, 10:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •