Knowledgebase

help me with vps error

Posted by rgblogs, 04-11-2016, 11:33 AM
Please help me what to do? I have zero idea Out of memory: The process “php” was terminated because the system is low on memory. In order to avoid a system crash due to low memory, the kernel terminated the process named “php” with the PID “32200”. I get many emails with different PID numbers.

Posted by MightWeb-Greg, 04-11-2016, 11:45 AM
I hate to state the obvious but it sounds like you're out of memory? Let us know what is running on this server? cPanel? What are the specs of the VPS?

Posted by rgblogs, 04-11-2016, 11:50 AM
Yes, I have WHM and cPanel. Linux Centos; 2 GB RAM and 2 CPU What is solution??

Posted by HWH-Jessica, 04-11-2016, 12:15 PM
Some php scripts are either too resource hungry or may be you have too many applications running, which require more memory. A simple fix would be to restart apache. Also identify the php script causing the problem and correct the issue. Otherwise, upgrade RAM in the server if you or your sysadmin finds that the server demands more memory.

Posted by JoshLoe, 04-11-2016, 12:22 PM
You're out of memory. Run the command : free -m It should show you how much memory you have, used and free.

Posted by kevincheri, 04-11-2016, 01:56 PM
You'll need to upgrade your RAM if this is occurring frequently. There may be some resource adjusting/server optimization possibility as well, so ask your host for that. IMHO, 2GB cPanel server is a basic configuration, as cPanel itself consumes nearly 800MB of RAM. Its not necessarily the PHP processes are consuming all of the RAM, but there can be other less important task you may be able to disable.

Posted by Savio13, 04-11-2016, 10:22 PM
Look at optimizing your scripts , then upgrading your RAM

Posted by Vini_AlphaNine, 04-11-2016, 10:36 PM
You memory limit is low or you need to addon additional RAM from your provider. You can set the memory limit in /etc/php.ini or located somewhere at /usr/local/bin/php.ini and yes if you optimize your script then your script will utilize minimum memory as required.

Posted by net, 04-12-2016, 12:21 AM
Either you upgrade your ram or optimize your vps to avoid sucking up all the ram.

Posted by webdesign82, 04-13-2016, 12:49 PM
You can also try to reduce the number of concurrent processes of Apache. See the Apache config file for that and limit the number of max processes to a lower value, e.g. 20. You should also greatly reduce the max. number of seconds a script is allowed to run, because scripts might start, then run, run, run, run while they should long be done. Some may hang in endless loops and consume resources.



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
Raid 1 vs Single Disk (Views: 629)
peerblock for centos (Views: 585)
AtMail Issues (Views: 588)


Language:

Client Login

Email

Password

Remember Me

Search