[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

java on 2-4GB machine?



We have recently installed a cluster with Tiger MPX dual amd with 2-4GB.
These are running 2.4.19

I ran the following test code on a 4GB   trying allocate 
a lot of space to java (these errors were reproduced on
all machines).


import java.util.ArrayList;
class J {
  public static void main (String[] args) {
     ArrayList a = new ArrayList();
     for (;;) 
         a.add (new Object [1000]);
  }
}

$ java -Xmx3000m J
Error occurred during initialization of VM
Could not reserve enough space for object heap

Secondly I tried a smaller amount and it's a lot worse:

java -Xmx1000m J

1.   The jvm crashes after running for a while(log below)
2.   After the crash the jvm refuses to 
     java -Xmx1000m J &
      Error occurred during initialization of VM
      java/lang/NoClassDefFoundError: java/lang/VirtualMachineError
3.   Libc is corrupted and the machine must be rebooted (hard reset 
     because init fails.

	kris@atom12:~$ ls
	Segmentation fault
	kris@atom12:~$ su
	Segmentation fault
4    Any pointers where to start with this

more hs_err_pid683.log 

Unexpected Signal : -13632452 occurred at PC=0x402ffc36
Function name=_8Universe._instanceKlassKlassObj
Library=/usr/lib/j2re1.3/lib/i386/client/libjvm.so

Current Java thread:
	at J.main(J.java:6)

Dynamic libraries:
08048000-0804c000 r-xp 00000000 08:06 401169    
/usr/lib/j2sdk1.3/bin/i386/native_threads/java
0804c000-0804d000 rw-p 00003000 08:06 401169    
/usr/lib/j2sdk1.3/bin/i386/native_threads/java
40000000-40013000 r-xp 00000000 08:01 61700      /lib/ld-2.2.5.so
40013000-40014000 rw-p 00013000 08:01 61700      /lib/ld-2.2.5.so
40017000-40024000 r-xp 00000000 08:01 61788      /lib/libpthread-0.9.so
40024000-4002b000 rw-p 0000d000 08:01 61788      /lib/libpthread-0.9.so
4002c000-40037000 r-xp 00000000 08:06 240872    
/usr/lib/j2re1.3/lib/i386/native_threads/libhpi.so
40037000-40038000 rw-p 0000a000 08:06 240872    
/usr/lib/j2re1.3/lib/i386/native_threads/libhpi.so
40038000-402fb000 r-xp 00000000 08:06 128483    
/usr/lib/j2re1.3/lib/i386/client/libjvm.so
402fb000-40312000 rw-p 002c2000 08:06 128483    
/usr/lib/j2re1.3/lib/i386/client/libjvm.so
4032a000-4032c000 r-xp 00000000 08:01 61721      /lib/libdl-2.2.5.so
4032c000-4032d000 rw-p 00001000 08:01 61721      /lib/libdl-2.2.5.so
4032d000-40440000 r-xp 00000000 08:01 61708      /lib/libc-2.2.5.so
40440000-40446000 rw-p 00113000 08:01 61708      /lib/libc-2.2.5.so
4044a000-4044b000 r-xp 00000000 08:01 61702     
/lib/libBrokenLocale-2.2.5.so
4044b000-4044c000 rw-p 00000000 08:01 61702     
/lib/libBrokenLocale-2.2.5.so
4044c000-4045d000 r-xp 00000000 08:01 61728      /lib/libnsl-2.2.5.so
4045d000-4045e000 rw-p 00010000 08:01 61728      /lib/libnsl-2.2.5.so
40460000-40480000 r-xp 00000000 08:01 61723      /lib/libm-2.2.5.so
40480000-40481000 rw-p 0001f000 08:01 61723      /lib/libm-2.2.5.so
40482000-40494000 r-xp 00000000 08:06 128486    
/usr/lib/j2re1.3/lib/i386/libverify.so
40494000-40496000 rw-p 00011000 08:06 128486    
/usr/lib/j2re1.3/lib/i386/libverify.so
40496000-404b9000 r-xp 00000000 08:06 128487    
/usr/lib/j2re1.3/lib/i386/libjava.so
404b9000-404bb000 rw-p 00022000 08:06 128487    
/usr/lib/j2re1.3/lib/i386/libjava.so
404bc000-404d1000 r-xp 00000000 08:06 128488    
/usr/lib/j2re1.3/lib/i386/libzip.so
404d1000-404d4000 rw-p 00014000 08:06 128488    
/usr/lib/j2re1.3/lib/i386/libzip.so
404d4000-411ed000 r--s 00000000 08:06 128516    
/usr/lib/j2re1.3/lib/rt.jar
4121a000-414bf000 r--s 00000000 08:06 128517    
/usr/lib/j2re1.3/lib/i18n.jar
414bf000-414d5000 r--s 00000000 08:06 128505    
/usr/lib/j2re1.3/lib/sunrsasign.jar

Local Time = Wed Aug 28 20:14:56 2002
Elapsed Time = 16
#
# HotSpot Virtual Machine Error : -13632452
# Error ID : 4F530E43505002CC
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Client VM (Blackdown-1.3.1-FCS mixed mode)
#


-- 
Kristian G. Kvilekval
email:kris@cs.ucsb.edu office:(805)893-4178 http://www.cs.ucsb.edu/~kris




Reply to: