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 / Virtual Machine / January 2006

Tip: Looking for answers? Try searching our database.

-Xmx100m works vs -Xmx300m

Thread view: 
Dado - 20 Jan 2006 21:06 GMT
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.
neo - 23 Jan 2006 05:08 GMT
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
Dado - 23 Jan 2006 19:16 GMT
"neo" <nirav.thaker@gmail.com> je napisao u poruci interesnoj
grupi:1137992939.492947.276240@f14g2000cwb.googlegroups.com...
> 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)..
neo - 24 Jan 2006 10:46 GMT
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


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.