Need Clarification on memoryMaxUsage and memoryMinStdev | Community
Skip to main content
October 16, 2015
Solved

Need Clarification on memoryMaxUsage and memoryMinStdev

  • October 16, 2015
  • 8 replies
  • 1154 views

Hi,

We got following error on our author instance after which the server shuts down.

13.08.2015 18:41:45.057 *ERROR* [jackrabbit-pool-10] com.day.crx.core.ResourceMonitor stdev of memory usage samples is 0.0, which is lower than 1. shutting down

13.08.2015 18:41:45.066 *ERROR* [ClosingThread] com.day.crx.core.ResourceMonitor More than 98 usage and stdev less than 1.

Need to know more about how standard deviation of memory usage is calculated here, and why this value should be more than 2 (default value)?

How can we analyze this OutOfMemory situation?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sham_HC

stddev is Minimum standard deviation. The low memory monitor takes 100 memory samples per second and uses these to calculate the standard deviation from the average memory consumption over time.   All the points provided from opkar should help & answer your query. If you are not able to follow those file a support ticket so that support guy can help to understand better.

[1]  https://helpx.adobe.com/experience-manager/kb/crx-disk-and-memory-monitoring-shutdown-too-aggresively.html

8 replies

Adobe Employee
October 16, 2015

Have a look at this article: https://helpx.adobe.com/experience-manager/kb/AnalyzeMemoryProblems.html

What version of AEM are you running? How much system memory do you have? How much memory have you allocated to AEM? Can you share your start parameters?

 

Memory problems should not normally be an issue, could there be memory leaks in your code? Heap dumps help you investigate this. 

Regards,

Opkar

Adobe Employee
October 16, 2015

If you are using AEM5.6 here is an article for Monitoring Memory Usage: https://docs.adobe.com/docs/en/cq/5-6-1/core/administering/monitor-diskspace-memory.html

October 16, 2015

Have gone through all the articles. But no success. Need to know how this what stdev <1 signify ?

We are using AEM 5.6.1

8 GB of space have been allocated to AEM.

Sham_HC
Sham_HCAccepted solution
Level 10
October 16, 2015

stddev is Minimum standard deviation. The low memory monitor takes 100 memory samples per second and uses these to calculate the standard deviation from the average memory consumption over time.   All the points provided from opkar should help & answer your query. If you are not able to follow those file a support ticket so that support guy can help to understand better.

[1]  https://helpx.adobe.com/experience-manager/kb/crx-disk-and-memory-monitoring-shutdown-too-aggresively.html

Adobe Employee
October 16, 2015

How much physical memory does your machine have?

Have you enabled -XX:+HeapDumpOnOutOfMemoryError

You really need to analyse your application code: http://cq-ops.tumblr.com/post/58841321992/how-to-determine-the-cause-of-a-cq-memory-leak

October 16, 2015

@ Opkar We were having -XX:+HeapDumpOnOutOfMemoryError parameter in the start script, but later we removed that.

@ Sham HC We have implemented the resolution mentioned in the article. But then also this condition occur. Is stdev < 1 directly related to memory leaks?  

October 16, 2015

Physical memory is 24GB

Adobe Employee
October 16, 2015

Your instance shouldn't be shutting down with that much memory, it is either your codebase or some actions being performed on your system.

Are there specific actions you are doing when you run out of memory: Large DAM content uploads?

Do you have "-XX:+HeapDumpOnOutOfMemoryError", if so what did it tell you? Have you already created heap dumps and analysed them?