Have an OpenVZ VPS/Linux Virtual Private Server and nothing works right?

A VPS Server I had just wasn't working right, code that I migrated there just wasn't working.  For example, it kept telling me the connection to the database was unsuccessful, halfway through iterating through results it already had.

Then I realized it wasn't my code.  I checked my /proc/user_beancounters and found this:

  cat /proc/user_beancounters
Version: 2.5
       uid  resource           held    maxheld    barrier      limit    failcnt
     2000:  kmemsize        2499074    3453079  268435456  268435456       2985
            lockedpages           0          8     999999     999999          0
            privvmpages       43361      87480    1024000    1024000          0
            shmpages            671       1647      65536      65536          0
            dummy                 0          0          0          0          0
            numproc              32         48     999999     999999          0
            physpages         10119      24142          0 2147483647          0
            vmguarpages           0          0    1024000    1024000          0
            oomguarpages      10119      24142       6144 2147483647          0
            numtcpsock            6         24    7999992    7999992          0
            numflock              8         12     999999     999999          0
            numpty                1          1     500000     500000          0
            numsiginfo            0          6     999999     999999          0
            tcpsndbuf         69316     380120  235713536  235713536          0
            tcprcvbuf         98304    1527656  235713536  235713536          0
            othersockbuf       8944     175584  235713536  235713536          0
            dgramrcvbuf           0       8380  235713536  235713536          0
            numothersock         12         32    7999992    7999992          0
            dcachesize       220365     274667 2147483646 2147483646          0
            numfile            1116       2025   23999976   23999976          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            numiptent             5          5        128        128          0

Notice the "failcnt" for "kmemsize" is 2985.  The value was too low, in this quote it had already been corrected and after that my PHP scripts were working fine.

When things don't make sense and aren't working properly, check your "beancounters" to make sure nothing is failing.

Also remember not to instantly blame your VPS Provider, lots of times people have these problems when running intensive scripts, applications, CPanel/Plesk and it's because your plan does not have enough RAM etc...

This should be something every admin/owner of a VPS checks routinely for inexplicable problems/timeouts with your applications in a VPS Server.

OpenVZ technology is the best for performance, but the settings must be just right to avoid problems, and you must make sure you have a plan that meets your needs.  There's no such thing as swapping, if you exceed your limits, connections drop, application/database calls fail without explanation.

So just remember to pick a VPS/Virtual Private Server plan that meets you needs and monitor the beancounters for any signs of failures.


Tags:

openvz, vps, linux, virtual, server, wasn, migrated, database, unsuccessful, iterating, proc, user_beancounters, uid, resource, maxheld, barrier, failcnt, kmemsize, lockedpages, privvmpages, shmpages, dummy, numproc, physpages, vmguarpages, oomguarpages, numtcpsock, numflock, numpty, numsiginfo, tcpsndbuf, tcprcvbuf, othersockbuf, dgramrcvbuf, numothersock, dcachesize, numfile, numiptent, quot, corrected, php, scripts, aren, beancounters, failing, instantly, provider, intensive, applications, cpanel, plesk, ram, etc, admin, routinely, inexplicable, timeouts, settings, meets, swapping, exceed, connections, failures,

Latest Articles

  • How high can a Xeon CPU get?
  • bash fix PATH environment variable "command not found" solution
  • Ubuntu Linux Mint Debian Redhat Youtube Cannot Play HD or 4K videos, dropped frames or high CPU usage with Nvidia or AMD Driver
  • hostapd example configuration for high speed AC on 5GHz using WPA2
  • hostapd how to enable and use WPS to connect wireless devices like printers
  • Dell Server Workstation iDRAC Dead after Firmware Update Solution R720, R320, R730
  • Cloned VM/Server/Computer in Linux won't boot and goes to initramfs busybox Solution
  • How To Add Windows 7 8 10 11 to GRUB Boot List Dual Booting
  • How to configure OpenDKIM on Linux with Postfix and setup bind zonefile
  • Debian Ubuntu 10/11/12 Linux how to get tftpd-hpa server setup tutorial
  • efibootmgr: option requires an argument -- 'd' efibootmgr version 15 grub-install.real: error: efibootmgr failed to register the boot entry: Operation not permitted.
  • Apache Error Won't start SSL Cert Issue Solution Unable to configure verify locations for client authentication SSL Library Error: 151441510 error:0906D066:PEM routines:PEM_read_bio:bad end line SSL Library Error: 185090057 error:0B084009:x509 certif
  • Linux Debian Mint Ubuntu Bridge br0 gets random IP
  • redis requirements
  • How to kill a docker swarm
  • docker swarm silly issues
  • isc-dhcp-server dhcpd how to get longer lease
  • nvidia cannot resume from sleep Comm: nvidia-sleep.sh Tainted: Linux Ubuntu Mint Debian
  • zfs and LUKS how to recover in Linux
  • [error] (28)No space left on device: Cannot create SSLMutex Apache Solution Linux CentOS Ubuntu Debian Mint