Re: different maximum Java -Xmx on kernel 2.6.9 (RedHat 4 update 2) and 2.6.22 (CentOS 5.2)



Hi Robert,

Thanks for your reply!

What does the command 'free' show?  It is entirely possible that the 878
meg of ram has gotten 'eaten' by additional processes.

# free
total used free shared
buffers cached
Mem: 4074980 161636 3913344 0 13740
117696
-/+ buffers/cache: 30200 4044780
Swap: 2031608 0 2031608


So it seems to me that there should be enough memory available for
java -Xmx3500m.


Another possiblity is that you didn't install the PAE kernel -- eg I am
not sure if the default CentOS 5.2 32bit installed installs the PAE
kernel by default.  Without the PAE, you might not be able to allocate
all (or nearly all) of the 4gig to any one process. Or to even allocate
all of the 4gig RAM at all.

Initially CentOS 5.2 did install a PAE kernel, but since this didn't
work I decided to install the kernel SRPM and recompile it with
several different option to see if it makes a difference. However,
playing with the HIGHMEM options (4G, 64G, etc) did not help. At the
moment I am back using the default PAE kernel (the output of free
above is with the PAE kernel).

Any other ideas?

Thanks!
.



Relevant Pages

  • Re: 4GB RAM with an intel core 2 processor
    ... When I install the 2 extra memory modules, the kernel tells me on startup ... I took a quick look at PAE and discovered that the PAE kernel is ... Do I have any options for using my 4GB of RAM and still retain USB and the nvidia driver? ...
    (freebsd-current)
  • Re: slow (s-l-o-w) install
    ... Now, it's my understanding that somehow, there is 64mb of ram that is not ... attempts to install itself at the top of the memory. ... dragging everything that interacts with the kernel ... As this seems to be a problem in the very latest crop of Intel ...
    (Fedora)
  • Re: Memory lock failed
    ... replace some 4GB DIMM's to recover my original 24 GB RAM. ... More than likely you are booting to single mode using the 32bit kernel ... You can have 64-bit applications running on Mac OS X with 32-bit kernel, ... Linux and Mac OS X use PAE to allow a 32-bit kernel to manage an address ...
    (comp.sys.mac.hardware.misc)
  • RE: [Backtrace] 4.9 and 5.1-RELEASE occasionly panic on RAM > 4GB without PAE (long)
    ... > work fine with!PAE. ... vmstat -m is useful to keep track of kernel memory use. ... When we have removed some RAM, in other words, install 2GB memory on the ... I think this is important, however, I got no reason why a server ...
    (freebsd-current)
  • RE: [Backtrace] 4.9 and 5.1-RELEASE occasionly panic on RAM > 4GB without PAE (long)
    ... > work fine with!PAE. ... vmstat -m is useful to keep track of kernel memory use. ... When we have removed some RAM, in other words, install 2GB memory on the ... I think this is important, however, I got no reason why a server ...
    (freebsd-stable)