
I am using a dual-core XP machine with 4 GB of memory installed (but only 2.5 GB reported by the OS due to a 32-bit fact). I have been actively modifying the old JAVA application for at least a month using the latest Eclipse (editing, building and running) and Ant (another way to create and run). In the Eclipse configuration and build.xml we have the following JVM parameters: -Xmx1024M -Xms1024M -Xmn384M
. We have been using this configuration for many years.
I also have a batch file to run Eclipse with this option: -vmargs -Xmx768M
. This batch file has been with me for many years. (Now I changed to modify eclipse.ini to complete the setup.)
The day before yesterday I discovered that it was much slower when I used Ant to build and run my application (I often build it and often launch it during the modification process). I restarted my car before I went home. That night I connected to my car to finish some changes (I am a very good employee.) And found it to be slower. The next morning, " failed to start the Java virtual machine " when I launch our application using Ant.
I restarted my car. Then I could not start Eclipse with the same error. I have to modify vmargs to require only 512 MB of memory to run Eclipse. Ant build time increased from about 20 seconds to about 6 minutes. And I need to reduce the maximum memory for the JVM to
-Xmx512M -Xms512M
in the startup configuration of Eclipse and Ant build.xml to avoid errors.
Then I uninstall my 1.6u24 jdk / jre and installed 1.6u25. I reinstalled Eclipse. Scanned the entire computer with Trend Micro and found nothing.
Another machine that I usually connect to to do some testing has a similar result (slower). All other machines, including my work machine and my laptop, work perfectly with the same application and tools.
If I use Ant to create and run it, the build and launch process is very slow. I created two batch files to compile and run the application. They work fine. When compiling with Eclipse, it works fine. But I can not ask the JVM to require 1024 MB for my application in all cases now.
All other actions on my machine seem normal. VisualStudio and C # applications work as usual. My machine was rebuilt a few weeks ago due to a hard disk failure. Thus, there are not many useless things to slow down my car.
Can anyone help me figure out why the JVM on my machine changed its behavior? Hope this is not caused by a virus. Do you know everything that I can try before I call IT to rebuild my car?
thanks,
5YrsLaterDBA
source share