-
Bug
-
Resolution: Fixed
-
P3
-
5.0
-
b24
-
generic
-
generic
-
Verified
Name: vsR10238 Date: 09/24/2003
Filed By : J2SE-SQA [###@###.###
JDK :
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b19)
Java HotSpot(TM) Client VM (build 20030915105831.kbr.share_baseline_testing, mixed mode)
Testbase : Regression-test (for JDK-b19)
Platform[s] : all
Falling test[s]:
sun/management/snmp/jvmMemory/JvmMemPoolTest.sh
Regression-test sun/management/snmp/jvmMemory/JvmMemPoolTest.sh test fails with
JDK1.5.0-b19-20030915105831.kbr.share_baseline_testing
because public static String[] tigerpools
in sun/management/snmp/jvmMemory/JvmMemPoolManager.java
does not contain Perm Gen [unshared]
public static String[] tigerpools = {
"Code Cache","Eden Space","Survivor Space 1","Survivor Space 2",
"Tenured Gen", "Perm Gen"
};
Since the [unshared] suffix obviously relates to features of the new VM we are testing I suppose this is a test bug.
The test passes with JDK1.5.0-b19,b20
Test source location:
=====================
/java/re/jdk/1.5.0/promoted/latest/ws/j2se/test/sun/management/snmp/jvmMemory/JvmMemPoolTest.sh
jtr file location:
==================
/net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b19s/regtest/win32/winXP_linux-16/workDir/test/sun/management/snmp/jvmMemory/JvmMemPoolTest.jtr
How to reproduce:
=================
Run the following script (you may need to change its variables)
--- script start ---
#!/bin/sh
RESULT_DIR=`pwd`
WORK_DIR=$RESULT_DIR/workDir/test
REPORT_DIR=$RESULT_DIR/reportDir
#KOORI_ONESTOP is your path to koori.sfbay/onestop (/net/koori/onestop, /java/re)
KOORI_ONESTOP="z:"
#JPSE04 is your path to /net/jdk/export/jpse04
JPSE04="x:"
#JT_HOME="h:/java/jct"
JT_HOME="$KOORI_ONESTOP/jct-tools/3.1.2/archive/fcs/binaries"
#JEMMY_JAR="$JT_HOME/jemmy/jemmy.jar"
JEMMY_JAR="$JPSE04/Jemmy/jemmy.jar"
#JAVA_HOME="h:/java/jdk1.5.0/win32"
JAVA_HOME="$KOORI_ONESTOP/jdk/1.5.0/promoted/all/b19/binaries/windows-i586"
#TEST_BASE_PATH="h:/java/regtest.tiger/test"
TEST_BASE_PATH="$KOORI_ONESTOP/jdk/1.5.0/promoted/all/b19/ws/j2se/test"
TESTVMOPTS="-client"
CLASSPATH="$JT_HOME/classes;$JT_HOME/lib/javatest.jar;$JT_HOME/lib/jtreg.jar"
TEST="sun/management/snmp/jvmMemory/JvmMemPoolTest.sh"
mkdir -p $WORK_DIR/scratch 2>&1
mkdir -p $WORK_DIR/jtData 2>&1
mkdir -p $REPORT_DIR 2>&1
#rm $WORK_DIR/jtData/ResultCache.jtw 2>&1
cd $WORK_DIR/scratch
$JAVA_HOME/bin/java -server -cp $CLASSPATH -DenvVars=TESTJAVAHOME=$JAVA_HOME,TESTVMOPTS=$TESTVMOPTS,DISPLAY=:0,windir=$windir,SystemRoot=$SystemRoot,PATH=${SHELL%/*},CPAPPEND=$JEMMY_JAR,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= -DDISPLAY=:0 -DlocalHost="linux-16" -Dprogram=jtreg com.sun.javatest.regtest.Main -a -v default -batch -params -w "$WORK_DIR" -r "$REPORT_DIR" -t "$TEST_BASE_PATH" "$TEST_BASE_PATH/$TEST"
--- script end ---
Script output:
==============
Test output (jtr part):
=======================
----------System.out:(17/2644)----------
Adaptor ready on: localhost/127.0.0.1:16161
Session created for: Peer/Port : localhost/16161
*** TEST MEMORY POOLS
Found 6 Memory Pool(s).
Valid Memory Pool: {index=1, name="Code Cache", validity=true, type=nonheap(64), threshold=0, memory={init=196608, used=628416, committed=655360, max=33554432}, peak={init=0, used=628416,
committed=655360, max=33554432}}
Valid Memory Pool: {index=2, name="Eden Space", validity=true, type=heap(128), threshold=0, memory={init=524288, used=48680, committed=524288, max=0}, peak={init=0, used=524272, committed=524288, max=0}}
Valid Memory Pool: {index=3, name="Survivor Space 1", validity=true, type=heap(128), threshold=0, memory={init=65536, used=0, committed=65536, max=0}, peak={init=0, used=51248, committed=65536, max=0}}
Valid Memory Pool: {index=4, name="Survivor Space 2", validity=true, type=heap(128), threshold=0, memory={init=65536, used=54240, committed=65536, max=0}, peak={init=0, used=65528, committed=65536,
max=0}}
Valid Memory Pool: {index=5, name="Tenured Gen", validity=true, type=heap(128), threshold=0, memory={init=1441792, used=162800, committed=1441792, max=61997056}, peak={init=0, used=162800,
committed=1441792, max=61997056}}
Valid Memory Pool: {index=6, name="Perm Gen [unshared]", validity=true, type=nonheap(64), threshold=0, memory={init=8388608, used=3319704, committed=8388608, max=83886080}, peak={init=0,
used=3319704, committed=8388608, max=83886080}}
*** TEST EXPECTED MEMORY POOLS FOR TIGER (Tiger Specific)
Found 6 Memory Pool(s).
Found expected Memory Pool: {index=1, name="Code Cache", validity=true, type=nonheap(64), threshold=0, memory={init=196608, used=713088, committed=720896, max=33554432}, peak={init=0, used=713088,
committed=720896, max=33554432}}
Found expected Memory Pool: {index=2, name="Eden Space", validity=true, type=heap(128), threshold=0, memory={init=524288, used=120784, committed=524288, max=0}, peak={init=0, used=524272,
committed=524288, max=0}}
Found expected Memory Pool: {index=3, name="Survivor Space 1", validity=true, type=heap(128), threshold=0, memory={init=65536, used=43032, committed=65536, max=0}, peak={init=0, used=51248,
committed=65536, max=0}}
Found expected Memory Pool: {index=4, name="Survivor Space 2", validity=true, type=heap(128), threshold=0, memory={init=65536, used=0, committed=65536, max=0}, peak={init=0, used=65528,
committed=65536, max=0}}
Found expected Memory Pool: {index=5, name="Tenured Gen", validity=true, type=heap(128), threshold=0, memory={init=1441792, used=191640, committed=1441792, max=61997056}, peak={init=0, used=191640,
committed=1441792, max=61997056}}
----------System.err:(3/171)----------
Error: Memory Pool "Perm Gen [unshared]" not expected
Error: Expected Memory Pool "Perm Gen" not found
Test Failed: Error: checkTigerMemoryPools failed with 2 error(s)
result: Failed. Execution failed: exit code 20
test result: Failed. Execution failed: exit code 20
Specific machine info:
======================
Hostname: linux-16
OS: Windows XP Pro
======================================================================
Name: vsR10238 Date: 10/06/2003
Two more regression tests:
java/management/MemoryMBean/MemoryTest.java
java/management/MemoryMBean/MemoryTestAllGC.sh
fail on JDK1.5.0-b19 with class sharing enabled
due to similar reason (mismatch in memory pools).
The following output is produced:
----------System.err:(4/209)----------
java.lang.RuntimeException: TEST FAILED: Number of non-heap pools = 4 but expected 2
at MemoryTest.checkMemoryPools(MemoryTest.java:73)
at MemoryTest.main(MemoryTest.java:47)
Exception in thread "main"
result: Failed. Execution failed: exit code 2
Please let me know if I should file a new bug for this problem.
JDK info:
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-b19)
Java HotSpot(TM) Client VM (build 20030925111405.kbr.share_baseline, mixed mode)
###@###.###
======================================================================