4

The HotSpot compiler learns about your code as your process runs. Is there any way to configure it to persist what it's learned, so that the next time the process starts (assuming no jars or class files have changed), it doesn't need to start from scratch?

AlexWien
  • 28,470
  • 6
  • 53
  • 83
Bill
  • 44,502
  • 24
  • 122
  • 213

1 Answers1

2

No.

There are other JVMs which can do this, though. Oracle JRockit, for example, allows you to save profiling information and compiled code. Excelsior JET also does this.

Jörg W Mittag
  • 363,080
  • 75
  • 446
  • 653
  • JRockit does not do this. We had a prototype of this many years ago, but the feature was eventually dropped for lack of resources and not providing enough benefit. – staffan Feb 17 '13 at 18:16
  • Excelsior JET goes one step further: it enables the developer to precompile the entire app, possibly together with the standard library classes, into a native executable. For details, see http://www.excelsior-usa.com/jetoverview.html (Disclaimer: I work for Excelsior) – Dmitry Leskov Apr 20 '13 at 10:22