[ 
https://issues.apache.org/jira/browse/KAFKA-9702?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17056738#comment-17056738
 ] 

Nishant Ranjan commented on KAFKA-9702:
---------------------------------------

When I execute proper code on linux server with approx 500,000/600,000 then 
memory shoots to 6GB and then I gets OOM (memory constraints).

Above was sample from laptop on windows (kind-off "Hello World" of problem).

To identify the memory issue, I just wrote 3 lines :

while(true) {

consumerRecords = consumer.poll(1000) ;

consumerRecords = null;

}

Even with above MAT is showing probable leak. Maybe, I am missing some Kafka 
option but there is some memory issue.

> Suspected memory leak
> ---------------------
>
>                 Key: KAFKA-9702
>                 URL: https://issues.apache.org/jira/browse/KAFKA-9702
>             Project: Kafka
>          Issue Type: Bug
>          Components: consumer
>    Affects Versions: 2.4.0
>            Reporter: Nishant Ranjan
>            Priority: Major
>
> I am using Kafka consumer to fetch objects from Kafka topic and then persist 
> them in DB.
> When I ran, eclipse MAT for memory leaks, its giving following :
> 53 instances of *"java.util.zip.ZipFile$Source"*, loaded by *"<system class 
> loader>"* occupy *22,33,048 (31.01%)* bytes.
> Also, my observation is that GC is not collecting objects.
> Please let me know if more information is required.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to