Making Sense of BeanCounters for OpenVZ - Simple Script/Program

Discussion in 'Web Hosting' started by MTUser2010, Jan 16, 2013.

  1. #1
    I had a VPS with a memory addon that never hit even 70% of available memory. So I deleted my memory addon and now the VPS crashes all the time due to memory errors. The control panel says I have 2GBs, but I am not sure that I believe it. (I have other VPSs with the same memory and configuration that host more sites that don't crash) Is there a simple program/script that I can install to convert beancounters into something I can understand in terms of memory available?

    I found this, but I don't have skills to convert this into something I can use, nor do I have any idea how to install it or run it:

    http://wiki.openvz.org/Human_readable_user_beancounters
     
    MTUser2010, Jan 16, 2013 IP
  2. Readymakers-sales

    Readymakers-sales Peon

    Messages:
    18
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    1
    #2
    What do you want exactly?
     
    Readymakers-sales, Jan 17, 2013 IP
  3. concerto49

    concerto49 Greenhorn

    Messages:
    83
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    10
    #3
    Do you have a VPS with the old "Burst" memory arrangement? It can cause all sorts of issues and generally use more memory. Look for the new range of VPS that use "VSwap" - this improves memory usage and is more efficient.

    Having said that the control panel likely reported your burst memory and not your true memory. Often hosts have 1GB memory and 1GB burst making 2GB. You are only certain to be able to use the 1GB not the 2GB. This may be your problem.
     
    concerto49, Jan 17, 2013 IP
  4. samirj09

    samirj09 Well-Known Member

    Messages:
    335
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    125
    #4
    The userbeancounters file is located at /proc/user_beancounters. This will show you the actual limits of your VPS container. The column you need to be worried about is the fail count . This column will show the number of times you have hit a particular limit.

    The link you provided can explain what each column means. You can SSH in as root and run the below command in order to view this files.

    cat /proc/user_beancounters

    Feel free to message if you need assistance interpreting any of that information.
     
    samirj09, Jan 22, 2013 IP