0

I have a java process running which has a consumer running for kafka. It consumes from kafka and stores in Hbase. The problem we are facing is it slowly starts to consume lot of RAM of the instance and eventually stops.

We have already given options: -Xms6g -Xmx12g, which keeps the heap size till 12g but as I am seeing in jmc, it is taking around 12g of Tlab memory allocation, as seen below:

enter image description here

This is happening even after I have removed -XX:+UseTLAB from the java command. Is there some way to give max TLab size or disable it, or how to debug why this is accumulated so much.

Saurabh
  • 71,488
  • 40
  • 181
  • 244
  • 1
    Have you run this through a profiling tool like VisualVM or JProfiler? – Joe C Sep 22 '17 at 19:38
  • Why don't you want allocation in TLABs? Might be interesting to read https://stackoverflow.com/a/26358623/2471311 in case you are unfamiliar with TLABs. Could it be that your application has a memory leak? It might be interesting to look at the Allocation in New TLAB subtabs of that JMC page, and see what you are allocating and from which parts of your code. – Klara Sep 25 '17 at 11:49

0 Answers0