Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Kafka CPU busy with GC

avatar
Contributor

Anyone has seen kafka broker running into GC related CPU high ? We see it being 100%. And, we have no load on kafka. And, we see the following activity going on throughout that time :

[GC (Allocation Failure) 4.651: [ParNew: 272640K->7265K(306688K), 0.0277514 secs]272640K->7265K(1014528K), 0.0281243 secs] [Times: user=0.03 sys=0.05, real=0.03 secs]

There is a ticket here : https://issues.apache.org/jira/browse/KAFKA-2627

Heap memory setting on broker : java -Xmx1G -Xms1G -server -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -XX:+CMSScavengeBeforeRemark -XX:+DisableExplicitGC

1 ACCEPTED SOLUTION

avatar
Super Guru

@Manoj Ramakrishnan

You should try to reduce the heap to the minimum required and also use g1gc. This is due to a GC tuning issue.

View solution in original post

1 REPLY 1

avatar
Super Guru

@Manoj Ramakrishnan

You should try to reduce the heap to the minimum required and also use g1gc. This is due to a GC tuning issue.