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 / April 2005

Tip: Looking for answers? Try searching our database.

Maximum Heap Size on Windows 2003

Thread view: 
Yannick ROGER - 26 Apr 2005 08:57 GMT
Hi,

I an working with J2SE 1.4.2 (exactly 1.4.2_08) on Windows 2003 Server SP1
The server i use have 4Go of RAM..

As Windows 2003 is a 32bits OS, the limit memory size for jvm is supporsed
to be 2048 Mo. Am I right?

When i try to set -Xmx parameter to 2048m, i receive the following message:
"Error occurred during initialization of VM
Could not reserve enough space for object heap"

If i try reducing this parameter to -Xmx1536m, it did not work too. The
first value to make it work was -Xmx1408m.

How can I do to make it work allowing 2040Mo to the jvm?

Regards,

Yannick
Steve W. Jackson - 26 Apr 2005 14:40 GMT
> Hi,
>
[quoted text clipped - 16 lines]
>
> Yannick

You can't use 2048.  Windows itself has an issue with large memory
sizes, if I correctly remember something I read on the subject.  I don't
have immediate access to a 2003 box to check, but I thought I recalled
testing and finding that the limitation there was the same as on my XP
system, which is 1578m.

= Steve =
Signature

Steve W. Jackson
Montgomery, Alabama

wangzaixiang@gmail.com - 27 Apr 2005 14:37 GMT
You cant use 2G memory because of that 2G is the total usable memory
for user-code, which including:
> the JVM's code and data itself
> the JVM's management data strutrue
> the Heap.

so the maxinum Heap size should less than 2G.


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.