In the FMS Logs, loglines similar to the following are repeated frequently:
2012-07-19 10:49:15.289 WARN [Data-3-thread-5] com.quest.nitro.service.derivation.DerivationService - Unable to evaluate the following derivation: DerivationCalculation for "UsedPhysicalMemory" on 'JavaJVMOperatingSystem' calculated by (scope.get("totalPhysicalMemory") - #freePhysicalMemory#) DATA_DRIVEN
com.quest.nitro.service.sl.interfaces.scripting.ScriptingException: com.quest.nitro.service.sl.interfaces.scripting.ScriptAbortException: java.lang.NullPointerException: Cannot invoke method minus() on null object
This error is appearing in the logs because there is no null check being performed.
To prevent the error from occurring, you can modify the derived metric definition for UsedPhysicalMemory:
change
---------------------------
scope.get("totalPhysicalMemory") - #freePhysicalMemory#
---------------------------
to
------------------------
totalMem = scope.get("totalPhysicalMemory");
if (totalMem != null)
return totalMem - #freePhysicalMemory#
---------------------------
For information regarding editing derived metrics, please see the guide below:
http://edocs.quest.com/foglight/564/doc/Core/AdministrationConfiguration/FineTuning_Ref.104.49.php
© 2023 Quest Software Inc. ALL RIGHTS RESERVED. Feedback Terms of Use Privacy