HHVM stopped frequently

Posted November 23, 2016 1.5k views

Thanks for read my problem, and sorry for my bad english.

I have a server using Centos, this server running Nginx + HHVM as an engine for Laravel 5.2. For 2-3 months ago, this server running well. But now, the HHVM always stopped very frequently. For 3 untill 4 hours, so i need to start the service again. What should i do?


These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

There could be many reason, we’ll check one of them now.
As you need to start service again, it could be that app is killed because it ran out of memory.

To check that, let’s look at logs. Open system logs with text editor:

  • sudo nano /var/log/syslog

If you see OOM or Out of Memory entries for your app, it means that app got killed because it ran out of memory.
To fix it, you have 2 possibilities - Add Swap space or Upgrade your Droplet to bigger one.
If you want to go with Swap, How To Add Swap Space on Ubuntu 16.04 will help you.

If that’s not a problem, we can look at other logs but start with this and report results. :)

by Justin Ellingwood
One of the easiest way of increasing the responsiveness of your server and guarding against out of memory errors in your applications is to add some swap space. In this guide, we will cover how to add a swap file to an Ubuntu 16.04 server. <$>[warning] [label...