Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
3.0 kB
4
Indexable
iam getting below while using aws kafka

2023-09-12 19:46:55.803  INFO 1498 --- [           main] o.a.kafka.common.utils.AppInfoParser     : Kafka version: 2.5.1
2023-09-12 19:46:55.803  INFO 1498 --- [           main] o.a.kafka.common.utils.AppInfoParser     : Kafka commitId: 0efa8fb0f4c
73d92
2023-09-12 19:46:55.803  INFO 1498 --- [           main] o.a.kafka.common.utils.AppInfoParser     : Kafka startTimeMs: 16945282
15801
2023-09-12 19:46:55.806  INFO 1498 --- [           main] o.a.k.clients.consumer.KafkaConsumer     : [Consumer clientId=consumer
-hobs-group-tibgenericeventGroup-1, groupId=hobs-group-tibgenericeventGroup] Subscribed to topic(s): tibgenericevents
2023-09-12 19:46:56.234  INFO 1498 --- [           main] t.c.TIBGenericEventConsumerConfiguration : Started TIBGenericEventCons
umerConfiguration in 5.58 seconds (JVM running for 6.077)
java.lang.OutOfMemoryError: Java heap space
Dumping heap to java_pid1498.hprof ...
Heap dump file created [41226209 bytes in 0.206 secs]
2023-09-12 19:46:56.690 ERROR 1498 --- [ntainer#0-0-C-1] essageListenerContainer$ListenerConsumer : Stopping container due to a
n Error

 

java.lang.OutOfMemoryError: Java heap space
        at java.nio.HeapByteBuffer.<init>(HeapByteBuffer.java:57) ~[na:1.8.0_362]
        at java.nio.ByteBuffer.allocate(ByteBuffer.java:335) ~[na:1.8.0_362]
        at org.apache.kafka.common.memory.MemoryPool$1.tryAllocate(MemoryPool.java:30) ~[kafka-clients-2.5.1.jar!/:na]
        at org.apache.kafka.common.network.NetworkReceive.readFrom(NetworkReceive.java:113) ~[kafka-clients-2.5.1.jar!/:na]
        at org.apache.kafka.common.network.KafkaChannel.receive(KafkaChannel.java:447) ~[kafka-clients-2.5.1.jar!/:na]
        at org.apache.kafka.common.network.KafkaChannel.read(KafkaChannel.java:397) ~[kafka-clients-2.5.1.jar!/:na]
        at org.apache.kafka.common.network.Selector.attemptRead(Selector.java:678) ~[kafka-clients-2.5.1.jar!/:na]
        at org.apache.kafka.common.network.Selector.pollSelectionKeys(Selector.java:580) ~[kafka-clients-2.5.1.jar!/:na]
        at org.apache.kafka.common.network.Selector.poll(Selector.java:485) ~[kafka-clients-2.5.1.jar!/:na]
        at org.apache.kafka.clients.NetworkClient.poll(NetworkClient.java:550) ~[kafka-clients-2.5.1.jar!/:na]
        at org.apache.kafka.clients.consumer.internals.ConsumerNetworkClient.poll(ConsumerNetworkClient.java:262) ~[kafka-clients-2.5.1.jar!/:na]

iam using below one in application.properties file
kafka.servers.bootstrap=b-2.sitkafkacluster.mxb3zy.c2.kafka.ap-south-1.amazonaws.com:9098,b-1.sitkafkacluster.mxb3zy.c2.kafka.ap-south-1.amazonaws.com:9098,b-3.sitkafkacluster.mxb3zy.c2.kafka.ap-south-1.amazonaws.com:9098,b-4.sitkafkacluster.mxb3zy.c2.kafka.ap-south-1.amazonaws.com:9098,b-5.sitkafkacluster.mxb3zy.c2.kafka.ap-south-1.amazonaws.com:9098,b-6.sitkafkacluster.mxb3zy.c2.kafka.ap-south-1.amazonaws.com:9098,b-7.sitkafkacluster.mxb3zy.c2.kafka.ap-south-1.amazonaws.com:9098,b-8.sitkafkacluster.mxb3zy.c2.kafka.ap-south-1.amazonaws.com:9098