How to check heap size for a process on Linux

后端 未结 5 700
清歌不尽
清歌不尽 2020-12-01 08:24

I was writing some code and it kept crashing. Later after digging the dumps I realized I was overshooting the maximum heap limit (life would have been easier if I had added

5条回答
  •  南笙
    南笙 (楼主)
    2020-12-01 09:22

    You can find the process id of your webapp/java process from top. Use jmap heap - to get the heap allocation. I tested this on AWS-Ec2 for elastic beanstalk and it gives the heap allocated. Here is the detailed answer Xmx settings in elasticbean stalk through environment properties

提交回复
热议问题