Portal Home > Knowledgebase > Articles Database > how to increase virtual memory size? Help needed


how to increase virtual memory size? Help needed




Posted by sharmaine1111, 08-14-2009, 11:07 AM
I've been receiving notifications like this: Excessive resource usage Resource: Virtual Memory Size Exceeded: 114 > 100 (MB) Can you please teach me how I can increase VM size? It's a dedicated server with centos and cPanel installed My tweak settings is set to 256MB

Posted by iTom, 08-14-2009, 12:23 PM
It is a php error? if so look in the /etc/php.ini file. or apache /etc/httpd/conf/httpd.conf file.

Posted by sharmaine1111, 08-15-2009, 07:20 AM
nevermind, I figured that I had to adjust a setting in CSF. But how does ulimit -v work? I set it to to like 250MB but when i checked virtual is still showing as unlimited

Posted by nomankhn, 08-15-2009, 08:19 AM
Best practice is to create a swap partition that will use for virtual memory, swap partition is always double of your RAM. here are some steps 1. make a partition with fdisk and change its type -> 82 2. reload partition table with partprobe. 3. if your swap partition is /dev/sda3, you type mkswap to make it swap parition #mkswap /dev/sda3. 4. turnon swap #swapon /dev/sda3. 5. define in /etc/fstab like that it effect next reboot wont required to active it again. /dev/sda3 swap swap defaults 0 0

Posted by supiiik, 08-15-2009, 05:03 PM
Edit /etc/csf/csf.conf Find this PT_USERMEM = "100" and change it to 256 or 0(to disable notifications) PT_USERMEM = "0"



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Windows Reseller (Views: 708)


Language: