I have a simple Java 1.8 Web Application, that queries my database and displays the results with some other simple functions (insert/update).
From time to time I get this heap space error but I have no clue how to debug it. I've added some more memory but it does not help.
Are there any tools or commands for linux shell that I could use to monitor what classes/methods consume the most memory?