HerokuJoe KutnerAnnouncement
In the Cloud, No One Can Hear Your OutOfMemoryError
Summary
Heroku introduces Heroku Exec and Language Runtime Metrics to improve production monitoring, inspection, and debugging for applications running on dynos. Heroku Exec creates secure TCP and SSH tunnels for SSH sessions, port forwarding, remote debugging, and diagnostic tools, while the Heroku Java CLI integrates jmap and VisualVM. A synthetic Java memory-leak example shows VisualVM tracking heap growth and jmap producing a downloadable HPROF heap dump that Eclipse Memory Analyzer identifies as Servlet-held FakeLeak objects. The metrics feature, enabled through the Heroku Metrics buildpack on paid Standard-or-above dynos, displays heap, non-heap, and garbage-collection activity in the dashboard through a Java agent using Prometheus; JVM-language support is generally available, while Go support is in beta.
Context
Applications deployed in the cloud cannot be inspected or repaired directly, so debugging depends on instrumentation, telemetry, and remote controls included before deployment. The post addresses the need for production monitoring and tools for diagnosing issues such as a Java memory leak.
Approach / What changed
Heroku adds Heroku Exec for secure TCP and SSH tunnels into dynos, integrates Java diagnostic tools into the Heroku CLI, and provides Language Runtime Metrics through the Heroku Metrics buildpack. The metrics use a Java agent with Prometheus and expose runtime data in the Heroku Dashboard.
Takeaways
Heroku Exec enables SSH sessions, port forwarding, remote debugging, and diagnostic tools through secure TCP and SSH tunnels into a running dyno.
VisualVM can show that memory-leak growth is confined to heap memory, while jmap downloads an HPROF heap dump for analysis in Eclipse Memory Analyzer.
Language Runtime Metrics report heap, non-heap, and garbage-collection activity; JVM-language support is generally available and Go support is in beta.
Source and freshness
- Source
- heroku.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.