In one of the previous articles I’ve shown you how to deploy your JAR-based Java application to AWS Beanstalk. This could be the happy…
How to Obtain Heap Dump of AWS Beanstalk Java Application
In one of the previous articles I’ve shown you how to deploy your JAR-based Java application to AWS Beanstalk. This could be the happy ending but in real world obstacles appear every day. One of them is greedy memory of Java application. Luckily it is pretty simple to get a heap dump of application running on AWS Beanstalk. Only thing you need is a SSH access.
Following script will SSH to the Beanstalk server and as a user webapp obtain the heap dump of the application and then download it to your current directory:
Once you have the heap dump downloaded you can use any memory analyser such a VisualVM to discover the problem.