I am writing a command line utility in Java (or probably in another JVM-based language). The problem is JVM start-up time. JVM starts slower than Python and Ruby, for instance.
How to make JVM stat faster? Can I load JVM "in advance" (in Linux and Windows) somehow so that it should not be loaded every time I run my utility in command line?
解决方案
Nailgun is probably the best solution - it keeps a running JVM instance can then be called by your commands (using a super-lightweight C client).
As an alternative or additional option, you might want to try upgrading to Java 7 if you haven't done so already - there have been quite a lot of startup time enhancements.