Kafka Manager OutOfMemoryError : java heap space?

Kafka Manager OutOfMemoryError : java heap space?



Error:


[ERROR] a.a.ActorSystemImpl - Uncaught error from thread [kafka-manager-system-scheduler-1]: Java hea  space, shutting down JVM since 'akka.jvm-exit-on-fatal-error' is enabled for ActorSystem[kafka-manager-system]
java.lang.OutOfMemoryError: Java heap space


What is Kafka Manager: 

Kafka Manager is A tool for managing Apache Kafka. It supports the following :


  1. Manage multiple clusters
  2. Easy inspection of cluster state (topics, consumers, offsets, brokers, replica distribution, partition distribution)
  3. Run preferred replica election
  4. Generate partition assignments with option to select brokers to use
  5. Run reassignment of partition (based on generated assignments)
  6. Create a topic with optional topic configs (0.8.1.1 has different configs than 0.8.2+)
  7. Delete topic (only supported on 0.8.2+ and remember set delete.topic.enable=true in broker config) and many more.  You can download the source code from here


The default JVM heap sizes are ok when you start, but JVM do hit heap memory issues when load increases. To add more heap memory to kafka-manager process you need to pass these parameters in runtime.   


[root@kafka-manager]#bin/kafka-manager -J-Xms7g -J-Xmx7g

0 Comments