Memory leak | Community
Skip to main content
New Participant
September 16, 2017
Solved

Memory leak

  • September 16, 2017
  • 2 replies
  • 1296 views

I have the following problems: server runs slowly, in the logs you see a lot of entries cache:resizeAll  and there are occasional out of memory. What can be the cause of these problems?

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 kautuk_sahni

Adding some more information here:

"CacheManager: resizeAll" entries in Log: When functionality is developed for AEM WCM, JCR Sessions may be opened (comparable to opening a database connection). If the opened sessions are never closed, your system may experience following symptoms:

• The system gets slower and slower Miscellaneous

• You have a lot of "CacheManager: resizeAll" entries in the log file (the number behind size=... is the number of caches; each session opens a few caches)

• From time to time the system runs out of memory (after a few hours, days, or weeks - depending on the severity)

Read this:- Troubleshooting Scenarios

Must Read:- Analyze Unclosed Sessions

Helpx on Memory problem:- Analyze Memory Problems

~kautuk

2 replies

kautuk_sahni
kautuk_sahniAccepted solution
Employee
September 18, 2017

Adding some more information here:

"CacheManager: resizeAll" entries in Log: When functionality is developed for AEM WCM, JCR Sessions may be opened (comparable to opening a database connection). If the opened sessions are never closed, your system may experience following symptoms:

• The system gets slower and slower Miscellaneous

• You have a lot of "CacheManager: resizeAll" entries in the log file (the number behind size=... is the number of caches; each session opens a few caches)

• From time to time the system runs out of memory (after a few hours, days, or weeks - depending on the severity)

Read this:- Troubleshooting Scenarios

Must Read:- Analyze Unclosed Sessions

Helpx on Memory problem:- Analyze Memory Problems

~kautuk

Kautuk Sahni
joerghoh
Employee
September 17, 2017

Can you provide some of these messages?

And an out-of-memory can have many causes: Heap size to low for the workload (especially important when you do heavy asset ingestion) or memory leaks. You should analyze the gc logs and check if the heap usages spikes or slowly increases to a point where the instance runs into OOM.

Jörg