问题
I have a Dockerized Scala Play app that I deploy to Heroku through their container registry. There seems to be a small memory leak in it. I'd like to troubleshoot this by using VisualVM but I am not able to connect VisualVM to the app in Heroku.
I have gone through these steps:
- I enabled the feature
runtime-heroku-exec
- I installed the
heroku-cli-java
When I run heroku java:visualvm
against my app, I get the following response:
Establishing credentials... error ▸ Could not connect to dyno! ▸ Check if the dyno is running with 'heroku ps'
P.S. I suspect a memory leak, because Heroku reports, "R14 - Memory quota exceeded."
Any idea on how to enable VisualVM in a dockerized Heroku app?
来源:https://stackoverflow.com/questions/46542020/visualvm-on-heroku-with-docker