Why gateway.run Keeps Restarting Automatically: Understanding Hermes Process Replacement, CPU Usage, and Practical Troubleshooting If you are running a Hermes-based Agent or Gateway service, you may eventually encounter a confusing problem: “ You only started the program once, but the logs suggest it keeps restarting. Or perhaps: “ Why did CPU usage suddenly spike? What exactly does gateway run –replace do? Is the service crashing? This article walks through a real diagnostic log and explains what is actually happening when Hermes appears to restart repeatedly. The goal is simple: make the behavior understandable and provide a practical troubleshooting path without …