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.