LyashenkoGS/analytics4github

Insufficient memory on EC2 during a Jenkins builds. Adjust the infrastructure

Closed this issue · 3 comments

The application is deployed on an EC2 micro instance (1GB Ram).
Currently EC2 serves

screen shot 2017-03-11 at 9 23 45 pm

To fix:

  • disable MongoDB UI
  • if this will not help -> disable a MongoDB

To prevent such things:

  • Setup Jenkins email notifications on a build fail
  • Setup Zabbix based monitoring. Zabbix server and agents installation process should be automated by ansible playbooks.
  • Research possibility to switch to AWS container service. Consider a need in a MongoDB, preferably installed on an EC2.
    A screenshot after a build fail due to insuficcient memmory size that shows the application ~200mb and jenkins ~300mb RAM

screen shot 2017-03-17 at 9 48 25 pm

Fixed the build. There was no running MongoDB, nor mongo-express. Usage of the memory by Jenkins process was about 34%. I restarted the process and rerun the build manually

Jenkins notifications have been set-up using extended e-mail notifications plugin.

Not relevant any-more because of switching to own server with proper amount of resources