Kafka issues when upgrade from 9.1.2 to 20.8.0

@BYK I created a new instance with 4 GB of RAM and 25 GB space. As you suggested, I installed i.e. 20.9.0 on my server. Initially, it was working fine but later on, Kafka started to consume a lot of memory. And finally, my server hung up and I event can’t ssh into my server.

The load/traffic on my server was very minimal as I was testing if this will work or not.
It was just receiving one or two events in hours.

As you can see in the following image, PID-1742 consuming memory around 25%, it increased to 30-35%, and then instance stopped working.

Following image shows what PID-1742 is.

Please let me know how can I limit the memory usage by kafka.
Thanks!

PS. I’m using latest on-promise setup from your github repo.