Re: Can Java access more than 2GB of memory on WIndows 32



On Nov 24, 10:13 am, "Matt Humphrey" <ma...@xxxxxxxx> wrote:
<zigzag...@xxxxxxxxx> wrote in message

news:876c5326-9051-4ad3-b4c3-b230374d8af9@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

I am getting an out of memeory exception error running a java program
on Windows 32 bit.
Memory on the box is 4GB (I know 32 bit can access up to 4GB but
Windows OS reserves 2GB for its own processes. I can increase memory
on this box from 4GB to 8GB, but my question is Java capable of
accessing this memory. In Windows memory beyond
4GB is accessible using /PAE switch and program has to be wriiten in
a ceratin way to use it, that's why my question is whether Java is
capable of accessing 8GB memory on Windows 32 bit?

Java is limited to about 1.5-1.9 GB (YMMV) on Win 32 machines. You have to
shift up to 64-bit JVM on the appropriate hardware to get a larger range.

Matt Humphreyhttp://www.iviz.com/

Windows OS has /3GB swtch which allows for 3GB user addressable space
(instead of 2GB),
so I will think java should be able to access close to 3GB (sighlt
less than 3GB). I do
not know where java heap size parameter comes into play as for as 2GB
or 3GB memory per process.
.



Relevant Pages

  • Re: Ranting about JVMs default memory limits...
    ... It looks like Windows is indeed smart enough to use virtual address spaces that are per user process. ... on Windows each process has its own virtual address space. ... A lot of "Java is slow" seems to be the result of a GC running constantly to keep memory requirements to withing some ancient, ...
    (comp.lang.java.programmer)
  • RE: Virtual memory
    ... You can configure virtual memory in windows xp and thereby improve the ... How to set performance options in Windows XP ... if you have background programs such as printing or disk ... It is also known as the paging file. ...
    (microsoft.public.windowsxp.perform_maintain)
  • [NT] NNTP Service in Windows Contains Memory Leak
    ... NNTP Service in Windows Contains Memory Leak ... An affected server could be restored to normal service by ...
    (Securiteam)
  • Re: Physical Memory
    ... These Windows services are started: ... Memory optimizers/defragers are nothing more than snake ... These optimizers work by making demands on the Windows Memory Manager ... The funny thing about all of this nonsense is that the snake oil memory ...
    (microsoft.public.windowsxp.general)
  • Re: Waking up sleeping Java applications
    ... Not only that, the virtual machine ... With java you are running a program that is itself running a program. ... part of the Microsoft Windows environment. ... where Java dll's are held in memory to enable faster app startup. ...
    (comp.lang.java.programmer)