Want faster Java startups in Fedora?
IBM contributed thing which is called class sharing. The thing is simple, you generate class cache which is then used when Java is starting up (and also shared across JVMs). Startups are faster.
How to use this (pretty old) feature? You re loking for -Xshare option:
$ java -X 2>&1 | grep share
-Xshare:off do not attempt to use shared class data
-Xshare:auto use shared class data if possible (default)
-Xshare:on require using shared class data, otherwise fail.
To generate the cache do this:
# java -Xshare:dump
It creates about 25 MB file: /usr/lib/jvm/java-1.7.0-openjdk-184.108.40.206.x86_64/jre/lib/amd64/server/classes.jsa
Although help screen shows OpenJDK should automatically use shared class cache when it is present, this does not work on my Fedora 17. So you need to make sure your app has -Xshare:on in the JVM options. This is a bug perhaps.
How much fast is it? Well, I did not test Eclipse or something like that as I dont use it, but it is measurable even for Hello World:
$ time java -Xshare:on -cp . HelloWorldApp
$ time java -Xshare:off -cp . HelloWorldApp
In Windows and MacOS systems, the cache is generated automatically after installation. I have filed a bug for Fedora to do the same: https://bugzilla.redhat.com/show_bug.cgi?id=878181
estuve leyendo en oracle que no es un bug, solo hay que tener permisos de escritura y ejecutar en el path el comando y voilá