Troubleshooting Containerized Java Applications via JMX

When developing JEE applications these days we not only deploy ‘em as containerized apps but (at least in my teams) also use containers for local development. One issue I was confronted with the other day was a performance bug with one of our apps. Back in the days I’d have just fired up VisualVM to connect to the local process causing trouble - but now, the process to attach to doesn’t run locally anymore. ...

May 2, 2020 · 6 min · schoeffm

Access Host From Inside a Docker Container

This is more a bookmark than a post - but I’d like to write it down explicitly since everytime I need this I have to google it (and cutting through the false positivies sucks). From 18.03 onwards our recommendation is to connect to the special DNS name host.docker.internal, which resolves to the internal IP address used by the host. This was taken from the docker-for-mac documentation were you can find more details....

January 1, 2020 · 1 min · schoeffm