Running elasticsearch-users cashes the pod

I am not sure what is wrong:

elasticsearch@elasticsearch-es-default-0:~$ bin/elasticsearch-users list
command terminated with exit code 137

Any param I give to this cli command crashes the pod. it is running on t3.medium aws using aws linux distro

Image: docker.elastic.co/elasticsearch/elasticsearch:8.17.4

seems it needed quite big ram to run, probably because of jvm. I had to leave 1gb of free ram in the pod to be able to run this.