- InfraCoffee
- Posts
- πͺ So we built something better. A lot better.
πͺ So we built something better. A lot better.
What Used to Take 20 Minutes, Now Takes 2 Clicks
We designed a fully automated, secure, and cost-optimized heap dump retrieval system that transforms this manual process into a seamless developer experience.
Hereβs how it works:
π§ Developer triggers an AWS SSM Automation Document
β Inputs: ECS task ID, cluster name, and container nameπ Behind the scenes:
A temporary AWS Batch EC2 job is spun up
It runs
jcmd
inside the container to generate the heap dumpThe dump is uploaded directly to S3
A JIFA webapp container is booted with the dump mounted
A Cloudflare Tunnel securely exposes the JIFA UI
SSO authentication protects access
And here's the magic: the link auto-expires if the developer is inactive
Why this matters:
β No more manual toil for infra folks
π Secure and auditable access for developers
β‘ Fast, self-service debugging
πΈ Cost-efficient β powered by ephemeral infrastructure
π§ Designed with developer experience in mind
This has already saved us a ton of time and made our on-call life a lot less noisy.
If your team is still doing heap dumps manually, it might be time to rethink that. π
βοΈ Like what you're reading?
Subscribe to the newsletter to keep getting hands-on engineering stories, system design wins, and DevOps insights β all from the trenches.