Disabling Java JIT at runtime

Viewed 59

Is there a way/API to disable (or tune) the java JIT during execution, of a java program.

My use case is a code that is executed a large number of times, and after some time (let's say 10 seconds), I want to prevent the JIT from running, as we're seeing latency spikes related to JIT (from traces) on that specific code (or any code in the program if it's the only way).

I know one can disable it at start-up but I'm more looking for a way to interact with it at runtime : still getting the performance on already JITed code, but preventing further execution of the JIT compiler.

0 Answers
Related