Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / February 2006

Tip: Looking for answers? Try searching our database.

Heap size

Thread view: 
odwrotnie - 18 Feb 2006 20:40 GMT
How can I change the heap size in eclipse?
Do I have to change it in jvm and in eclipse?
Or only in jvm?
Or only in eclipse?

Thanks for your answears!

Signature

Best regards,
Odwrotnie.

IchBin - 18 Feb 2006 21:38 GMT
> How can I change the heap size in eclipse?
> Do I have to change it in jvm and in eclipse?
[quoted text clipped - 5 lines]
> --Best regards,
> Odwrotnie.
As far as I know you can only change the JVM.

Example I use this:

eclipse -clean -vmargs -Xverify:none -XX:+UseParallelGC -XX:PermSize=20M
-XX:MaxNewSize=32M -XX:NewSize=32M -Xms128M -Xmx256M

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor,  Regular Guy (1952-)
odwrotnie - 18 Feb 2006 21:46 GMT
> eclipse -clean -vmargs -Xverify:none -XX:+UseParallelGC -XX:PermSize=20M  
> -XX:MaxNewSize=32M -XX:NewSize=32M -Xms128M -Xmx256M

What does it all mean?

Can i set eclipse to run everytime with this args?

Signature

Best regards,
Odwrotnie.

IchBin - 18 Feb 2006 23:18 GMT
>> eclipse -clean -vmargs -Xverify:none -XX:+UseParallelGC
>> -XX:PermSize=20M -XX:MaxNewSize=32M -XX:NewSize=32M -Xms128M -Xmx256M
[quoted text clipped - 5 lines]
> --Best regards,
> Odwrotnie.

Sorry.. for the most part you will only need to specify the start and
max size by using  -Xms -Xmx. Of the two definitely specify -Xmx. I
think if you specify both it is better to specify the same size. More
than likely to round out the paging activity.

I have the -clean -vmargs specified in my window shortcut that start
Eclipse.

Just to let you know, I do not keep the -clean option on the param exec
list all of the time. I only specify if I had just installed anything
into Eclipse and on fresh installations. After that I take it off.

This makes sure that Eclipse knows about all of the plugins you just
installed, If you watch all of the problems people have after installing
plugins in the Eclipse newsgroups. 70% of the tine will be resolved by
reloading Eclipse with the clean option. You can leave it in all of the
time but requires much more time to load up naturally because of all the
verification it is doing. It is verifying\rewriting plugin information
in projects and etc.

Signature

Thanks in Advance...
IchBin, Pocono Lake, Pa, USA
http://weconsultants.servebeer.com/JHackerAppManager
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor,  Regular Guy (1952-)

odwrotnie - 18 Feb 2006 22:52 GMT
> eclipse -Xms256M -Xmx512M

Even if i do this i get: "Exception in thread "main"  
java.lang.OutOfMemoryError: Java heap space"...

Right before I get this exception I have:
Free memory: 18672 / 66650112 / 66650112

from:
Dara.gui.write2Console("Free memory: " + Runtime.getRuntime().freeMemory()  
+
                " / " + Runtime.getRuntime().totalMemory() +
                " / " + Runtime.getRuntime().maxMemory());

What is wrong?

Signature

Best regards,
Odwrotnie.

Roedy Green - 18 Feb 2006 23:23 GMT
>Even if i do this i get: "Exception in thread "main"  
>java.lang.OutOfMemoryError: Java heap space"...
http://mindprod.com/jgloss/runerrormessages.html#OUTOFMEMORYERROR
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.

Roedy Green - 18 Feb 2006 23:19 GMT
>How can I change the heap size in eclipse?
>Do I have to change it in jvm and in eclipse?
>Or only in jvm?
>Or only in eclipse?

on the run command, set them in your options arguments | vm arguments
box.

This will only apply to program run in Eclipse. In regular java they
are not permanent settings. You specify them on the java.exe command
line each time you run.
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.