Re: Getting starnge memory error



zigzagdna wrote:


Is 2GB limit for all the java processes comvined or for each java
process. I know in Windows 32 bit, it is combine dmemory of all java


On Windows, it's per process. Each process can have about 1.6 G of memory, and they won't fill up memory. (Each process will get swapped out to disk though. That's what virtual memory does.)

I don't know HP-UX but I don't see why it would be different.


I am using default parameters of java, i.e., simply using java
command.


The default parameter is -Xmx64M, at least under Win32. That's really small. You might try passing in -Xmx1G (not much more under Win32, the JVM needs some space too) and see what happens. Your limit is likely to be much higher on a 64 bit os -- I'd try some very large values just to see what happens.
.



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: 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)
  • Re: ath0 weak connectivity
    ... Limewire is java-based p2p app and java on Linux and FreeBSD requires a bit more resources than on Windows. ... I guess this is due to different strategies for memory management in the implementation of Java VM. ...
    (freebsd-stable)
  • Re: Can Java access more than 2GB of memory on WIndows 32
    ... Windows OS reserves 2GB for its own processes. ... accessing this memory. ... a ceratin way to use it, that's why my question is whether Java is ...
    (comp.lang.java.programmer)
  • Re: new to programming in Linux
    ... > Some of those benchmarks show Java can be OK. ... >>system memory. ... > was on a Windows machine, ... At the same time when I compare my KDE applications, ...
    (comp.os.linux.development.apps)