VisualVM on Heroku (with Docker)

╄→尐↘猪︶ㄣ 提交于 2019-12-24 11:08:43

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!