Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

eclipse crash with "JVM terminated. Exit code=1"

843829Oct 24 2005 — edited Jul 20 2009
sometimes eclipse-gtk 3.1 crash with following error:
//----------------------------
JVM terminated. Exit code=1
/opt/jdk1.5.0_05/bin/java
-jar /usr/lib/eclipse-3.1/startup.jar
-os linux
-ws gtk
-arch x86_64
-launcher /usr/lib/eclipse-3.1/eclipse-gtk
-name Eclipse-gtk
-showsplash 600
-exitdata 1d000f
-vm /opt/jdk1.5.0_05/bin/java
-vmargs
-jar /usr/lib/eclipse-3.1/startup.jar
/---------------------------------------------------
hs_er_pid.log file :
//--------------------------------------------------------------
OS:Gentoo Base System version 1.12.0_pre9

uname:Linux 2.6.13-gentoo-r2 #1 Thu Oct 6 11:36:43 Local time zone must be set--see zic manua x86_64
libc:glibc 2.3.5 linuxthreads-0.10 (floating stack)
rlimit: STACK 8192k, CORE 0k, NPROC 4093, NOFILE 1024, AS infinity
load average:0.02 0.29 0.22

CPU:total 1 amd64 3dnow

Memory: 4k page, physical 508292k(8352k free), swap 500464k(500204k free)

vm_info: Java HotSpot(TM) 64-Bit Server VM (1.5.0_05-b05) for linux-amd64, built on Aug 26 2005 15:00:58 by java_re with gcc 3.2.2 (SuSE Linux)
//-------------------------------------------------------------------

there i post full hs_err_pi.log file
http://pastebin.com/403889

I use gentoo x86_64 with 2.6.13-gentoo-r2 kernel
glibc version: glibc-2.3.5-r2
gcc 3.4.4

java version "1.5.0_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_05-b05)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_05-b05, mixed mode)

any ideas? how do fix this problem?

Comments

843829 Nov 16 2005
Have you received an answer to this? if yes please mail me this at rajesh.shinde@wipro.com . I am also having this problem.
843829 Nov 16 2005
Just to pile on, I see this error every 10 or so times I start Eclipse 3.1.1 with JSE 5.0_4 under Windows XP SP2.
843829 Nov 16 2005
Just to pile on, I see this error every 10 or so
times I start Eclipse 3.1.1 with JSE 5.0_4 under
Windows XP SP2.
I suspect that your crash is probably different from the original poster's crash. The original poster is
using the 64 bit vm (see the line: Java HotSpot(TM) 64-Bit Server VM) which I'm not sure you're
using. If you are using the 64bit vm then the crash is probably the same. There is a known
bug in the 64 bit vm that causes Eclipse crashes. See http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5060628

This fix will be in either update 6 or 7 of 1.5.

The bug here is specific to 64bit versions of the vm. So the original poster I expect you can work
around this by using the 32bit vm ( .e.g. -client ).

To the poster having a problem on windows if this is 32bit vm then we'd need more info to try and
figure out what is wrong (the error logs would be a good start).
843829 Dec 25 2005
pls send me the answer to the subject question
843829 Feb 3 2006
Intresting...
I'm experiencing the same type of problem.
I've been testing 3 different jre/sdk for x86_64, 1.4, 1.5 and 1.6 (mustang), and all of them crashes att the same place. Where it crashes for me is when I'm going to import "Existing projects into workspace" and clicking on the button to browse. I have been trying this on both Eclipse 3.1 and 3.2 with all the thre JVM versions above.

JVM for x86 works very well on the Eclipse x86 version.

So until someone solves this, I and the rest of us have to use the 32bit versions instead.

I hope that the final release of jre1.6 will have solved this problem. I read that Blackburn's J2SE v1.4.2-03 had solved a Eclipse crash problem on AMD64. I haven't test it yet.
843829 Oct 14 2006
I have that crash too,when I am using jsp to upload a file.But if I copy that file under the tomcat webapp directory,it works OK.I do not know the reason.This is the code:
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<FORM METHOD=POST ENCTYPE="multipart/form-data" ACTION="accept_uploaded_file.jsp">
File to upload:
<INPUT TYPE=FILE NAME="upfile"><BR>
<INPUT TYPE=SUBMIT VALUE="upload">
</FORM>
</body>

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.io.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
<%
   try{
   InputStream in=request.getInputStream();
   File f=new File("/root/workspace/web_java/WebContent/","a.file");
   FileOutputStream o=new FileOutputStream(f);
   byte b[]=new byte[10000000];
   int n;
   while((n=in.read(b))!=-1){
   o.write(b,0,n);
   }
   o.close();
   in.close();
   }catch(IOException e){}
   out.print("The file has been uploaded.");
 %>
