I discovered that on my Ubuntu 16.04 VPS a process is getting killed due to CPU usage.

Running ulimit -t shows 86400.

systemctl show | grep LimitCPU shows


I talked to the provider support and they said they don't set any limits for the OpenVZ container.

I looked in /etc/systemd/system.conf and /etc/systemd/user.conf but I didn't find anything.

Any idea where this limit could be set? It's driving me mad, especially since I didn't add this limit and I have another VPS with same software & settings that doesn't have this limit.

  • What is the proof, that the process gets killed due to CPU usage? As a workaround you could renice the process or split the work in two if possible. – Tomáš Pospíšek Dec 15 '17 at 16:37
  • I saw in syslog systemd[1]: my.service: Main process exited, code=killed, status=24/XCPU The process needs to run uninterrupted and with normal priority. – Gaspy Dec 15 '17 at 16:40
  • ah, I see here: serverfault.com/questions/888289/… – Tomáš Pospíšek Dec 15 '17 at 16:46
  • Your VPS provider probably doesn't know what they're doing. This is just one more reason to avoid OpenVZ. – Michael Hampton Dec 15 '17 at 20:30
  • Possible, but I have another OpenVZ container, with the same provider, same Ubuntu version, pretty much the same software installed, just on a different datacenter, that does not have this limitation. – Gaspy Dec 15 '17 at 20:56

I think what you are looking for is here: https://openvz.org/Resource_shortage

Check if you have failcnt > 0 if you do this:

cat /proc/user_beancounters
  • Nope, failcnt is 0 for all items. – Gaspy Dec 15 '17 at 17:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.