OpenVZ user_beancounters kmemsize failcnt Processes Timing Out/Doing Nothing/Zombie -

OpenVZ user_beancounters kmemsize failcnt Processes Timing Out/Doing Nothing/Zombie

cat /proc/user_beancounters produces the following:

kmemsize        1861537    5139870   12752512   12752512   26965041

Notice the failcnt "26965041", that is for kmemsize and at first it confused me.  The system had enough guaranteed and enough burst RAM available.  kmemsize is a variable indepedent of that, but who cars about the explanation right, let's just make things work.  I was installing CPanel and wondered why the install process was taking forever until I checked my beancounters:

The solution is to of course increase kmemsize, in many cases you'll want to double, triple or even quadruple it.  Also note it's bad that my barrier and limits are the same, so I've arbitrarily changed the limit in the example below.  I can't remember the consequences but I read certain processes will get killed if the server runs out of memory.

vzctl set vpsid --kmemsize $((1275251*4)):$((1875251*4)) --save

The above increased my kmemsize allowances by 4x and should keep everything good.  In my opinion tihs is a silly feature and should be more tuned/controlled by the guaranteed memory allocation in OpenVZ.

  • css responsive images
  • responsive table without changing much code solution
  • yum how to install old obsolete packages
  • PHP Howto Store Value of Included File Output Into Variable
  • PHP Migration from 5.3 to 5.4+ and dealing with deprecated functions
  • ffmpeg vidstab to stabilize video
  • userdel user userdel: cannot lock /etc/passwd; try again later.
  • mdadm how to mount inactive array
  • How to find and mount mdadm arrays automatically
  • M2Crypto.SSL.Checker.WrongHost: Peer certificate subjectAltName does not match host, expected, got
  • [Wed Sep 20 15:34:44 2017] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec) [Wed Sep 20 15:34:44 2017] [error] Init: Unable to read server certificate from file /www/ssl-certs/server.crt [Wed Sep 20 15:34:44 2017] [error] SSL Library Err
  • linux how to answer yes to copy
  • linux cp and mv will not overwrite due to alias!
  • ERROR 2006 (HY000) at line 567: MySQL server has gone away
  • vbulletin 4.2.5 after upgrading from 3.6 white screen fatal php errors
  • iptables v1.4.7: can't initialize iptables table `NAT': Table does not exist (do you need to insmod?) Perhaps iptables or your kernel needs to be upgraded.
  • Linux and FreeBSD how to set time and date
  • FreeBSD/OpenBSD OpenVPN Client error "Cannot allocate TUN/TAP dev dynamically"
  • kdenlive - No LADSPA plugins were found! Check your LADSPA_PATH environment variable. [producer_xml] failed to load transition "qtblend"
  • /usr/bin/supermin-helper exited with error status 1. To see full error messages you may need to enable debugging. See at /usr/bin/virt-list-partitions line 177.