Wednesday 5 June 2019

Thread Local Allocation Buffers


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

Previous                                                 Next                                                 Home

No comments:

Post a Comment