AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

-Xmx100m works vs -Xmx300m

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> JVM, native methods and hardware
View previous topic :: View next topic  
Author Message
Dado
Guest





PostPosted: Fri Jan 20, 2006 9:06 pm    Post subject: -Xmx100m works vs -Xmx300m Reply with quote



I have an OutOfMemory exception when I try to print 2DGraphics, with the
next options of a java launcher:
java -Xms80m -Xmx100m -XX:PermSize=64m -Xss64m -verbose:gc

I tried:
java -Xms100m -Xmx300m -XX:PermSize=64m -Xss64m -verbose:gc
but now I got OutOfMemory exception even before printing, in a opening
database process.

Machine is Athlon 1500+ with the 512MB RAM.


Back to top
neo
Guest





PostPosted: Mon Jan 23, 2006 5:08 am    Post subject: Re: -Xmx100m works vs -Xmx300m Reply with quote



Why You need -Xss to 64m are you using lot of thread locals? If you
have multiple threads, the memory will exhaust on thread creation.

Nirav

Back to top
Dado
Guest





PostPosted: Mon Jan 23, 2006 7:16 pm    Post subject: Re: -Xmx100m works vs -Xmx300m Reply with quote




"neo" <nirav.thaker (AT) gmail (DOT) com> je napisao u poruci interesnoj
grupi:1137992939.492947.276240 (AT) f14g2000cwb (DOT) googlegroups.com...
Quote:
Why You need -Xss to 64m are you using lot of thread locals? If you
have multiple threads, the memory will exhaust on thread creation.

Nirav


That is one of uncleared facts. In a code, I created only one thread (when I
show print dialog), but in a NetBeans profiler I was surprised with a 12-15
threads. So I don't no, in a practise, what is the optimal setup for that
number of thread, on the average machine (128RAM)..



Back to top
neo
Guest





PostPosted: Tue Jan 24, 2006 10:46 am    Post subject: Re: -Xmx100m works vs -Xmx300m Reply with quote

There are several system threads which run as daemon ( finalizer, gc,
hotspot detector etc, which depends on wich jvm you are using). Why
dont you remove (or reduce) -Xss parameter.

Nirav

Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> JVM, native methods and hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.