When I run a JUnit test case in Eclipse, it takes 20 seconds just to launch JUnit itself.
In the Progress view it is at 87% for most of this time, stating: Launching: Starting virtual machine...
I have tried increasing the memory allocation to the vm in both eclipse.ini, and also in the Run Configuration for the unit tests (VM arguments: -Xms512m -Xmx1024m), but neither makes a difference.
I'm watching Windows Task Manager when I launch the unit test and I see a new java process get created with only 140K memory, it jumps up to about 20,000K just as JUnit finally starts.
So if I could see the new java process starting with the amount of memory I configured, I could at least rule out JVM memory as the cause of the slow launch. But I'm kind of stuck. I saw a recommendation somewhere to use this, but it also did not work: -Djava.net.preferIPv4Stack=true
Here's my eclipse.ini
-startup
plugins/org.eclipse.equinox.launcher_1.3.0.v20140415-2008.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.200.v20150204-1316
-product
org.eclipse.epp.package.php.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256m
--launcher.defaultAction
openFile
-vm
C:/Program Files/Java/jdk1.7.0_79/bin/javaw.exe
-vmargs
-Dosgi.requiredJavaVersion=1.7
-Xms512m
-Xmx1024m
-Djava.net.preferIPv4Stack=true