OutOfMemory on Sun Java 1.4.2 on Linux  
Author Message
taab





PostPosted: 2005-4-29 2:22:00 Top

java-programmer, OutOfMemory on Sun Java 1.4.2 on Linux Hi all,
My application (on JBoss) is experiencing strange problem on one of our
environment - on Linux on Itanium 2 - Sun Java 1.4.2_07 and 64 bit.
On all other platforms (windows, linux, 32 bit) is ok.
After 2-3 http requests the OutOfMemory exception is thrown.
Java is started with -Xmx1024M. In fact the bahaviour is exactly the
same as -Xmx512M.
'uname -a' shows unlimited resources for memory.
There is plenty of free memory in the system (main and swap) - for
example I can run 3 such java processes at the same time - but each is
reporting out of memory after few requests as it is for one java spawned.
'top' shows that java eats ~400M when the OutOfMemory is thrown.

Where to look, what to check?
taab
 
Tony Morris





PostPosted: 2005-4-29 18:58:00 Top

java-programmer >> OutOfMemory on Sun Java 1.4.2 on Linux
"taab" <email***@***.com> wrote in message
news:42712765$0$27734$email***@***.com...
> Hi all,
> My application (on JBoss) is experiencing strange problem on one of our
> environment - on Linux on Itanium 2 - Sun Java 1.4.2_07 and 64 bit.
> On all other platforms (windows, linux, 32 bit) is ok.
> After 2-3 http requests the OutOfMemory exception is thrown.
> Java is started with -Xmx1024M. In fact the bahaviour is exactly the
> same as -Xmx512M.
> 'uname -a' shows unlimited resources for memory.
> There is plenty of free memory in the system (main and swap) - for
> example I can run 3 such java processes at the same time - but each is
> reporting out of memory after few requests as it is for one java spawned.
> 'top' shows that java eats ~400M when the OutOfMemory is thrown.
>
> Where to look, what to check?
> taab

Given that it's easy to reproduce, you merely have to find which application
is installed that is leaking memory.
Use a profiler if it's not obvious, but trial and error should yields
results in a few minutes or less.

--
Tony Morris

JTiger Unit Test Framework for J2SE 1.5
http://www.jtiger.org/
Java Q&A (FAQ, Trivia)
http://qa.jtiger.org/
http://xdweb.net/~dibblego/