FG
💻 Software

Is it possible to preload JVM to make starting of little one-shot java applications faster?

Fresh6 days ago
Mar 15, 20263093 views
Confidence Score0%
0%

Problem

Expected algorithm: You start JVM without actual application (only telling it to load some jars), it loads and listens a socket and waits in a background. When you start the application ( ) it connects to the existing loaded JVM, loads additional jars (if any) and executes main class. just routes i…

Error Output

$ clojure prejvm.clj&
[1] 2883
$ nc 127.0.0.1 7711 <<< '{"mainclass" "test.Hello"}'
$ nc 127.0.0.1 7712
java.lang.ClassNotFoundException: test.Hello
…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Is it possible to preload JVM to make starting of little one-shot java applications faster?

Low Risk

Use Nailgun Server: Start it: Use it: It can be obtained with VimClojure: http://www.vim.org/scripts/script.php?script_id=2501

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment