How to start JVM faster?

Possible duplicate:
How to speed up the launch of Java VM (JVM)?

I am writing a command line utility in Java (or, possibly, in another JVM language). The problem is the start time of the JVM. For example, the JVM runs slower than Python and Ruby.

How to make JVM stat faster? Can I load the JVM “in advance” (on Linux and Windows) one way or another so that it does not load every time I run my utility on the command line?

+5
source share
3 answers

For Windows, there is a Java Quick Starter that comes with a standard JRE installation.

http://www.java.com/en/download/help/quickstarter.xml

+5
source

Nailgun, , - JVM-, ( C).

Java 7, - .

+5

To download the JVM in advance, you can use Drip . It stores the new JVM in reserve with the correct path and other JVM parameters so you can quickly connect and use it as needed, and then throw it away. The dropper hashes the JVM parameters and saves information on how to connect to the JVM in a directory with a hash value as its name.

+3
source

All Articles