 |
AppletTalk.com Java discussions newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Dado Guest
|
Posted: Fri Jan 20, 2006 9:06 pm Post subject: -Xmx100m works vs -Xmx300m |
|
|
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
|
Posted: Mon Jan 23, 2006 5:08 am Post subject: Re: -Xmx100m works vs -Xmx300m |
|
|
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
|
Posted: Mon Jan 23, 2006 7:16 pm Post subject: Re: -Xmx100m works vs -Xmx300m |
|
|
"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
|
Posted: Tue Jan 24, 2006 10:46 am Post subject: Re: -Xmx100m works vs -Xmx300m |
|
|
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 |
|
 |
|
|
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
|
|