Expand my Community achievements bar.

Guidelines for the Responsible Use of Generative AI in the Experience Cloud Community.
SOLVED

Memory leak

Avatar

Level 2

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?

1 Accepted Solution

Avatar

Correct answer by
Administrator

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

View solution in original post

2 Replies

Avatar

Employee Advisor

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

Avatar

Correct answer by
Administrator

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