Java 5 has a feature where the core class libraries are shared across JVM’s to reduce memory size and startup time. See:
http://java.sun.com/j2se/1.5.0/docs/guide/vm/class-data-sharing.html
When I tried to add the -Xshare:on JVM option to the startup of Tomcat 5.5 under MyEclipse 4.1.1, I get an error dialog on startup with the text:
“A configuration error occured during startup. Please verify the preference field with the prompt: An error has occurred while processing the shared archive file. Tool agent requires sharing to be disabled”
Thats in debug mode. In non-debug mode I get this on the console:
Error occurred during initialization of VM
Unable to use shared archive.
An error has occured while processing the shared archive file.
A jar file is not the one used while building the shared archive file.
Actually looking at the messages, it looks more like an Eclipse or Tomcat thing than a MyEclipse problem. But do you guys know of any workaround?
Startup time of tomcat or other app server is the biggest productivity drain when developing in Java, so any tricks to increase startup time are worth persuing.
Cheers,
Jon Nermut