9a701fe610ab41a145e84d467f463d10e419f06a
By:
mataberat

HHVM stopped frequently

November 23, 2016 138 views
Nginx CentOS

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?

Thanks,

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. :)

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...
Have another answer? Share your knowledge.