Memory configuration mismatch -> OOM
See original GitHub issueWhen scaling down consumers in my test I would expect the shareded queue brokers to buffer messages until consumer can catch up. That works as first, but quite soon brokers start to die due to an OOM situation.
Looking into the broker template I do see the following two parameters:
- description: Memory limits for container
name: BROKER_MEMORY_LIMIT
value: 512Mi
- description: Global max size for all addresses in broker. Cannot be larger than
a quarter of BROKER_MEMORY_LIMIT
name: GLOBAL_MAX_SIZE
value: 128Mb
Assuming the latter parameter targets the Java VM heap space this would be a problem because the startup script of the brokers already splits the BROKER_MEMORY_LIMIT
in half in order to compensate for JVM overhead:
See the startup log:
-Xms256m -Xmx256m -XX:+UseParallelGC …
So I think the default settings for BROKER_MEMORY_LIMIT
should be 1024Mi
instead.
Issue Analytics
- State:
- Created 5 years ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
I installed new ram - Alert! Memory configuration mismatch!
I installed the ram and followed all the steps I went onto my system and found out it said Installed memory (RAM) 6.00...
Read more >Linux OOM: Trying to understand memory statistics / mismatch ...
I am trying to understand why the OOM killer has reaped a process on a KVM virtual machine running with 1 gigabyte of...
Read more >memory configuration mismatch | Tom's Hardware Forum
Dear Readers, I have a Dell pc. Usually when i started it there was no problem. But now i get the problem memory...
Read more >R220 - nsupported memory configuration. DIMM mismatch ...
Hi, I got this error and I'm unable to solve it. Unsupported memory configuration. DIMM mismatch accross slots detected. Strike the F1 key...
Read more >7 Memory Configuration and Use - Oracle Help Center
Oracle recommends automatic memory configuration for your system using the ... This would include optimizer settings and bind variable mismatches.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ctron Ah sorry yes, you are right, 128MB for the rest of course. Clearly it would be useful if we could just leave global_max up to the broker 😃 (which I think it does if you set to -1). In any case, maybe we should update the defaults anyway, as I don’t think this little memory for Artemis is well tested.
I believe this is fixed in 0.26.3 and newer