|
|
Re: Max Heap Allocation Question
|
Posted: Oct 12, 2004 8:37 AM
|
|
I've been there with a Solaris box - and there's still plenty I need to learn about it, so don't think any of this is definiative.
I hope you're taking into consideration the needs of your OS; Solaris isn't exactly memory-hungry, but it DOES use some memory, just like XP will. One thing I've run into is the notion that some in management seem to have that if they've gotten you a machine with xGB, you should be able to use all of that xGB for the application. Well, not quite. For instance, I found that on our system, while I was told that there was 4GB available to me, part of that was already allocated to the OS and some miscellaneous other daemons, and if I tried to set -Xmx to anything greater than about 2GB, I'd get a message about the OS needing to be formatted to be a 64-bit system from the JVM. I'm not sure if you'll run into this on XP, tho.
Also, if you allocate all the memory on your target machine to your process, and you're sure it doesn't spawn any child processes (that will require the JVM to duplicate itself, gobbling up more memory), you'd best be sure that no one is going to come along and try to run something else on the machine at the same time!
HTH!
Lynn.
|
|