To avoid Java Out of Memory errors and to preserve the integrity of our repository, we elected to enforce -Dcrx.memoryMaxUsage=90 in our start script. This effectively shuts down the repository when the ResourceMonitor detects that the mean memory usage is over 90%. We wanted to find out what caused the memory usage to exceed 90% so we had a cron job scheduled at every half-hour to monitor the memory usage by querying the /system/console/memoryusage page and getting the total memory score. Surprisingly, the memory score seems to be consistently in the range of 50-60%. If the memory usage score is healthy, why would ResourceMonitor detects mean memory usage that is over 90%? What is being called by ResourceMonitor? None of the error, request or access logs suggest any activities that would cause memory usage to exceed the defined thresholds.
Solved! Go to Solution.