question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Memory configuration mismatch -> OOM

See original GitHub issue

When 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 1024Miinstead.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
lulfcommented, Aug 8, 2018

@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.

0reactions
lulfcommented, Mar 16, 2019

I believe this is fixed in 0.26.3 and newer

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found