Java is a wonderful/powerful/versatile language/platform. It’s very easy to debug under normal conditions but when it’s deployed in a remote environment this might be more challenging. Especially at scale.
This is true for a simple Java application or for a server application running on tomcat, spring, JavaEE or pretty much anything else out there. We need a way to observe live applications and debug issues without interrupting user flows.
This is where Lightrun steps in to make this process trivial and secure without risking your uptime. Notice that this short tutorial uses a simple prime main calculation app for demonstration purposes. But you can use pretty much any application with Lightrun. The one constraint is that it’s “long running”, so a hello world application will end too quickly and we won’t have time to attach to it.
Here is the code to the prime main application we’ll use in this tutorial: https://gist.github.com/shai-almog/e400134f01decc9639230a6a99d51eab