Hi, sometimes my eclipse IDE gets terminated or closed all of sudden with an error msg "JVM Terminated. exit code =1" (see attachment for more info).
can somebody tell me whats wrong with it?
iam using 64bit os on Intel core 2 duo processor with 4gb ram.
thanks
Vinod Kumar Nair
"Any fool can write code that a computer can understan. Good programmers write code that humans can understand."
If Eclipse is just crashing and you're really not told anything about what is wrong, you might want to increase the amount of memory allocated to the JVM in which Eclipse is running. Have a look at your eclipse.ini file (in the Eclipse installation directory) and see the -Xms and -Xmx options. The -Xms specified the minimum heap (memory) size, while the -Xmx spcifies the maximum heap size.
Perhaps you could bump up the maximum (although if your eclipse.ini has the maximum set to 512m as mine does, I can't imagine this is not already large enough).
Do you know which version of JVM you are using? Based on the error pop-up I would say that you are using a 32-bit version of the last JRE that was installed. You should make sure that you are using the very latest JVM, I recall when Vista came out that the JVM version available at that time had all kinds of issues with Vista.
One thing you could do is download and install the latest 32-bit JDK from the Sun web site and then edit the eclipse/eclipse.ini file to use that JDK. You can do that by adding these lines (change the JVM path for your system):
Peter Johnson wrote:-vm
c:/apps/java/jdk1.6.0_18/jre/lib/client/jvm.dll
That path (jre/lib/client) doesn't exist on my installed JDK (1.6.0_06). I have jre/bin/client though. Did this change between 1.5 and 1.6?
Also, I found it was important where these lines were placed within the eclipse.ini file. If I placed them at the beginning or at the end, they were not recognized. I had to place them near the top.
Is there a rule, like they must appear after this arg, but before that arg?
Mark E Hansen wrote:Perhaps you could bump up the maximum (although if your eclipse.ini has the maximum set to 512m as mine does, I can't imagine this is not already large enough).
I can't run Eclipse with anything less than a 1G max; I can't even imagine running it in 512M--my drives would thrash.