</body>
</html>
Anyone who knows the reason would be great help!
843829 Oct 23 2006 — edited on Oct 23 2006
I installed Eclipse Workbench IDE in my local (linux) directory (~/Desktop/eclilpse) and it worked great! However, I had to move it to /usr/share/eclipse as "root" for other reasons but the darn thing didn't work after that. It terminated with the save error described in this link-topic.

I noticed I could start it as "root" but not as a non-root user so it had to be a priviledge or access problem. After an hour of browsing the internet and talking to Mr. Bozo, we both realized that Eclipse was not able to access its startup.jar file. So I defined the below links

% cd /usr/bin
% ln -s /usr/share/eclipse/eclipse eclipse
% ln -s /usr/share/eclipse/startup.jar startup.jar

and everything worked. Yeah baby!

My Eclipse IDE files are saved in /usr/share/eclipse. The /usr/bin is defined in my $PATH. I defined $JAVA_HOME to the location where I installed Java at /usr/lib/j2sdk1.4-sun. I also modified my eclipse.ini file to reserve more memory resourses as recommended by Mr. Bozo.

Hope this helps!

Message was edited by:
luppie
843829 Jan 6 2007
Hi,

I have the same issues as well. Here are my parameters from one of the logs.

In this case eclipse just crashes all over the place (randomly).

The same thing when I run maven.


#
# An unexpected error has been detected by HotSpot Virtual Machine:
#
# SIGSEGV (0xb) at pc=0x000000342f40cc88, pid=16458, tid=46912496234112
#
# Java VM: Java HotSpot(TM) 64-Bit Server VM (1.5.0_10-b03 mixed mode)
# Problematic frame:
# C [libgobject-2.0.so.0+0xcc88] g_object_get_qdata+0x18
843829 Apr 20 2007
Hey Guys.
I introduce myself as Sharma,Sugam from TrentLott GeoSpatial and Research center, Mississippi,USA.
I have found the solution of your problem
"eclipse crash with "JVM terminated. Exit code=1".
Please follow the steps as.
1)download jre any version( as I used -jre1.5.0_07) in C:/ drive.
2) download eclipse in C:/ drive only with the help of Google.com .You
can download any version higher then jre version.I
recommend "eclipse-SDK-3.2.1- win32".
3)This will give you the Zip file of this eclipse .
4)Install WinZip in your machine ,if you do have that priorly.
5) Extract the files from the zipped eclipse folder by right click on that
and click on " Extract files in eclipse-SDK-3.2.1"
6) Now you will see the icon , navy blue round ball, just popping up and
here you go.
I appreciate if have any question to ask.
Please send the e-mail at sharmasugam@aol.com
843829 May 30 2007
Each time i work in myeclipse it gets terminated after few minutes with an error msg .....

JVM Terminated Error code 1
<some JVM specific properties here>

I m using myeclipse 5.1.0 GA with eclipse 3.2 , Tomcat 5.5 and JDK 1.5

Anybody having any Idea how to fix this problem ....plz do reply .....Its urgent
843829 Oct 5 2007
I had the same issue with JDK 1.4.2. Once i changed the path setting to point to JDK 1.5, the issue was resolved.

Hope this helps !

Ravi
843829 Oct 8 2007
where did you update the links? did you use terminal or in eclipse? what exact steps did you follow because I have no idea how you included the paths that you mentioned.
843829 Feb 7 2008
The problem seems to be with SUN's 64bit JAVA6 JVM .. Only in linux ? I am using IBM's 64bit SDK/JVM everything works fine
843829 Apr 21 2008
just install everything that pops up when search for eclipse with synaptic and it will works, at least it did for me (had the error before all adds)
843829 May 5 2008
I think this problem is with latest version of eclipse. I had the same issue with verion 3.3.x. Then I downloaded 3.1.1 version, everything works fine now
843829 May 9 2008
I have the same problem, as with 64bit Linux and with 32 bit Linux. I am using the latest Open Suse 10.3 on both the machines.
I am working with Slackware12.0 and Slackware 11.0, but with them I had no problem at all.
Maybe some one can tell me something about it?.
The Eclipse environment seems very slow, then it crashes, especially while saving, asking to close the workbench.
843829 May 27 2008
This was also driving me nuts until I looked in the eclipse.ini file in the eclipse installation folder. Somehow the line

