Vps problem(crashes every 2-3 days)

Discussion in 'Site & Server Administration' started by AdsInfluencer, Apr 24, 2009.

  1. #1
    Hi im on a 512 mb vps the memory usage is normally 62% and cpu is close to that.
    well the host says the problem is the swap file is 200mb

    Here is what the host says
    I'm not closing it down for over use, you are. I can increase the ram at a rate of $25 per 256mb per month.

    Viewing current usage of resources, you are about 200mb into swap (disk based memory) which is very bad if depended on for long periods of time, for short term it is fine to get over that hump, but not day to day 24/7 usage.

    So should i increase the ram?
    Is the problem what he says?
    he also said if i increase it by 512 mb he will give me another cpu to use in vps
     
    AdsInfluencer, Apr 24, 2009 IP
  2. eFishy

    eFishy Guest

    Messages:
    213
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi,
    If you have 512mb RAM and there is 62% in use there should be 0mb used in SWAP.
    The point of SWAP is there if the memory gets full, it can move (aka SWAP) files from the memory (RAM) where programs are run, to the SWAP space where idle program can stay providing virtual extra memory keeping your system alive.

    Is your memory 512mb dedicated or Burst?
    $25 also sounds like alot just for 256mb more!

    Can you go in ssh and copy your output from "top" and also "free -m" that will give us a better idea.
    Who are you hosted with? are they only limiting you to 1cpu? we provide 4 as do most.
     
    eFishy, Apr 24, 2009 IP
  3. quad3datwork

    quad3datwork Peon

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    There are times a system saturates the RAM, uses SWAP, but not letting go of SWAP and still shows up in SWAP usage.

    Either 1) Reboot or 2) find out what app(s) chews up all the RAM in first place. Number #2 can be done easily with a simple shell script.

    Other kernel parameter you can tune is the "swappiness", see http://www.novell.com/coolsolutions/feature/18990.html.

    $25 to upgrade extra 256MB is a little steep.
     
    quad3datwork, Apr 24, 2009 IP
  4. AdsInfluencer

    AdsInfluencer Well-Known Member

    Messages:
    400
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    120
    #4
    The platform is cPanel 11.24.4-R35075 - WHM 11.24.2 - X 3.9
    CENTOS 5.3 i686 xen on rhsccp02

    Im getting about 100k raws per day
    The thing is im running on a website known as paid to click so its very intensive
    Loads of mails are sent each day over 10k-20k more in the future

    1091 mysql 0

    15.6

    35.3 /usr/sbin/mysqld --basedir=/ --datadir=/var/lib/mysql --user=mysql --pid-file=/var/lib/mysql/rhsccp02.hostigation.com.pid --skip-external-locking
    4922 root 0

    8.2

    0.8 lfd - sleeping
    16386 root 0

    2.0

    6.3 /usr/local/cpanel/whostmgr/bin/whostmgr2 ./top
    16384 nobody 0

    1.6

    1.5 /usr/local/apache/bin/httpd -k start -DSSL
    16382 nobody 0

    1.4

    1.4 /usr/local/apache/bin/httpd -k start -DSSL
    16110 nobody 0

    1.4

    1.5 /usr/local/apache/bin/httpd -k start -DSSL
    16347 nobody 0

    1.4

    1.5 /usr/local/apache/bin/httpd -k start -DSSL
    16061 nobody 0

    1.2

    1.6 /usr/local/apache/bin/httpd -k start -DSSL
    16149 nobody 0

    1.2

    1.6 /usr/local/apache/bin/httpd -k start -DSSL
    16103 nobody 0

    1.1

    1.6 /usr/local/apache/bin/httpd -k start -DSSL
    16350 nobody 0

    1.1

    1.5 /usr/local/apache/bin/httpd -k start -DSSL
    16349 nobody 0

    1.1

    1.5 /usr/local/apache/bin/httpd -k start -DSSL
    16135 nobody 0

    1.1

    1.6 /usr/local/apache/bin/httpd -k start -DSSL
    16385 root 0

    1.0

    1.3 whostmgrd - serving 89.138.161.209
    16341 nobody 0

    1.0

    1.4 /usr/local/apache/bin/httpd -k start -DSSL
    16358 nobody 0

    1.0

    1.5 /usr/local/apache/bin/httpd -k start -DSSL
    16204 nobody 0

    1.0

    1.5 /usr/local/apache/bin/httpd -k start -DSSL
    16130 nobody 0

    1.0

    1.5 /usr/local/apache/bin/httpd -k start -DSSL
    16100 nobody 0

    1.0

    1.5 /usr/local/apache/bin/httpd -k start -DSSL
    16348 nobody 0

    0.9

    1.5 /usr/local/apache/bin/httpd -k start -DSSL
    16211 nobody 0

    0.9

    1.5 /usr/local/apache/bin/httpd -k start -DSSL
    15462 nobody 0

    0.9

    1.6 /usr/local/apache/bin/httpd -k start -DSSL
    16344 nobody 0

    0.8

    1.5 /usr/local/apache/bin/httpd -k start -DSSL
    16142 nobody 0

    0.6

    1.5 /usr/local/apache/bin/httpd -k start -DSSL
    16213 nobody 0

    0.6

    1.5 /usr/local/apache/bin/httpd -k start -DSSL
    16383 nobody 0

    0.5

    1.4 /usr/local/apache/bin/httpd -k start -DSSL
    4610 root 0

    0.1

    0.2 top
    79 root -5

    0.1

    0.0 [kswapd0]
    16328 root 0

    0.1

    1.4 whostmgrd - serving 89.138.161.209
    1 root 0

    0.0

    0.0 init [3]
    2 root -

    0.0

    0.0 [migration/0]
    3 root 19

    0.0

    0.0 [ksoftirqd/0]
    4 root -

    0.0

    0.0 [watchdog/0]
    5 root -5

    0.0

    0.0 [events/0]
    6 root -5

    0.0

    0.0 [khelper]
    7 root -5

    0.0

    0.0 [kthread]
    9 root -5

    0.0

    0.0 [xenwatch]
    10 root -5

    0.0

    0.0 [xenbus]
    16 root -5

    0.0

    0.0 [kblockd/0]
    17 root -5

    0.0

    0.0 [cqueue/0]
    21 root -5

    0.0

    0.0 [khubd]
    23 root -5

    0.0

    0.0 [kseriod]
    80 root -5

    0.0

    0.0 [aio/0]
    6559 root 0

    0.0

    0.1 dovecot-auth
    6566 dovecot 0

    0.0

    0.1 pop3-login
    6567 dovecot 0

    0.0

    0.1 pop3-login
    6568 dovecot 0

    0.0

    0.3 imap-login
    6569 dovecot 0

    0.0

    0.3 imap-login
    8765 root 0

    0.0

    0.0 [pdflush]
    12962 root 0

    0.0

    0.4 cpsrvd - waiting for connections
    4570 root 0

    0.0

    0.2 -bash
    4568 root 0

    0.0

    0.1 su -
    4505 tim 0

    0.0

    0.2 -bash
    4503 tim 0

    0.0

    0.3 sshd: tim@pts/0
    4494 root 0

    0.0

    0.5 sshd: tim [priv]
    2184 root 0

    0.0

    0.0 /bin/sh
    2039 root 0

    0.0

    0.0 /usr/sbin/portsentry -tcp
    1904 root 0

    0.0

    0.0 crond
    1896 root 0

    0.0

    0.0 /usr/sbin/pure-authd -s /var/run/ftpd.sock -r /usr/sbin/pureauth
    1894 root 0

    0.0

    0.0 pure-ftpd (SERVER)
    1612 mailnull 0

    0.0

    0.1 /usr/sbin/exim -tls-on-connect -bd -oX 465
    1608 mailnull 0

    0.0

    0.1 /usr/sbin/exim -bd -q60m
    6558 root 0

    0.0

    0.1 /usr/sbin/dovecot
    1062 root 0

    0.0

    0.0 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/lib/mysql/rhsccp02.hostigation.com.pid
    1049 root 0

    0.0

    0.1 /usr/sbin/sshd
    996 dbus 0

    0.0

    0.0 dbus-daemon --system
    982 root 0

    0.0

    0.0 klogd -x
    979 root 0

    0.0

    0.0 syslogd -m 0
    797 root -5

    0.0

    0.0 [kjournald]
    796 root -20

    0.0

    0.0 [loop0]
    632 root -5

    0.0

    0.0 [kmpathd/0]
    292 root -4

    0.0

    0.0 /sbin/udevd -d
    265 root -5

    0.0

    0.0 [kauditd]
    244 root -5

    0.0

    0.0 [kjournald]
    221 root -5

    0.0

    0.0 [kpsmoused]
    16388 root 0

    0.0

    0.1 /bin/ps -ewwo pid,user,nice,pmem,pcpu,command
    20300 root 0

    0.0

    4.6 /usr/bin/spamd -d --allowed-ips=127.0.0.1 --pidfile=/var/run/spamd.pid --max-children=3 --max-spare=1
    20437 root 0

    0.0

    4.5 spamd child
    20785 root 0

    0.0

    1.4 /usr/local/apache/bin/httpd -k start -DSSL
    20794 root 0

    0.0

    0.5 /usr/local/apache/bin/httpd -k start -DSSL
    30561 root 0

    0.0

    0.0 [pdflush]
    31319 root 19

    0.0

    0.2 cpanellogd - sleeping for logs
    31338 root 0

    0.0

    0.9 tailwatchd
    31345 root 0

    0.0

    0.1 cPhulkd - processor
     
    AdsInfluencer, Apr 24, 2009 IP
  5. fiso400

    fiso400 Peon

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Try To Contact The Provider
     
    fiso400, Apr 24, 2009 IP
  6. AdsInfluencer

    AdsInfluencer Well-Known Member

    Messages:
    400
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    120
    #6
    I did i got this massage back
    well first he says im over using my service which makes no sense as im using 68% of memory and 18% of swap normally

    and i got this massage

    Since I am, seeing a flurry of support again from you today, all related to you overloading the server as it is configured, I am offering you two options

    Upgrade by a minimum of 256mb or no more support and your service will be cancelled at the end of the paid period.
     
    AdsInfluencer, Apr 24, 2009 IP
  7. FortressDewey

    FortressDewey Peon

    Messages:
    45
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Unfortunately, that's pretty normal.

    Have you thought about upgrading to a small dedicated server?
    The following would be a very good starter dedi:
    Atom 1.6
    2 gig ram
    1 x 150
    This should cover your specs with no problem.

    Good luck.
     
    FortressDewey, Apr 24, 2009 IP
  8. AdsInfluencer

    AdsInfluencer Well-Known Member

    Messages:
    400
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    120
    #8
    well i got 2 cpu cores (100% under my control ) xen system
    and 1 gm ram
    nor sure its worth the move
     
    AdsInfluencer, Apr 24, 2009 IP
  9. sandeeppai

    sandeeppai Peon

    Messages:
    23
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Can you please let me know how many account you have in cpanel also try the command ps auxfw|sort -nr|grep -v 0.0 or ps auxfw|grep -vE '0.0|0.1' this will show the services using up most for the cpu and memory on a server

    You may find more monitoring commands in my blog
    http://maxlabs.blogspot.com/2009/04/very-useful-linux-monitoring-commands.html

    Hope this helps
     
    sandeeppai, Apr 24, 2009 IP