In my case, it was Windows defender. I added the Java process (not the process I was starting from my Java program) to the Windows Defender Process exclusion list, and saw the process invocation go from 5000ms to 500ms.