--launcher.XXMaxPermSize256M

had been split into two lines

--launcher.XXMaxPermSize
256M

Correcting this. eliminated the problem. I've no idea who/what caused the error, maybe a bug in the options handler. Any one know?
843829 May 27 2008
JohnWMuir wrote:
This was also driving me nuts until I looked in the eclipse.ini file in the eclipse installation folder. Somehow the line

--launcher.XXMaxPermSize256M

had been split into two lines

--launcher.XXMaxPermSize
256M

Correcting this. eliminated the problem. I've no idea who/what caused the error, maybe a bug in the options handler. Any one know?
I think you might need that to be
XXMaxPermSize=256M
rumour has it it used to work without the "=".
843829 Jul 31 2008
Yeah, I just had this problem. I tried changing the XXMaxPermSize from 256 to 512, and then eclipse would always crash when it started. You need to follow "tschodt" suggestion, by adding an "=" after changing the value. cheers
843829 Aug 12 2008
I am trying to launch eclipse (stworkbench) in my Fedora 9 machine, but I am getting an error template saying as below :

JVM terminated. Exit code=127
/usr/bin/java
-Xms40m
-Xmx256m
-jar /opt/STM/STLinux/host/stworkbench/./startup.jar
-os linux
-ws gtk
-arch x86
-launcher /opt/STM/STLinux/host/stworkbench/./stworkbench
-name Stworkbench
-showsplash 600
-exitdata 16800b
-vm /usr/bin/java
-vmargs
-Xms40m
-Xmx256m
-jar /opt/STM/STLinux/host/stworkbench/./startup.jar


can anyone help me out in this please..? or should I contact STLinux??

Please help me

Regards,
Kurumbudel
843829 Aug 12 2008
Kurumbudel wrote:
I am trying to launch eclipse (stworkbench) in my Fedora 9 machine, but I am getting an error template saying as below :

JVM terminated. Exit code=127
/usr/bin/java
What output do you get from
/usr/bin/java -version
843829 Sep 3 2008
Try editing your eclipse.ini, removing the line "-Xshareclasses:singleJVM,keep", and then restarting. Worked for me.
843829 Sep 30 2008
eclipse crash with "JVM terminated. Exit code=1" - I have this same error and resolved with pointing at the right jdk version when starting eclipse such as:
eclipse -vm /full/path/to/java/bin/java

dle.
843829 Sep 30 2008
or you can search for answer on this page:
http://wiki.eclipse.org/IRC_FAQ#I_just_installed_Eclipse_on_Linux.2C_but_it_does_not_start._What_is_the_problem.3F

Dung Le.
843829 Oct 13 2008
Solution : Just rename ur eclipse.exe to eclipse1.exe and restart ur server. It will work.
843829 Feb 9 2009
Actually this will work only because in this case the "eclipse.ini" file won't be read... If you will rename the ini file (to "eclipse1.ini") also you'll get the same error. You can just set XXMaxPermSize to 128 instead of 256 (why? I don't know.. but that worked for me)
843829 Jun 10 2009
searching in forums i found a way
I created a shortcut:
eclipse -vm /usr/lib/jvm/java-6-sun/bin/java

(i work on ubuntu 9.04, and i had installed “sun-java6-jre” in Synaptic)

my eclipse stopped when i rebuild the index, now after rebuild the index everything is going ok
843829 Jul 16 2009
Just in case you have not fixed this:

It seems to me that an easy fix is to simply change anything involved in the startup process:
(a) rename eclipse.exe to eclipse1.exe (this has been mentioned above)
or (b) change some settings in the eclipse.ini (e.g. slightly change the value for -Xmx)
or (c) change the path to the VM used by eclipse.exe via the "-vm <pathToVM>" parameter

I don't know the exact cause why this works, but any of these changes worked for me, no (un)installation required.
791266 Jul 20 2009
I'm locking this zombie thread so that it won't get resurrected again.

Kaj
1 - 29
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Aug 17 2009
Added on Oct 24 2005
29 comments
4,581 views