Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4945411

Regression-test java/management/MemoryMBean/LowMemoryTestAllGC.sh fails

    Details

      Description



      Name: mmR10223 Date: 10/29/2003


      Filed By : J2SE-SQA [###@###.###
      JDK : JDK1.5.0-b25, b24, b23, b21, b19
      Testbase : Regression-test
      Platform[s] : Solaris (sparcv9)
      switch/Mode : -d64 (passes without -d64)
      Falling test[s]:
              java/management/MemoryMBean/LowMemoryTestAllGC.sh

      Regression-test java/management/MemoryMBean/LowMemoryTestAllGC.sh test fails with JDK1.5.0-b25
      on Solaris 10 (sparc) with error:

      runOne LowMemoryTest
      Setting threshold for Tenured Gen from 0 to 2000000. Current used = 0
      AllocatorThread is doing task 1
          Sensor notification count = 1 Prev count = 0
      SweepThread is doing task 1
      AllocatorThread is doing task 2
          Sensor notification count = 2 Prev count = 1
      SweepThread is doing task 2
      AllocatorThread is doing task 3
          Sensor notification count = 3 Prev count = 2
      SweepThread is doing task 3
      AllocatorThread is doing task 4
          Sensor notification count = 4 Prev count = 3
      SweepThread is doing task 4
      AllocatorThread is doing task 5
          Sensor notification count = 5 Prev count = 4
      SweepThread is doing task 5
      Test passed.
      runOne -XX:+UseParallelGC LowMemoryTest
      Setting threshold for PS Old Gen from 0 to 2000000. Current used = 0
      AllocatorThread is doing task 1
      Invoking GC to force low memory detection to happen.
          Sensor notification count = 1 Prev count = 0
          TEST FAILED: GC invoked.
      SweepThread is doing task 1
      ----------System.err:(3/223)----------
      Exception in thread "main" java.lang.RuntimeException: Unexpected number of triggers = 1 but expected to be 5
      at LowMemoryTest$TestListener.checkResult(LowMemoryTest.java:48)
      at LowMemoryTest.main(LowMemoryTest.java:134)
      result: Failed. Execution failed: exit code


      Also it fails on other Solaris-sparc versions with timeout (please see Test output (jtr part))
      It passes without -d64.


      Test source location:
      =====================
      /java/re/jdk/1.5.0/promoted/latest/ws/j2se/test/java/management/MemoryMBean/LowMemoryTestAllGC.sh

      jtr file location:
      ==================
      /net/jtgb4u4c.sfbay/export/sail15/results.2/tiger/b25/regtest/sparc/sol9_sparc_cde_novo48/workDir/test/java/management/MemoryMBean/LowMemoryTestAllGC.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

      #Paths in Java Software:
      JT_HOME="/java/re/jct-tools/3.1.2/archive/fcs/binaries"
      JEMMY_JAR="/net/jdk/export/jpse04/Jemmy/jemmy.jar"
      JAVA_HOME="/java/re/jdk/1.5.0/promoted/all/b25/binaries/solaris-sparc"
      TEST_BASE_PATH="/java/re/jdk/1.5.0/promoted/all/b25/ws/j2se/test"

      #Alternative paths outside Java Software:
      #JT_HOME="/net/koori.sfbay/onestop/jct-tools/3.1.2/archive/fcs/binaries"
      #JEMMY_JAR="/net/jdk/export/jpse04/Jemmy/jemmy.jar"
      #JAVA_HOME="/net/koori.sfbay/onestop/jdk/1.5.0/promoted/all/b25/binaries/solaris-sparc"
      #TEST_BASE_PATH="/net/koori.sfbay/onestop/jdk/1.5.0/promoted/all/b25/ws/j2se/test"

      #Alternative paths for the NSK site:
      #JT_HOME="/net/linux-15/export/home/java/jct"
      #JEMMY_JAR="$JT_HOME/jemmy/jemmy.jar"
      #JAVA_HOME="/net/linux-15/export/home/java/jdk1.5.0/sparc"
      #TEST_BASE_PATH="/net/linux-15/export/home/java/regtest.tiger/test"


      TESTVMOPTS="-d64"
      CLASSPATH="$JT_HOME/classes:$JT_HOME/lib/javatest.jar:$JT_HOME/lib/jtreg.jar"

      TEST="java/management/MemoryMBean/LowMemoryTestAllGC.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,HOME=$HOME/.regtest,PATH=/bin:/usr/bin,CPAPPEND=$JEMMY_JAR,TZ=,LC_ALL=en_US,LC_CTYPE=en_US,LANG=en_US,LPDEST= -DDISPLAY=:0 -DlocalHost="novo48" -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 output:
      ==============

      Test output (jtr part):
      =======================
      ----------System.out:(0/0)----------
      ----------System.err:(0/0)----------
      result: Passed. Compilation successful

      #section:shell
      ----------messages:(3/135)----------
      command: shell LowMemoryTestAllGC.sh
      reason: User specified action: run shell LowMemoryTestAllGC.sh
      elapsed time (seconds): 1200.083
      ----------System.out:(22/841)----------
      runOne LowMemoryTest
      Setting threshold for Tenured Gen from 0 to 2000000. Current used = 0
      AllocatorThread is doing task 1
          Sensor notification count = 1 Prev count = 0
      SweepThread is doing task 1
      AllocatorThread is doing task 2
          Sensor notification count = 2 Prev count = 1
      SweepThread is doing task 2
      AllocatorThread is doing task 3
          Sensor notification count = 3 Prev count = 2
      SweepThread is doing task 3
      AllocatorThread is doing task 4
          Sensor notification count = 4 Prev count = 3
      SweepThread is doing task 4
      AllocatorThread is doing task 5
          Sensor notification count = 5 Prev count = 4
      SweepThread is doing task 5
      Test passed.
      runOne -XX:+UseParallelGC LowMemoryTest
      Setting threshold for PS Old Gen from 0 to 2000000. Current used = 0
      AllocatorThread is doing task 1
          Sensor notification count = 1 Prev count = 0
      ----------System.err:(1/44)----------
      java.lang.OutOfMemoryError: Java heap space
      result: Failed. Execution failed: Program `sh' interrupted! (timed out?)


      test result: Failed. Execution failed: Program `sh' interrupted! (timed out?)


      Specific machine info:
      ======================
      Hostname: novo48
      OS: Solaris 9 (sparc)
      Hostname: linux-8
      OS: Solaris 10 (sparc)




      ======================================================================

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mchung Mandy Chung
                Reporter:
                mmvsunw Mmv Mmv (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: