I know about the -Xmx option, but it doesn't accept a value greater than
1800M. I have a computer with 4GB of RAM and I would like my program to be
able to use it all.
I would really appreciate if someone can tell me how to use all available
memory.
Thanks
Sébastien Paquet
Sun JVM 1.4.2 accepts -Xmx and -Xms in gigabyte increments.
Try -Xmx2g -Xms2g
>:I would like to know how I could use all available memory for one process in
>:
>:
Since the JVM has a closed heap with a maximum heap size (which isn't
uniform on all platforms), your only other options seem to be other
languages or using multiple Java processes that jointly consume the
memory and communicate with each other (sockets, RMI, something like
that).
= Steve =
--
Steve W. Jackson
Montgomery, Alabama
>:"Sébastien Paquet" <spa...@damas.ift.ulaval.ca> wrote in message
That's true, but it still doesn't work the same on all platforms. For
instance, on my XP box, 2g won't work. Neither will 1800m. The largest
value it will take is 1578m. But on Solaris, we were able to use a much
larger value.
Am Tue, 18 Nov 2003 19:18:27 GMT schrieb Sébastien Paquet:
> 1800M. I have a computer with 4GB of RAM and I would like my program to be
> able to use it all.
Please, excuse my question, but what kind of application needs 4 GB of RAM?
Thanks, Michael.
"Michael Holtermann" <spamn...@gmx.de> wrote in message
news:1l1e2ohnjlv1s.1...@40tude.net...
Note that your OS may not allow a single process to be able to address
more than a fixed amount of physical memory -- many OS's put a 2GB limit
on the amount of memory that a single process can address.
If you're running an OS where this is the case, than there isn't
anything you're going to be able to do about it from Java.
Brad BARCLAY
--
=-=-=-=-=-=-=-=-=
From the OS/2 WARP v4.5 Desktop of Brad BARCLAY.
The jSyncManager Project: http://www.jsyncmanager.org