Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: swappiness recommendation (CORE-75650)

The swappiness parameter controls how often the Linux kernel moves processes out of physical memory and onto the swap disk. Because disks are much slower than RAM, if processes are moved out of memory too aggressively, it can lead to slower response times for system and applications.

The default value is usually 60. For better For best AppDynamics performance, the recommended value is 0 (zero)1.

To configure swappiness
  1. Check the current value for swappiness.

    Code Block
    /sbin/sysctl -a | grep swappiness

    As recommended, if the value is something other than 01, continue setting the value.  

  2. Set the swappiness parameter to zeroone.

    Code Block
    echo 01 > /proc/sys/vm/swappiness
  3. Edit the /etc/sysctl.conf file and add following line:

    Code Block
    vm.swappiness = 01