Skip to main content



      Home
Home » Newcomers » Newcomers » issue with jvm options -Xms128m -Xmx1024m
issue with jvm options -Xms128m -Xmx1024m [message #266189] Mon, 10 November 2008 16:14 Go to next message
Eclipse UserFriend
Originally posted by: techluver007.gmail.com

Hello,
I'm starting eclipse.exe as "eclipse.exe -vmargs -Xms128m -Xmx1024m" and
getting JVM Terminated . Exit code=-1 message and eclipse quits. any idea
why I have this issue?
I'm using eclipse 3.4 and jre 1.5.0_06.

Thanks!
Re: issue with jvm options -Xms128m -Xmx1024m [message #266190 is a reply to message #266189] Mon, 10 November 2008 16:24 Go to previous messageGo to next message
Eclipse UserFriend
Have you tried smaller values. That seems awfully big.

tech luver wrote:
> Hello,
> I'm starting eclipse.exe as "eclipse.exe -vmargs -Xms128m -Xmx1024m"
> and getting JVM Terminated . Exit code=-1 message and eclipse quits.
> any idea why I have this issue?
> I'm using eclipse 3.4 and jre 1.5.0_06.
>
> Thanks!
>
Re: issue with jvm options -Xms128m -Xmx1024m [message #266200 is a reply to message #266190] Mon, 10 November 2008 20:52 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: techluver007.gmail.com

Yeah. 512MB works fine. Since I need to process huge amount of data, i
want to set it 1024MB. I think 1024MB works with eclipse 3.2 version
Re: issue with jvm options -Xms128m -Xmx1024m [message #266204 is a reply to message #266200] Mon, 10 November 2008 23:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: nickboldt+eclipse+newsgroup.gmail.com

Consider increasing permgen AND heap, rather than just heap.

http://wiki.eclipse.org/IRC_FAQ#I.27m_having_memory.2C_heap. 2C_or_permgen_problems.2C_what_can_I_do.3F

tech luver wrote:
> Yeah. 512MB works fine. Since I need to process huge amount of data, i
> want to set it 1024MB. I think 1024MB works with eclipse 3.2 version
>

--
Nick Boldt :: http://wiki.eclipse.org/User:Nickb
Re: issue with jvm options -Xms128m -Xmx1024m [message #266216 is a reply to message #266204] Tue, 11 November 2008 11:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: techluver007.gmail.com

Nick Boldt wrote:

> Consider increasing permgen AND heap, rather than just heap.

>
http://wiki.eclipse.org/IRC_FAQ#I.27m_having_memory.2C_heap. 2C_or_permgen_problems.2C_what_can_I_do.3F

> tech luver wrote:
>> Yeah. 512MB works fine. Since I need to process huge amount of data, i
>> want to set it 1024MB. I think 1024MB works with eclipse 3.2 version
>>

thanks for the reply. I tried with heap and perm size. but no luck.
anything > 512m gives the error. is this some kind of bug? my config is
given below.

-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256M
-framework
plugins\org.eclipse.osgi_3.4.0.v20080605-1900.jar
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms256m
-Xmx512m
-XX:+UseParallelGC
-XX:PermSize=256M
-XX:MaxPermSize=512M
Re: issue with jvm options -Xms128m -Xmx1024m [message #266218 is a reply to message #266216] Tue, 11 November 2008 13:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

On 11/11/2008 11:47 AM, tech luver wrote:
> Nick Boldt wrote:
>
>> Consider increasing permgen AND heap, rather than just heap.
>
>>
> http://wiki.eclipse.org/IRC_FAQ#I.27m_having_memory.2C_heap. 2C_or_permgen_problems.2C_what_can_I_do.3F
>
>
>> tech luver wrote:
>>> Yeah. 512MB works fine. Since I need to process huge amount of data,
>>> i want to set it 1024MB. I think 1024MB works with eclipse 3.2 version
>>>
>
> thanks for the reply. I tried with heap and perm size. but no luck.
> anything > 512m gives the error. is this some kind of bug? my config is
> given below.

I notice that you are not specifying the -vm argument. You should
definitely do that so you can be certain which JVM is being used to run
Eclipse.
http://wiki.eclipse.org/Eclipse.ini

Also note that there is a practical limit to how much heap and permGen
space a Sun JVM can allocate on Windows. See this:
http://dev.eclipse.org/newslists/news.eclipse.platform/msg73 887.html

Hope this helps,
Eric


>
> -showsplash
> org.eclipse.platform
> --launcher.XXMaxPermSize
> 256M
> -framework
> plugins\org.eclipse.osgi_3.4.0.v20080605-1900.jar
> -vmargs
> -Dosgi.requiredJavaVersion=1.5
> -Xms256m
> -Xmx512m
> -XX:+UseParallelGC
> -XX:PermSize=256M
> -XX:MaxPermSize=512M
>
>
Re: issue with jvm options -Xms128m -Xmx1024m [message #266225 is a reply to message #266216] Wed, 12 November 2008 00:29 Go to previous messageGo to next message
Eclipse UserFriend
"tech luver" <techluver007@gmail.com> wrote in message
news:98e9274094966674837b910a39a52e23$1@www.eclipse.org...
> Nick Boldt wrote:
>
>> Consider increasing permgen AND heap, rather than just heap.
>
>>
> http://wiki.eclipse.org/IRC_FAQ#I.27m_having_memory.2C_heap. 2C_or_permgen_problems.2C_what_can_I_do.3F
>
>> tech luver wrote:
>>> Yeah. 512MB works fine. Since I need to process huge amount of data, i
>>> want to set it 1024MB. I think 1024MB works with eclipse 3.2 version
>>>
>
> thanks for the reply. I tried with heap and perm size. but no luck.
> anything > 512m gives the error. is this some kind of bug? my config is
> given below. [...]


As a point of reference, I have used -Xmx1024M on Windows XP with every
version of Eclipse from 3.2 through 3.5 M3, and several on the Mac too. I
recognize that doesn't help with your problem, I'm just offering it to show
that Eclipse at least "can" run with that much memory.

How much physical RAM do you have?

Are you sure that you're using the VM you think you are? As Eric says, it's
a good idea to specify it explicitly.

Are you able to launch other Java programs with the same flags? For
instance, if you write a simple "hello world" program in Java and launch it
with the same VM flags, does it work?
Re: issue with jvm options -Xms128m -Xmx1024m [message #266285 is a reply to message #266225] Thu, 13 November 2008 13:37 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: techluver007.gmail.com

still no luck after specifying -vm in eclipse init file. I also tried
standalone java prog and it worked(java Test -Xms256m -Xmx1024m
-XX:+UseParallelGC -XX:PermSize=256M -XX:MaxPermSize=512M).

eclispe init:-

-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256M
-vm
C:\Program Files\Java\jdk1.6.0_07\bin
-framework
plugins\org.eclipse.osgi_3.4.0.v20080605-1900.jar
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms256m
-Xmx1024m
-XX:+UseParallelGC
-XX:PermSize=256M
-XX:MaxPermSize=512M
Re: issue with jvm options -Xms128m -Xmx1024m [message #266287 is a reply to message #266285] Thu, 13 November 2008 13:44 Go to previous messageGo to next message
Eclipse UserFriend
physical RAM is 2 GB. for -xmx > 940M, eclipse does not start.

-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256M
-vm
C:\Program Files\Java\jdk1.6.0_07\bin
-framework
plugins\org.eclipse.osgi_3.4.0.v20080605-1900.jar
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms256m
-Xmx940m
-XX:+UseParallelGC
-XX:PermSize=256M
-XX:MaxPermSize=256M
Re: issue with jvm options -Xms128m -Xmx1024m [message #266293 is a reply to message #266285] Thu, 13 November 2008 15:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

On 11/13/2008 1:37 PM, tech luver wrote:
> still no luck after specifying -vm in eclipse init file. I also tried
> standalone java prog and it worked(java Test -Xms256m -Xmx1024m
> -XX:+UseParallelGC -XX:PermSize=256M -XX:MaxPermSize=512M).
>
> eclispe init:-
>
> -showsplash
> org.eclipse.platform
> --launcher.XXMaxPermSize
> 256M
> -vm
> C:\Program Files\Java\jdk1.6.0_07\bin

As documented in the wiki page (http://wiki.eclipse.org/Eclipse.ini),
the value of the -vm parameter must be the full path of the java
executable, not the directory as you have specified.

Eric
Re: issue with jvm options -Xms128m -Xmx1024m [message #266297 is a reply to message #266293] Thu, 13 November 2008 16:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: techluver007.gmail.com

Thanks a lot! appreciated..
It finally worked with following config. Eclipse works with vm path
"C:\Program Files\Java\jdk1.6.0_07\bin" for -Xmx <= 940m, but it throws
error for -xmx > 940m.

-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
256M
-vm
C:\Program Files\Java\jdk1.6.0_07\bin\javaw.exe
-framework
plugins\org.eclipse.osgi_3.4.0.v20080605-1900.jar
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms256m
-Xmx1024m
-XX:+UseParallelGC
-XX:PermSize=256M
-XX:MaxPermSize=256M
Re: issue with jvm options -Xms128m -Xmx1024m [message #266310 is a reply to message #266297] Fri, 14 November 2008 09:46 Go to previous message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

On 11/13/2008 4:33 PM, tech luver wrote:
> Thanks a lot! appreciated..
> It finally worked with following config. Eclipse works with vm path
> "C:\Program Files\Java\jdk1.6.0_07\bin" for -Xmx <= 940m, but it throws
> error for -xmx > 940m.

With the incorrect -vm value Eclipse will still run, it just will use
whatever JVM it happens to find on your system path instead of the one
you are trying to specify. Whatever JVM that is on your system, it
obviously does not deal with the large -Xmx option.

Glad you're working now.

Eric
Previous Topic:Cannot find the tag library descriptor--sometimes
Next Topic:icon.xpm
Goto Forum:
  


Current Time: Sun May 11 04:08:15 EDT 2025

Powered by FUDForum. Page generated in 0.16526 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top