compared with
Current by Ethan Lively
on Sep 03, 2019 09:07.

(show comment)
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (2)

View Page History
{kb-cause}
In this case, memory fragmentation can be responsible for our memory allocation request being denied by the Linux Kernel. There are not enough contiguous pages to allocate. This can happen on servers with longer uptimes, usually with high or varying usage by database engines and applications. {kb-resolution}
Rebooting The recommended solution is to reboot the protected machine system, which should allow the module to load before the memory becomes fragmented. NOTE: This behavior can return after a reboot if the memory becomes fragmented to a point where our memory allocation request is denied

*Additional Info*:
If rebooting the system is absolutely out of the question, it is also possible to work around this issue by compacting the memory and clearing the caches. This is only intended to be used as a last resort, as it can affect performance temporarily as resources are reloaded into the cache, and can cause high disk I/O if a high number of users or processes are suddenly accessing the disk while the cache is re-populated.

Compact memory with:

{code}# sync; echo 1 > /proc/sys/vm/compact_memory{code}

Clear the disk-cache with:

{code}# sync; echo 1 > /proc/sys/vm/drop_caches{code}

Where:

echo 1: Clears PageCache only
echo 2: Clears dentries and inodes
echo 3: Clears PageCache, dentries and inodes.

Start with level 1, as this option has the least impact, and only move up to higher levels if necessary.
WARNING : The 3rd option is not recommended for use in production. Please use caution when selection this option.

Lastly, restart the agent:

{code}# service cdp-agent restart{code}