Enabling the use of real-time JVM monitoring tools like jconsole and VisualVM can be extremely beneficial when troubleshooting issues. These tools work by enabling a JMX/RMI communication channel to the JVM.
These are typically thought of as local development tools, but they can also be used on remote CF containers running Java. In this article, I’ll show you how to enable JMX/RMI to your remote Cloud Foundry container.
Continue reading “CloudFoundry: Enabling Java JMX/RMI access for remote containers”
Java thread and heap dumps are valuable tools for troubleshooting local development, but they can also be used on remote CF containers running a JVM. In this article, we’ll go through various method of gathering this data from a Cloud Foundry container and then tools for analyzing this data.
Now matter how uniform your environments, whether using Cloud Foundry stemcells/containers, configuration management tools, or Docker images, there are always real-world issues that show up only in certain environments (especially production!). There are unique corner cases that get exposed by end user experimentation, unexpected thread locking, generational memory issues, etc… and thread and heap dump analysis tools can assist.
Continue reading “CloudFoundry: Java thread and heap dump analysis on remote containers”