Results 1 to 5 of 5
  1. #1

    Unhappy VPS often running slow or running out of memory

    Hi everyone,

    I'm still new at managing a VPS. I've been with Future Hosting since a month. Their customer service is spectacular. However, I have a problem...

    First, some stats about my VPS. I have their basic plan, unmanaged. 384MB of RAM, 20GB of storage, running CentOS 4. I have a Virtuozzo control panel, but I'm not using Plesk; I'm using Webmin instead. As for the software running on it, I have Apache 2, MySQL 5, PHP 5, Postfix, Dovecot, Webmin (as mentioned), BIND, SASLAuthD, Hamachi. My main Web site runs Drupal 5 and Gallery 2, both PHP apps too slow for my previous provider. (But really fast with my new provider!)

    My problem is I somehow always run out of memory. And my problems seems to start almost everyday, during the evening. Often, during that time, even the Virtuozzo panel is slow.

    Postfix is always the first one to give up. My mail can be working fine for the entire day, while all of the sudden, I can't send mail and when I check the status of Postfix, it says that it's not running. I try to restart it again, but often, memory still lacks, or it takes a long time to restart.

    During memory problems, even the simplest program, like "ls," won't work.

    I can't understand this. Is there anyone who had to deal with this before? There must be a memory leak, but where? If I can run fine all the servers named above fine for the entire day, why does it suddenly fail at the end of the day?

    It's really frustrating. This problem always ends up at me restarting my VPS. What's also annoying about that is after I restart my VPS, Apache won't run right away. I have to log on my VPS via SSH, add 127.0.0.1 to resolv.conf, restart Apache, then go and remove what I just added to resolv.conf. Then, finally, it works.

    Anyone has any idea about all this? Any help would be really, really appreciated. Thanks a lot in advance!

    Rémi

  2. #2
    Join Date
    Jun 2005
    Posts
    448
    Hi Remi,

    ssh to your VPS as root and type:

    cat /proc/user_beancounters

    and post the output here please. Did you ask your host for support on this?
    Have a question?

  3. #3
    Here goes:

    PHP Code:
    # cat /proc/user_beancounters
    Version2.5
           uid  resource           held    maxheld    barrier      limit    failcnt
           716
    kmemsize        8865855    8887948   11055923   11377049     423524
                lockedpages           0          0        256        256          0
                privvmpages       73512      73570      98304     104579          0
                shmpages           8485       8485      21504      21504          0
                dummy                 0          0          0          0          0
                numproc              81         81        240        240          0
                physpages         40521      40527          0 2147483647          0
                vmguarpages           0          0      98304 2147483647          0
                oomguarpages      41073      41079      98304 2147483647          0
                numtcpsock           27         27        360        360          0
                numflock             21         21        188        206          0
                numpty                7          7         16         16          0
                numsiginfo            0          0        256        256          0
                tcpsndbuf         13368      20052    1720320    2703360          0
                tcprcvbuf          2076       2768    1720320    2703360          0
                othersockbuf     312260     312260    1126080    2097152          0
                dgramrcvbuf           0        692     262144     262144          0
                numothersock        188        188        360        360          0
                dcachesize      1852872    1860334    3409920    3624960          0
                numfile            5687       5688       9312       9312          0
                dummy                 0          0          0          0          0
                dummy                 0          0          0          0          0
                dummy                 0          0          0          0          0
                numiptent            74         74        400        400          0 
    I didn't talk about this with my hosting provider. Since I believe it's a problem with the software I've installed on my VPS and my service is unmanaged, I don't think they can help me with this.
    Last edited by remi; 10-13-2006 at 07:58 PM. Reason: Formatting

  4. #4
    Join Date
    Dec 2004
    Location
    New York, NY
    Posts
    10,574
    Quote Originally Posted by remi
    Here goes:

    PHP Code:
    # cat /proc/user_beancounters
    Version2.5
           uid  resource           held    maxheld    barrier      limit    failcnt
           716
    kmemsize        8865855    8887948   11055923   11377049     423524
                lockedpages           0          0        256        256          0
                privvmpages       73512      73570      98304     104579          0
                shmpages           8485       8485      21504      21504          0
                dummy                 0          0          0          0          0
                numproc              81         81        240        240          0
                physpages         40521      40527          0 2147483647          0
                vmguarpages           0          0      98304 2147483647          0
                oomguarpages      41073      41079      98304 2147483647          0
                numtcpsock           27         27        360        360          0
                numflock             21         21        188        206          0
                numpty                7          7         16         16          0
                numsiginfo            0          0        256        256          0
                tcpsndbuf         13368      20052    1720320    2703360          0
                tcprcvbuf          2076       2768    1720320    2703360          0
                othersockbuf     312260     312260    1126080    2097152          0
                dgramrcvbuf           0        692     262144     262144          0
                numothersock        188        188        360        360          0
                dcachesize      1852872    1860334    3409920    3624960          0
                numfile            5687       5688       9312       9312          0
                dummy                 0          0          0          0          0
                dummy                 0          0          0          0          0
                dummy                 0          0          0          0          0
                numiptent            74         74        400        400          0 
    I didn't talk about this with my hosting provider. Since I believe it's a problem with the software I've installed on my VPS and my service is unmanaged, I don't think they can help me with this.
    The provider might be able to increase your kmemsize, it wouldn't hurt to put in a support ticket.

  5. #5
    Join Date
    Feb 2006
    Posts
    665
    Quote Originally Posted by layer0
    The provider might be able to increase your kmemsize, it wouldn't hurt to put in a support ticket.
    This was completed for him a few minutes ago. All of our existing VPS plans will have various changes to the QOS settings for increased performance over the next couple weeks.

    Please submit a ticket if you are still having issues with the VPS slowing down so we can look at it for you.
    http://www.futurehosting.com
    Managed, Unmanaged VPS, Dedicated Servers, CDN
    Available locations: Australia, Amsterdam, Detroit, London, Santa Clara, Miami

Posting Permissions

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