I'm new to Java. I was reading about JVM warmup and understand that it refers to the time it takes for the JVM to find the hotspots and JIT these sections of the code.
I also understood that I'll have to run my tests a few hundred times in order to do.
But the things I do not understand are as follows:
How shall I determine the number of times a test should run before my JVM is fully warmed-up?
Does this change JVM to JVM? I mean is it possible that if I'm able to warm-up my JVM by running 1000 iterations then someone else might end up needing more or less?
Is running tests the only way to warm-up the JVM?
When should I warm-up the JVM? I mean the frequency. Should I do it every-time I'm stopping and starting my application or just once after rebooting my servers?
This is my first question here. I read the guidelines before posting. Still if there are any mistakes please suggest the edits.