Each thread
in java gets its own memory (buffer) in Eden space (It is a memory region in
young generation).
Whenever
new object creation request comes to JVM, JVM creates the object in Thread
local allocation buffer (TLAB). TLAB improves the performance, if no TLAB, then
the thread should acquire the lock, take the memory location and release the
lock, which is less efficient.
How to
enable TLAB?
‐XX:+UseTLAB
How to
set TLAB size?
‐XX:TLABSize
No comments:
Post a Comment