All Questions
Elasticsearch hard

Elasticsearch best practices suggest keeping the JVM Heap size slightly below 32GB (e.g., 30-31GB). What specific Java performance optimization is sacrificed if this threshold is crossed?

  1. A The JVM loses the ability to perform 'Thread-Local Allocation Buffers' (TLABs), increasing lock contention.
  2. B Compressed Ordinary Object Pointers (Compressed Oops): The JVM shifts from 32-bit to 64-bit memory addresses, potentially consuming significantly more RAM for the same object count and reducing effective cache utility.
  3. C The Garbage Collector (G1GC) loses the ability to perform 'Humongous Object' allocations in a single cycle.
  4. D The JIT compiler can no longer use SIMD (Single Instruction, Multiple Data) instructions for Lucene math.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions