Thursday, 18 April 2019

How to resolve Out of memory: kill process issue of our EC2 server by Raj Gupta

If we are getting  out-of-memory error in the system log similar to the one shown below.


[115879.769795] Out of memory: kill process 20273 (httpd) score 1285879 or a child [115879.769795] Killed process 1917 (php-cgi) vsz:467184kB, anonrss:101196kB, file-rss:204kB




Root Cause:-  Exhausted memory:- (extremely tired) not able to take further load

Solution:-

1. If our instance type is Amazon EBS-backed:-

Do one of the following:


  • Change to larger or a memory-optimized instance type.


Stop the instance --> Modify the instance to use a different instance type -->  Start the instance again.



  • Reboot the instance to return it to a nonimpaired status. The problem will probably occur again unless you change the instance type. 



2. If our instance type is Instance store-backed :-

Do one of the following:


  • Terminate the instance after creating an AMI  and launch a new instance from that, specifying a larger or a memory-optimized instance type. 




  • Reboot the instance to return it to an unimpaired status. The problem will probably occur again unless you change the instance type. 


1 comment:

  1. Hello everyone , here’s your opportunity for you to achieve your dreams of being a multi million dollar rich through trading , I once loss all I got through trading but was fortunate to come across a woman with great virtue and selfless heart (Mary ) i was introduce to her masterclass strategy while searching online which has revived me of all my losses and made me gain more and more . With her unique strategy you are entitled to daily signals and instant withdraw ,be rest assured of getting a refund of all your loss investment with any platform that has denied you in one way or the other in getting your money . Mrs Mary masterclass strategy is simply the best for beginners and those that are finding it difficult to succeed through trading she’ll help you with just a simple step . Email her ( maryshea03 @ Gmail .com) WhatsApp +1 562 384 7738 . Remember this is absolutely free!!!

    ReplyDelete