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 / March 2006

Tip: Looking for answers? Try searching our database.

Java heap size not a power of 2

Thread view: 
ajain76@gmail.com - 07 Mar 2006 18:11 GMT
Hi,

Does anyone know of any performance or other issue if java min and max
heap size is set to a value other than the power of 2 (for example,
1536 mb)?

Thanks,
Akash.
Oliver Wong - 07 Mar 2006 19:16 GMT
> Hi,
>
> Does anyone know of any performance or other issue if java min and max
> heap size is set to a value other than the power of 2 (for example,
> 1536 mb)?

   Probably depends on the architecture. A machine which is trinary based
would probably work better with a heap size set to a value that is a power
of 3, for example.

   - Oliver
ajain76@gmail.com - 07 Mar 2006 20:06 GMT
Its a Sun Sparc machine running Solaris 8. So, it is binary. Any known
issues?

> > Hi,
> >
[quoted text clipped - 7 lines]
>
>     - Oliver
Oliver Wong - 07 Mar 2006 20:31 GMT
> Its a Sun Sparc machine running Solaris 8. So, it is binary. Any known
> issues?

   Couldn't find any issues, but that doesn't mean there aren't any. You
might want to take a look at
http://www.oreilly.com/catalog/spt2/chapter/ch04.html#72236 and
http://java.sun.com/docs/hotspot/gc1.4.2/

   - Oliver
Nate Smith - 07 Mar 2006 20:40 GMT
>    Probably depends on the architecture. A machine which is trinary
> based would probably work better with a heap size set to a value that is
> a power of 3, for example.
>
>    - Oliver

 hey...Oliver, can you post some good brands of trinary machines?

 i'd like to get me one those....

- nate
Oliver Wong - 07 Mar 2006 21:38 GMT
>>    Probably depends on the architecture. A machine which is trinary based
>> would probably work better with a heap size set to a value that is a
[quoted text clipped - 3 lines]
>
>  i'd like to get me one those....

   I strongly recommend the Setun.

   - Oliver
Nate Smith - 07 Mar 2006 22:39 GMT
>>  hey...Oliver, can you post some good brands of trinary machines?
>
>    I strongly recommend the Setun.
>
>    - Oliver

 ...;-)

 very interesting!

- nate
Chris Uppal - 08 Mar 2006 11:29 GMT
> Does anyone know of any performance or other issue if java min and max
> heap size is set to a value other than the power of 2 (for example,
> 1536 mb)?

I'm not expert on the details, I doubt if there are any issues.  As far as I
know, those numbers do not translate directly into sizes of actual
data-structures, but set the extrema for the totals used by quite a large
number of separate sub-structures (which are not even necessarily contiguous in
the JVM's address space).

   -- chris


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.