We set up a command action from a rule to run on our Linux Foglight Mangement Server (FMS). The Command action only runs after the FMS has been restarted. After about a day the following error message is reported in the Management Server log when a command action is attempted:
java.io.IOException: Cannot run program "sh": java.io.IOException: error=12, Cannot allocate memory).
The FMS host is low on swap space.
SOLUTION:
Check the swap space configuration and increase the swap space if it is low.
The "free -m" and "swapon -s" commands can be used to gather information on the swap space on a linux host.
© ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center