Skip to content

JITserver can't bind server address: Address already in use #14706

Open

Description

@pshipton

https://openj9-jenkins.osuosl.org/job/Test_openjdk11_j9_sanity.functional_ppc64le_linux_Nightly/234 - ub18-ppcle-1
testJITServer_0

Failed to properly start server, it terminated prematurely with exit value: 1
Dumping the contents of log file: /home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_ppc64le_linux_Nightly_testList_1/aqa-tests/TKG/output_16469905706816/testJITServer_0/testServerComesUpAfterClientAndGoesDownAgain.server.out
////////////////////////////////////////////////////////////////////////
//// can't bind server address: Address already in use
////////////////////////////////////////////////////////////////////////
[JITServerTest] [INFO] running testServerGoesDown: INFO and above level logging enabled
[JITServerTest] [INFO] Chose random port for server: -XX:JITServerPort=56556, set JITServerTest_SERVER_PORT in your env to override.
[JITServerTest] [INFO] Starting server with command line:
/home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_ppc64le_linux_Nightly_testList_1/openjdkbinary/j2sdk-image/bin/jitserver -XX:JITServerPort=56556
[JITServerTest] [INFO] With stdout/stderr redirected to:
/home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_ppc64le_linux_Nightly_testList_1/aqa-tests/TKG/output_16469905706816/testJITServer_0/testServerGoesDown.server.out
[JITServerTest] [INFO] Starting client with command line:
/home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_ppc64le_linux_Nightly_testList_1/openjdkbinary/j2sdk-image/bin/java -XX:JITServerPort=56556 -XX:+UseJITServer -Xcompressedrefs -Xjit -Xgcpolicy:gencon -cp /home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_ppc64le_linux_Nightly_testList_1/aqa-tests/TKG/../../jvmtest/TestConfig/resources:/home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_ppc64le_linux_Nightly_testList_1/aqa-tests/TKG/../TKG/lib/testng.jar:/home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_ppc64le_linux_Nightly_testList_1/aqa-tests/TKG/../TKG/lib/jcommander.jar:/home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_ppc64le_linux_Nightly_testList_1/aqa-tests/TKG/../../jvmtest/functional/JIT_Test/jitt.jar "-DjarTesterArgs=-loopforever /home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_ppc64le_linux_Nightly_testList_1/aqa-tests/TKG/../../jvmtest/functional/JIT_Test/jitt.jar" org.testng.TestNG -d /home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_ppc64le_linux_Nightly_testList_1/aqa-tests/TKG/../TKG/output_16469905706816/testJITServer_0/client /home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_ppc64le_linux_Nightly_testList_1/aqa-tests/TKG/../../jvmtest/functional/JIT_Test/testng.xml -testnames JarTesterTest -groups level.sanity -excludegroups d.*.linux_ppc-64_le,d.*.arch.ppc,d.*.os.linux,d.*.bits.64,d.*.generic-all
[JITServerTest] [INFO] With stdout/stderr redirected to:
/home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_ppc64le_linux_Nightly_testList_1/aqa-tests/TKG/output_16469905706816/testJITServer_0/testServerGoesDown.client.out
[JITServerTest] [INFO] Waiting for 45000 millis.
[JITServerTest] [INFO] Stopping server...
[JITServerTest] [INFO] Waiting for 45000 millis.
[JITServerTest] [INFO] Stopping client...
[JITServerTest] [INFO] running testServerGoesDownAnotherComesUp: INFO and above level logging enabled
[JITServerTest] [INFO] Chose random port for server: -XX:JITServerPort=41663, set JITServerTest_SERVER_PORT in your env to override.
[JITServerTest] [INFO] Starting server with command line:
/home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_ppc64le_linux_Nightly_testList_1/openjdkbinary/j2sdk-image/bin/jitserver -XX:JITServerPort=41663
[JITServerTest] [INFO] With stdout/stderr redirected to:
/home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_ppc64le_linux_Nightly_testList_1/aqa-tests/TKG/output_16469905706816/testJITServer_0/testServerGoesDownAnotherComesUp.server.out
[JITServerTest] [INFO] Starting client with command line:
/home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_ppc64le_linux_Nightly_testList_1/openjdkbinary/j2sdk-image/bin/java -XX:JITServerPort=41663 -XX:+UseJITServer -Xcompressedrefs -Xjit -Xgcpolicy:gencon -cp /home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_ppc64le_linux_Nightly_testList_1/aqa-tests/TKG/../../jvmtest/TestConfig/resources:/home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_ppc64le_linux_Nightly_testList_1/aqa-tests/TKG/../TKG/lib/testng.jar:/home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_ppc64le_linux_Nightly_testList_1/aqa-tests/TKG/../TKG/lib/jcommander.jar:/home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_ppc64le_linux_Nightly_testList_1/aqa-tests/TKG/../../jvmtest/functional/JIT_Test/jitt.jar "-DjarTesterArgs=-loopforever /home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_ppc64le_linux_Nightly_testList_1/aqa-tests/TKG/../../jvmtest/functional/JIT_Test/jitt.jar" org.testng.TestNG -d /home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_ppc64le_linux_Nightly_testList_1/aqa-tests/TKG/../TKG/output_16469905706816/testJITServer_0/client /home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_ppc64le_linux_Nightly_testList_1/aqa-tests/TKG/../../jvmtest/functional/JIT_Test/testng.xml -testnames JarTesterTest -groups level.sanity -excludegroups d.*.linux_ppc-64_le,d.*.arch.ppc,d.*.os.linux,d.*.bits.64,d.*.generic-all
[JITServerTest] [INFO] With stdout/stderr redirected to:
/home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_ppc64le_linux_Nightly_testList_1/aqa-tests/TKG/output_16469905706816/testJITServer_0/testServerGoesDownAnotherComesUp.client.out
[JITServerTest] [INFO] Waiting for 45000 millis.
[JITServerTest] [INFO] Stopping server...
[JITServerTest] [INFO] Waiting for 45000 millis.
[JITServerTest] [INFO] Starting server with command line:
/home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_ppc64le_linux_Nightly_testList_1/openjdkbinary/j2sdk-image/bin/jitserver -XX:JITServerPort=41663
[JITServerTest] [INFO] With stdout/stderr redirected to:
/home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_ppc64le_linux_Nightly_testList_1/aqa-tests/TKG/output_16469905706816/testJITServer_0/testServerGoesDownAnotherComesUp.secondServer.out
[JITServerTest] [INFO] Waiting for 45000 millis.
[JITServerTest] [INFO] Stopping client...
[JITServerTest] [INFO] Stopping server...
[JITServerTest] [INFO] running testServerUnreachableForAWhile: INFO and above level logging enabled
[JITServerTest] [INFO] Chose random port for server: -XX:JITServerPort=52496, set JITServerTest_SERVER_PORT in your env to override.
[JITServerTest] [INFO] Starting server with command line:
/home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_ppc64le_linux_Nightly_testList_1/openjdkbinary/j2sdk-image/bin/jitserver -XX:JITServerPort=52496
[JITServerTest] [INFO] With stdout/stderr redirected to:
/home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_ppc64le_linux_Nightly_testList_1/aqa-tests/TKG/output_16469905706816/testJITServer_0/testServerUnreachableForAWhile.server.out
[JITServerTest] [INFO] Starting client with command line:
/home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_ppc64le_linux_Nightly_testList_1/openjdkbinary/j2sdk-image/bin/java -XX:JITServerPort=52496 -XX:+UseJITServer -Xcompressedrefs -Xjit -Xgcpolicy:gencon -cp /home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_ppc64le_linux_Nightly_testList_1/aqa-tests/TKG/../../jvmtest/TestConfig/resources:/home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_ppc64le_linux_Nightly_testList_1/aqa-tests/TKG/../TKG/lib/testng.jar:/home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_ppc64le_linux_Nightly_testList_1/aqa-tests/TKG/../TKG/lib/jcommander.jar:/home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_ppc64le_linux_Nightly_testList_1/aqa-tests/TKG/../../jvmtest/functional/JIT_Test/jitt.jar "-DjarTesterArgs=-loopforever /home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_ppc64le_linux_Nightly_testList_1/aqa-tests/TKG/../../jvmtest/functional/JIT_Test/jitt.jar" org.testng.TestNG -d /home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_ppc64le_linux_Nightly_testList_1/aqa-tests/TKG/../TKG/output_16469905706816/testJITServer_0/client /home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_ppc64le_linux_Nightly_testList_1/aqa-tests/TKG/../../jvmtest/functional/JIT_Test/testng.xml -testnames JarTesterTest -groups level.sanity -excludegroups d.*.linux_ppc-64_le,d.*.arch.ppc,d.*.os.linux,d.*.bits.64,d.*.generic-all
[JITServerTest] [INFO] With stdout/stderr redirected to:
/home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_ppc64le_linux_Nightly_testList_1/aqa-tests/TKG/output_16469905706816/testJITServer_0/testServerUnreachableForAWhile.client.out
[JITServerTest] [INFO] Waiting for 45000 millis.
[JITServerTest] [INFO] Pausing server for 10000 millis.
[JITServerTest] [INFO] Resuming server...
[JITServerTest] [INFO] Waiting for 45000 millis.
[JITServerTest] [INFO] Stopping server...
[JITServerTest] [INFO] Waiting for 45000 millis.
[JITServerTest] [INFO] Stopping client...
PASSED: testServer
PASSED: testServerComesUpAfterClient
PASSED: testServerGoesDown
PASSED: testServerGoesDownAnotherComesUp
PASSED: testServerUnreachableForAWhile
FAILED: testServerComesUpAfterClientAndGoesDownAgain
java.lang.AssertionError: Failed to properly start server, it terminated prematurely with exit value: 1
	at org.testng.AssertJUnit.fail(AssertJUnit.java:59)
	at jit.test.jitserver.JITServerTest.startProcess(JITServerTest.java:271)
	at jit.test.jitserver.JITServerTest.testServerComesUpAfterClientAndGoesDownAgain(JITServerTest.java:477)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
	at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:124)
	at org.testng.internal.Invoker.invokeMethod(Invoker.java:580)
	at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:716)
	at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:988)
	at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
	at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
	at org.testng.TestRunner.privateRun(TestRunner.java:648)
	at org.testng.TestRunner.run(TestRunner.java:505)
	at org.testng.SuiteRunner.runTest(SuiteRunner.java:455)
	at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:450)
	at org.testng.SuiteRunner.privateRun(SuiteRunner.java:415)
	at org.testng.SuiteRunner.run(SuiteRunner.java:364)
	at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:52)
	at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:84)
	at org.testng.TestNG.runSuitesSequentially(TestNG.java:1208)
	at org.testng.TestNG.runSuitesLocally(TestNG.java:1137)
	at org.testng.TestNG.runSuites(TestNG.java:1049)
	at org.testng.TestNG.run(TestNG.java:1017)
	at org.testng.TestNG.privateMain(TestNG.java:1354)
	at org.testng.TestNG.main(TestNG.java:1323)

@mpirvu

Activity

  1. added
    comp:jitserver
    on Mar 14, 2022
  2. mpirvu commented on Mar 14, 2022

    @mpirvu
    Contributor

    @cjjdespres Another JITServer failure with "//// can't bind server address: Address already in use".
    We did modify the test to verify that the port is open before starting the server. I don't know what could be wrong.

  3. cjjdespres commented on Mar 14, 2022

    @cjjdespres
    Contributor

    That is odd. Maybe the method I used to detect whether or not the port is in use is insufficiently robust? I can look at it on ppc64le to see if it's a platform issue.

  4. cjjdespres commented on Mar 14, 2022

    @cjjdespres
    Contributor

    It's either that or a process managed to grab that port in the time between the check that it was free and the jitserver trying to claim it, which seems unlikely.

  5. cjjdespres commented on Mar 30, 2022

    @cjjdespres
    Contributor

    I can confirm locally (by modifying the random port range to be a single value and having a separate JITServer instance use that port) that the port use detection works, at least in that scenario.

    It's probably significant that the only part of the test that ever fails like this is testServerComesUpAfterClientAndGoesDownAgain - I would expect another sub-test to fail at some point if the issue was only that the port use detection was unreliable. But the part of that test up to the point that the server is started is identical to testServerComesUpAfterClient, so it's unclear to me why only that test would fail like this.

  6. cjjdespres commented on Apr 4, 2022

    @cjjdespres
    Contributor

    Since the failure doesn't seem to be happening at the point the port is queried, I could add the port info display to dumpProcessLog in case this happens again

  7. cjjdespres commented on May 18, 2022

    @cjjdespres
    Contributor
  8. pshipton commented on Jul 11, 2022

    @pshipton
    MemberAuthor

    https://openj9-jenkins.osuosl.org/job/Test_openjdk11_j9_sanity.functional_x86-64_linux_OMR_testList_1/257

    [JITServerTest] [INFO] running testServerUnreachableForAWhile: INFO and above level logging enabled
    [JITServerTest] [INFO] Chose random port for server: -XX:JITServerPort=38726, set JITServerTest_SERVER_PORT in your env to override.
    [JITServerTest] [INFO] Starting server with command line:
    /home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_x86-64_linux_OMR_testList_1/openjdkbinary/j2sdk-image/bin/jitserver -XX:JITServerPort=38726
    [JITServerTest] [INFO] With stdout/stderr redirected to:
    /home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_x86-64_linux_OMR_testList_1/aqa-tests/TKG/output_16571896046596/testJITServer_1/testServerUnreachableForAWhile.server.out
    Failed to properly start server, it terminated prematurely with exit value: 1
    Dumping the contents of log file: /home/jenkins/workspace/Test_openjdk11_j9_sanity.functional_x86-64_linux_OMR_testList_1/aqa-tests/TKG/output_16571896046596/testJITServer_1/testServerUnreachableForAWhile.server.out
    ////////////////////////////////////////////////////////////////////////
    //// can't bind server address: Address already in use
    ////////////////////////////////////////////////////////////////////////
    PASSED: testServer
    PASSED: testServerComesUpAfterClient
    PASSED: testServerComesUpAfterClientAndGoesDownAgain
    PASSED: testServerGoesDown
    PASSED: testServerGoesDownAnotherComesUp
    FAILED: testServerUnreachableForAWhile
    java.lang.AssertionError: Failed to properly start server, it terminated prematurely with exit value: 1
    	at org.testng.AssertJUnit.fail(AssertJUnit.java:59)
    	at jit.test.jitserver.JITServerTest.startProcess(JITServerTest.java:271)
    	at jit.test.jitserver.JITServerTest.testServerUnreachableForAWhile(JITServerTest.java:407)
    
  9. cjjdespres commented on Jul 19, 2022

    @cjjdespres
    Contributor

    Another failure in /job/Test_openjdk8_j9_sanity.functional_x86-64_linux_jit_Personal/1015/.

    [JITServerTest] [INFO] running testServerComesUpAfterClient: INFO and above level logging enabled
    [JITServerTest] [INFO] Chose random port for server: -XX:JITServerPort=33568, set JITServerTest_SERVER_PORT in your env to override.
    [JITServerTest] [INFO] Starting client with command line:
    /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_jit_Personal_testList_0/openjdkbinary/j2sdk-image/bin/java -XX:JITServerPort=33568 -XX:+UseJITServer -XX:+UseJITServer -Xcompressedrefs -Xjit -Xgcpolicy:gencon -Xshareclasses:none -Xjit:optLevel=hot -cp /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_jit_Personal_testList_0/aqa-tests/TKG/../../jvmtest/TestConfig/resources:/home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_jit_Personal_testList_0/aqa-tests/TKG/../TKG/lib/testng.jar:/home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_jit_Personal_testList_0/aqa-tests/TKG/../TKG/lib/jcommander.jar:/home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_jit_Personal_testList_0/aqa-tests/TKG/../../jvmtest/functional/JIT_Test/jitt.jar "-DjarTesterArgs=-loopforever /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_jit_Personal_testList_0/aqa-tests/TKG/../../jvmtest/functional/JIT_Test/jitt.jar" org.testng.TestNG -d /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_jit_Personal_testList_0/aqa-tests/TKG/../TKG/output_16582170542833/testJITServer_1/client /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_jit_Personal_testList_0/aqa-tests/TKG/../../jvmtest/functional/JIT_Test/testng.xml -testnames JarTesterTest -groups level.sanity -excludegroups d.*.linux_x86-64,d.*.arch.x86,d.*.os.linux,d.*.bits.64,d.*.generic-all
    [JITServerTest] [INFO] With stdout/stderr redirected to:
    /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_jit_Personal_testList_0/aqa-tests/TKG/output_16582170542833/testJITServer_1/testServerComesUpAfterClient.client.out
    [JITServerTest] [INFO] Waiting for 45000 millis.
    [JITServerTest] [INFO] Starting server with command line:
    /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_jit_Personal_testList_0/openjdkbinary/j2sdk-image/bin/jitserver -XX:JITServerPort=33568
    [JITServerTest] [INFO] With stdout/stderr redirected to:
    /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_jit_Personal_testList_0/aqa-tests/TKG/output_16582170542833/testJITServer_1/testServerComesUpAfterClient.server.out
    Failed to properly start server, it terminated prematurely with exit value: 1
    Dumping the contents of log file: /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_jit_Personal_testList_0/aqa-tests/TKG/output_16582170542833/testJITServer_1/testServerComesUpAfterClient.server.out
    ////////////////////////////////////////////////////////////////////////
    //// can't bind server address: Address already in use
    //// 
    //// JITServer is ready to accept incoming requests
    ////////////////////////////////////////////////////////////////////////
    

    The "JITServer is ready to accept incoming requests" bit is a little odd; I thought that the "can't bind server address" error would halt JITServer startup before it got to that point.

  10. pshipton commented on Dec 7, 2022

    @pshipton
    MemberAuthor

    https://openj9-jenkins.osuosl.org/job/Test_openjdk8_j9_sanity.functional_x86-64_linux_OMR_testList_0/349/

    [JITServerTest] [INFO] Starting server with command line:
    /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_OMR_testList_0/openjdkbinary/j2sdk-image/bin/jitserver -XX:JITServerPort=58936
    [JITServerTest] [INFO] With stdout/stderr redirected to:
    /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_OMR_testList_0/aqa-tests/TKG/output_16704418597831/testJITServer_0/testServerGoesDownAnotherComesUp.secondServer.out
    Failed to properly start server, it terminated prematurely with exit value: 1
    Dumping the contents of log file: /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_OMR_testList_0/aqa-tests/TKG/output_16704418597831/testJITServer_0/testServerGoesDownAnotherComesUp.secondServer.out
    ////////////////////////////////////////////////////////////////////////
    //// can't bind server address: Address already in use
    ////////////////////////////////////////////////////////////////////////
    [JITServerTest] [INFO] running testServerUnreachableForAWhile: INFO and above level logging enabled
    [JITServerTest] [INFO] Chose random port for server: -XX:JITServerPort=36124, set JITServerTest_SERVER_PORT in your env to override.
    [JITServerTest] [INFO] Starting server with command line:
    /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_OMR_testList_0/openjdkbinary/j2sdk-image/bin/jitserver -XX:JITServerPort=36124
    [JITServerTest] [INFO] With stdout/stderr redirected to:
    /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_OMR_testList_0/aqa-tests/TKG/output_16704418597831/testJITServer_0/testServerUnreachableForAWhile.server.out
    [JITServerTest] [INFO] Starting client with command line:
    /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_OMR_testList_0/openjdkbinary/j2sdk-image/bin/java -XX:JITServerPort=36124 -XX:+UseJITServer -Xcompressedrefs -Xjit -Xgcpolicy:gencon -cp /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_OMR_testList_0/aqa-tests/TKG/../../jvmtest/TestConfig/resources:/home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_OMR_testList_0/aqa-tests/TKG/../TKG/lib/testng.jar:/home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_OMR_testList_0/aqa-tests/TKG/../TKG/lib/jcommander.jar:/home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_OMR_testList_0/aqa-tests/TKG/../../jvmtest/functional/JIT_Test/jitt.jar "-DjarTesterArgs=-loopforever /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_OMR_testList_0/aqa-tests/TKG/../../jvmtest/functional/JIT_Test/jitt.jar" org.testng.TestNG -d /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_OMR_testList_0/aqa-tests/TKG/../TKG/output_16704418597831/testJITServer_0/client /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_OMR_testList_0/aqa-tests/TKG/../../jvmtest/functional/JIT_Test/testng.xml -testnames JarTesterTest -groups level.sanity -excludegroups d.*.linux_x86-64,d.*.arch.x86,d.*.os.linux,d.*.bits.64,d.*.generic-all
    [JITServerTest] [INFO] With stdout/stderr redirected to:
    /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_x86-64_linux_OMR_testList_0/aqa-tests/TKG/output_16704418597831/testJITServer_0/testServerUnreachableForAWhile.client.out
    [JITServerTest] [INFO] Waiting for 45000 millis.
    [JITServerTest] [INFO] Pausing server for 10000 millis.
    [JITServerTest] [INFO] Resuming server...
    [JITServerTest] [INFO] Waiting for 45000 millis.
    [JITServerTest] [INFO] Stopping server...
    [JITServerTest] [INFO] Waiting for 45000 millis.
    [JITServerTest] [INFO] Stopping client...
    PASSED: testServer
    PASSED: testServerComesUpAfterClient
    PASSED: testServerComesUpAfterClientAndGoesDownAgain
    PASSED: testServerGoesDown
    PASSED: testServerUnreachableForAWhile
    FAILED: testServerGoesDownAnotherComesUp
    java.lang.AssertionError: Failed to properly start server, it terminated prematurely with exit value: 1
    	at org.testng.AssertJUnit.fail(AssertJUnit.java:59)
    	at jit.test.jitserver.JITServerTest.startProcess(JITServerTest.java:271)
    	at jit.test.jitserver.JITServerTest.testServerGoesDownAnotherComesUp(JITServerTest.java:382)
    
  11. pshipton commented on Dec 15, 2022

    @pshipton
    MemberAuthor

    https://openj9-jenkins.osuosl.org/job/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/69
    testJITServer_0

    //// can't bind server address: Address already in use
    ////////////////////////////////////////////////////////////////////////
    [JITServerTest] [INFO] running testServerComesUpAfterClientAndGoesDownAgain: INFO and above level logging enabled
    [JITServerTest] [INFO] Chose random port for server: -XX:JITServerPort=45162, set JITServerTest_SERVER_PORT in your env to override.
    [JITServerTest] [INFO] Starting client with command line:
    /home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/openjdkbinary/j2sdk-image/bin/java -XX:JITServerPort=45162 -XX:+UseJITServer -Xcompressedrefs -Xjit -Xgcpolicy:gencon -cp /home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/aqa-tests/TKG/../../jvmtest/TestConfig/resources:/home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/aqa-tests/TKG/../TKG/lib/testng.jar:/home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/aqa-tests/TKG/../TKG/lib/jcommander.jar:/home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/aqa-tests/TKG/../../jvmtest/functional/JIT_Test/jitt.jar "-DjarTesterArgs=-loopforever /home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/aqa-tests/TKG/../../jvmtest/functional/JIT_Test/jitt.jar" org.testng.TestNG -d /home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/aqa-tests/TKG/../TKG/output_16710816462220/testJITServer_0/client /home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/aqa-tests/TKG/../../jvmtest/functional/JIT_Test/testng.xml -testnames JarTesterTest -groups level.sanity -excludegroups d.*.linux_x86-64,d.*.arch.x86,d.*.os.linux,d.*.bits.64,d.*.generic-all
    [JITServerTest] [INFO] With stdout/stderr redirected to:
    /home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/aqa-tests/TKG/output_16710816462220/testJITServer_0/testServerComesUpAfterClientAndGoesDownAgain.client.out
    [JITServerTest] [INFO] Waiting for 45000 millis.
    [JITServerTest] [INFO] Starting server with command line:
    /home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/openjdkbinary/j2sdk-image/bin/jitserver -XX:JITServerPort=45162
    [JITServerTest] [INFO] With stdout/stderr redirected to:
    /home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/aqa-tests/TKG/output_16710816462220/testJITServer_0/testServerComesUpAfterClientAndGoesDownAgain.server.out
    [JITServerTest] [INFO] Waiting for 45000 millis.
    [JITServerTest] [INFO] Stopping server...
    [JITServerTest] [INFO] Waiting for 45000 millis.
    [JITServerTest] [INFO] Stopping client...
    [JITServerTest] [INFO] running testServerGoesDown: INFO and above level logging enabled
    [JITServerTest] [INFO] Chose random port for server: -XX:JITServerPort=42031, set JITServerTest_SERVER_PORT in your env to override.
    [JITServerTest] [INFO] Starting server with command line:
    /home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/openjdkbinary/j2sdk-image/bin/jitserver -XX:JITServerPort=42031
    [JITServerTest] [INFO] With stdout/stderr redirected to:
    /home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/aqa-tests/TKG/output_16710816462220/testJITServer_0/testServerGoesDown.server.out
    [JITServerTest] [INFO] Starting client with command line:
    /home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/openjdkbinary/j2sdk-image/bin/java -XX:JITServerPort=42031 -XX:+UseJITServer -Xcompressedrefs -Xjit -Xgcpolicy:gencon -cp /home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/aqa-tests/TKG/../../jvmtest/TestConfig/resources:/home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/aqa-tests/TKG/../TKG/lib/testng.jar:/home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/aqa-tests/TKG/../TKG/lib/jcommander.jar:/home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/aqa-tests/TKG/../../jvmtest/functional/JIT_Test/jitt.jar "-DjarTesterArgs=-loopforever /home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/aqa-tests/TKG/../../jvmtest/functional/JIT_Test/jitt.jar" org.testng.TestNG -d /home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/aqa-tests/TKG/../TKG/output_16710816462220/testJITServer_0/client /home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/aqa-tests/TKG/../../jvmtest/functional/JIT_Test/testng.xml -testnames JarTesterTest -groups level.sanity -excludegroups d.*.linux_x86-64,d.*.arch.x86,d.*.os.linux,d.*.bits.64,d.*.generic-all
    [JITServerTest] [INFO] With stdout/stderr redirected to:
    /home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/aqa-tests/TKG/output_16710816462220/testJITServer_0/testServerGoesDown.client.out
    [JITServerTest] [INFO] Waiting for 45000 millis.
    [JITServerTest] [INFO] Stopping server...
    [JITServerTest] [INFO] Waiting for 45000 millis.
    [JITServerTest] [INFO] Stopping client...
    [JITServerTest] [INFO] running testServerGoesDownAnotherComesUp: INFO and above level logging enabled
    [JITServerTest] [INFO] Chose random port for server: -XX:JITServerPort=57583, set JITServerTest_SERVER_PORT in your env to override.
    [JITServerTest] [INFO] Starting server with command line:
    /home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/openjdkbinary/j2sdk-image/bin/jitserver -XX:JITServerPort=57583
    [JITServerTest] [INFO] With stdout/stderr redirected to:
    /home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/aqa-tests/TKG/output_16710816462220/testJITServer_0/testServerGoesDownAnotherComesUp.server.out
    [JITServerTest] [INFO] Starting client with command line:
    /home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/openjdkbinary/j2sdk-image/bin/java -XX:JITServerPort=57583 -XX:+UseJITServer -Xcompressedrefs -Xjit -Xgcpolicy:gencon -cp /home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/aqa-tests/TKG/../../jvmtest/TestConfig/resources:/home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/aqa-tests/TKG/../TKG/lib/testng.jar:/home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/aqa-tests/TKG/../TKG/lib/jcommander.jar:/home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/aqa-tests/TKG/../../jvmtest/functional/JIT_Test/jitt.jar "-DjarTesterArgs=-loopforever /home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/aqa-tests/TKG/../../jvmtest/functional/JIT_Test/jitt.jar" org.testng.TestNG -d /home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/aqa-tests/TKG/../TKG/output_16710816462220/testJITServer_0/client /home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/aqa-tests/TKG/../../jvmtest/functional/JIT_Test/testng.xml -testnames JarTesterTest -groups level.sanity -excludegroups d.*.linux_x86-64,d.*.arch.x86,d.*.os.linux,d.*.bits.64,d.*.generic-all
    [JITServerTest] [INFO] With stdout/stderr redirected to:
    /home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/aqa-tests/TKG/output_16710816462220/testJITServer_0/testServerGoesDownAnotherComesUp.client.out
    [JITServerTest] [INFO] Waiting for 45000 millis.
    [JITServerTest] [INFO] Stopping server...
    [JITServerTest] [INFO] Waiting for 45000 millis.
    [JITServerTest] [INFO] Starting server with command line:
    /home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/openjdkbinary/j2sdk-image/bin/jitserver -XX:JITServerPort=57583
    [JITServerTest] [INFO] With stdout/stderr redirected to:
    /home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/aqa-tests/TKG/output_16710816462220/testJITServer_0/testServerGoesDownAnotherComesUp.secondServer.out
    [JITServerTest] [INFO] Waiting for 45000 millis.
    [JITServerTest] [INFO] Stopping client...
    [JITServerTest] [INFO] Stopping server...
    [JITServerTest] [INFO] running testServerUnreachableForAWhile: INFO and above level logging enabled
    [JITServerTest] [INFO] Chose random port for server: -XX:JITServerPort=58222, set JITServerTest_SERVER_PORT in your env to override.
    [JITServerTest] [INFO] Starting server with command line:
    /home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/openjdkbinary/j2sdk-image/bin/jitserver -XX:JITServerPort=58222
    [JITServerTest] [INFO] With stdout/stderr redirected to:
    /home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/aqa-tests/TKG/output_16710816462220/testJITServer_0/testServerUnreachableForAWhile.server.out
    [JITServerTest] [INFO] Starting client with command line:
    /home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/openjdkbinary/j2sdk-image/bin/java -XX:JITServerPort=58222 -XX:+UseJITServer -Xcompressedrefs -Xjit -Xgcpolicy:gencon -cp /home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/aqa-tests/TKG/../../jvmtest/TestConfig/resources:/home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/aqa-tests/TKG/../TKG/lib/testng.jar:/home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/aqa-tests/TKG/../TKG/lib/jcommander.jar:/home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/aqa-tests/TKG/../../jvmtest/functional/JIT_Test/jitt.jar "-DjarTesterArgs=-loopforever /home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/aqa-tests/TKG/../../jvmtest/functional/JIT_Test/jitt.jar" org.testng.TestNG -d /home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/aqa-tests/TKG/../TKG/output_16710816462220/testJITServer_0/client /home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/aqa-tests/TKG/../../jvmtest/functional/JIT_Test/testng.xml -testnames JarTesterTest -groups level.sanity -excludegroups d.*.linux_x86-64,d.*.arch.x86,d.*.os.linux,d.*.bits.64,d.*.generic-all
    [JITServerTest] [INFO] With stdout/stderr redirected to:
    /home/jenkins/workspace/Test_openjdk19_j9_sanity.functional_x86-64_linux_Nightly_testList_1/aqa-tests/TKG/output_16710816462220/testJITServer_0/testServerUnreachableForAWhile.client.out
    [JITServerTest] [INFO] Waiting for 45000 millis.
    [JITServerTest] [INFO] Pausing server for 10000 millis.
    [JITServerTest] [INFO] Resuming server...
    [JITServerTest] [INFO] Waiting for 45000 millis.
    [JITServerTest] [INFO] Stopping server...
    [JITServerTest] [INFO] Waiting for 45000 millis.
    [JITServerTest] [INFO] Stopping client...
    PASSED: testServer
    PASSED: testServerComesUpAfterClientAndGoesDownAgain
    PASSED: testServerGoesDown
    PASSED: testServerGoesDownAnotherComesUp
    PASSED: testServerUnreachableForAWhile
    FAILED: testServerComesUpAfterClient
    java.lang.AssertionError: Failed to properly start server, it terminated prematurely with exit value: 1
    	at org.testng.AssertJUnit.fail(AssertJUnit.java:59)
    	at jit.test.jitserver.JITServerTest.startProcess(JITServerTest.java:271)
    	at jit.test.jitserver.JITServerTest.testServerComesUpAfterClient(JITServerTest.java:450)
    
  12. pshipton commented on Feb 1, 2023

    @pshipton
    MemberAuthor

    https://openj9-jenkins.osuosl.org/job/Test_openjdk8_j9_sanity.functional_ppc64le_linux_OpenJDK8_testList_0/50
    testJITServer_1

    [JITServerTest] [INFO] running testServerComesUpAfterClient: INFO and above level logging enabled
    [JITServerTest] [INFO] Chose random port for server: -XX:JITServerPort=58650, set JITServerTest_SERVER_PORT in your env to override.
    [JITServerTest] [INFO] Starting client with command line:
    /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_ppc64le_linux_OpenJDK8_testList_0/openjdkbinary/j2sdk-image/bin/java -XX:JITServerPort=58650 -XX:+UseJITServer -Xcompressedrefs -Xjit -Xgcpolicy:gencon -Xshareclasses:none -Xjit:optLevel=hot -cp /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_ppc64le_linux_OpenJDK8_testList_0/aqa-tests/TKG/../../jvmtest/TestConfig/resources:/home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_ppc64le_linux_OpenJDK8_testList_0/aqa-tests/TKG/../TKG/lib/testng.jar:/home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_ppc64le_linux_OpenJDK8_testList_0/aqa-tests/TKG/../TKG/lib/jcommander.jar:/home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_ppc64le_linux_OpenJDK8_testList_0/aqa-tests/TKG/../../jvmtest/functional/JIT_Test/jitt.jar "-DjarTesterArgs=-loopforever /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_ppc64le_linux_OpenJDK8_testList_0/aqa-tests/TKG/../../jvmtest/functional/JIT_Test/jitt.jar" org.testng.TestNG -d /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_ppc64le_linux_OpenJDK8_testList_0/aqa-tests/TKG/../TKG/output_1675206475915/testJITServer_1/client /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_ppc64le_linux_OpenJDK8_testList_0/aqa-tests/TKG/../../jvmtest/functional/JIT_Test/testng.xml -testnames JarTesterTest -groups level.sanity -excludegroups d.*.linux_ppc-64_le,d.*.arch.ppc,d.*.os.linux,d.*.bits.64,d.*.generic-all
    [JITServerTest] [INFO] With stdout/stderr redirected to:
    /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_ppc64le_linux_OpenJDK8_testList_0/aqa-tests/TKG/output_1675206475915/testJITServer_1/testServerComesUpAfterClient.client.out
    [JITServerTest] [INFO] Waiting for 45000 millis.
    [JITServerTest] [INFO] Starting server with command line:
    /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_ppc64le_linux_OpenJDK8_testList_0/openjdkbinary/j2sdk-image/bin/jitserver -XX:JITServerPort=58650
    [JITServerTest] [INFO] With stdout/stderr redirected to:
    /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_ppc64le_linux_OpenJDK8_testList_0/aqa-tests/TKG/output_1675206475915/testJITServer_1/testServerComesUpAfterClient.server.out
    Failed to properly start server, it terminated prematurely with exit value: 1
    Dumping the contents of log file: /home/jenkins/workspace/Test_openjdk8_j9_sanity.functional_ppc64le_linux_OpenJDK8_testList_0/aqa-tests/TKG/output_1675206475915/testJITServer_1/testServerComesUpAfterClient.server.out
    ////////////////////////////////////////////////////////////////////////
    //// can't bind server address: Address already in use
    ...
    FAILED: testServerComesUpAfterClient
    java.lang.AssertionError: Failed to properly start server, it terminated prematurely with exit value: 1
    	at org.testng.AssertJUnit.fail(AssertJUnit.java:59)
    	at jit.test.jitserver.JITServerTest.startProcess(JITServerTest.java:381)
    	at jit.test.jitserver.JITServerTest.testServerComesUpAfterClient(JITServerTest.java:560)
    
    
  13. pshipton commented on Mar 16, 2023

    @pshipton
    MemberAuthor

    https://openj9-jenkins.osuosl.org/job/Test_openjdk19_j9_sanity.functional_ppc64le_linux_Nightly_testList_1/132
    testJITServer_0

    [JITServerTest] [INFO] Chose random port for server: -XX:JITServerPort=38716, set JITServerTest_SERVER_PORT in your env to override.
    
    //// can't bind server address: Address already in use
    
    FAILED: testServerComesUpAfterClientAndGoesDownAgain
    java.lang.AssertionError: Failed to properly start server, it terminated prematurely with exit value: 1
    	at org.testng.AssertJUnit.fail(AssertJUnit.java:59)
    	at jit.test.jitserver.JITServerTest.startProcess(JITServerTest.java:381)
    	at jit.test.jitserver.JITServerTest.testServerComesUpAfterClientAndGoesDownAgain(JITServerTest.java:587)
    
  14. JasonFengJ9 commented on Oct 6, 2023

    @JasonFengJ9
    Member

    JDK11 x86-64_linux milestone 2(sles12x86-svl-rt3-1)

    [2023-10-03T18:14:56.210Z] FAILED: testServerUnreachableForAWhile
    [2023-10-03T18:14:56.210Z] java.lang.AssertionError: Failed to properly start server, it terminated prematurely with exit value: 1
    [2023-10-03T18:14:56.210Z] 	at org.testng.AssertJUnit.fail(AssertJUnit.java:59)
    [2023-10-03T18:14:56.210Z] 	at jit.test.jitserver.JITServerTest.startProcess(JITServerTest.java:381)
    [2023-10-03T18:14:56.210Z] 	at jit.test.jitserver.JITServerTest.testServerUnreachableForAWhile(JITServerTest.java:517)
    
  15. JasonFengJ9 commented on Jan 5, 2024

    @JasonFengJ9
    Member

    JDK21 x86-64_linux(ubu20x86-svl-rt6-1)

    [2024-01-05T05:41:58.667Z] Testing: Test SSL Failure Case with connection to Non-SSL Server
    [2024-01-05T05:41:58.667Z] Test start time: 2024/01/04 21:41:57 Pacific Standard Time
    [2024-01-05T05:41:58.667Z] Running command: bash /home/jenkins/workspace/Test_openjdk21_j9_sanity.functional_x86-64_linux_testList_0/aqa-tests/TKG/../../jvmtest/functional/cmdLineTests/criu/criuJitServerScript.sh /home/jenkins/workspace/Test_openjdk21_j9_sanity.functional_x86-64_linux_testList_0/aqa-tests/TKG/../../jvmtest/functional/cmdLineTests/criu /home/jenkins/workspace/Test_openjdk21_j9_sanity.functional_x86-64_linux_testList_0/jdkbinary/j2sdk-image/bin " -XX:+JVMPortableRestoreMode " org.openj9.criu.OptionsFileTest "JitOptionsTest -XX:+UseJITServer -XX:JITServerSSLRootCerts=nosslserverCert.pem -Xjit:verbose={compilePerformance},verbose={CheckpointRestore},verbose={JITServer},verbose={JITServerConns},vlog=sslVlog3" 1 false true
    [2024-01-05T05:41:58.667Z] Time spent starting: 9 milliseconds
    [2024-01-05T05:42:01.965Z] Time spent executing: 3420 milliseconds
    [2024-01-05T05:42:01.965Z] Test result: FAILED
    [2024-01-05T05:42:01.965Z] Output from test:
    
    [2024-01-05T05:42:01.965Z]  [ERR] -----
    [2024-01-05T05:42:01.965Z]  [ERR] can't bind server address: Address already in use
    
  16. cjjdespres commented on Jan 9, 2024

    @cjjdespres
    Contributor

    This happened again in https://hyc-runtimes-jenkins.swg-devops.com/job/Test_openjdk8_j9_sanity.functional_x86-64_linux_jit_Personal/1514/.

    Looking at the code again, I see a few potential problems. First, there is the race condition in JITServerTest.java that has been noted before - we generate a random port that isn't in use, then pass that port to jitserver so it can listen on it. In between, a process might start using our port, causing jitserver startup to fail. This problem also affects criuJitServerScript.sh and jitserverconfig.sh, which use a similar strategy to generate random ports for certain tests. This timing issue ought to be pretty rare, but maybe we run the tests enough that it happens with this frequency in practice.

    Second, the way we determine whether or not a port is available in JITServerTest.java is

    	private static boolean isPortOpen(int port) {
    		Socket s = null;
    		try {
    			// Connect to the port as a client. If this succeeds, then something else is using that port.
    			s = new Socket((String)null, port);
    			s.close();
    			return false;
    		} catch (IOException e) {
    			// A client connection could not be established, so nothing is using the port.
    			return true;
    		} catch (SecurityException e) {
    			// Access to the port is forbidden.
    			return false;
    		}
    	}

    The only way we return true is if the try block throws an IOException, but I think that exception can be thrown by Socket() and by close() if any IO error occurs, not just one resulting from Socket() being unable to create a client connection because nothing is listening on the port. (Someone might want to confirm that - I'm not very familiar with Java networking). If so, that might result in a false positive in the isPortOpen() test, which might lead us to generate a random port number that's already in use.

    Third, we use lsof to check networking stats, both in JITServerTest.java to see what process might be using our randomly-chosen port and in random_port() in jitserverconfig.sh. The latter is responsible for finding random open ports in criuJitServerScript.sh and jitserverScript.sh. According to https://stackoverflow.com/questions/49381124/what-are-the-differences-between-lsof-and-netstat-on-linux, lsof needs to be run as root if you want reliable information about the usage of all the ports on a system. I don't know if tests are run as root or not, but if not, that might be an issue. One of the answers suggests using netstat -plunt or ss -plunt instead. (The netstat man page on my system says that This program is mostly obsolete. Replacement for netstat is ss., so maybe ss is the choice).

  17. cjjdespres commented on Mar 21, 2024

    @cjjdespres
    Contributor

    I think there may be a robust solution to this. Well, two overlapping solutions.

    1. Any test where the client is to connect to an already-running server can be fixed with Allow JITServer communication and health port 0 #19184: the server can request an unused port for itself, and that port can be read from the server's logs and used to start the client. This is the "correct" way of doing this sort of thing, but doesn't work for tests where the client comes up before the server.

    2. This is more speculative, but in any test (in particular ones where the client comes up without a server already running) we can have something bind to an unused port but not listen on it. This will reserve the port but won't count as having anything listening on it. This port can be used to start the client process, which should (hopefully) still fail to connect, since nothing is listening on the port. We can start the server with a special option (to be implemented) that will allow us to use sendmsg() to transfer the socket to the server process over a unix socket, so the server can start listening on that port. (Or we do something involving fork()). Whatever process bound the socket in the first place can retain a reference to it, so it can give it out again in those tests where the server is supposed to go down and come back up again.

  18. JasonFengJ9 commented on May 21, 2024

    @JasonFengJ9
    Member

    JDK17 s390x_linux(rtj-ubu24s390x-svl-test-6lslg-1)

    [2024-05-18T14:14:46.411Z] variation: -Xjit:count=0
    [2024-05-18T14:14:46.411Z] JVM_OPTIONS:  -Xjit:count=0 
    
    [2024-05-18T14:15:28.694Z] Testing: Test -Xnoaot
    [2024-05-18T14:15:28.694Z] Test start time: 2024/05/18 14:15:26 Coordinated Universal Time
    [2024-05-18T14:15:28.694Z] Running command: bash /home/jenkins/workspace/Test_openjdk17_j9_sanity.functional_s390x_linux_testList_2/aqa-tests/TKG/../../jvmtest/functional/cmdLineTests/criu/criuJitServerScript.sh /home/jenkins/workspace/Test_openjdk17_j9_sanity.functional_s390x_linux_testList_2/aqa-tests/TKG/../../jvmtest/functional/cmdLineTests/criu /home/jenkins/workspace/Test_openjdk17_j9_sanity.functional_s390x_linux_testList_2/jdkbinary/j2sdk-image/bin " -Xjit:count=0 " org.openj9.criu.OptionsFileTest "JitOptionsTest -XX:+UseJITServer -Xnoaot" 1 false false
    [2024-05-18T14:15:28.694Z] Time spent starting: 2 milliseconds
    [2024-05-18T14:15:29.107Z] Time spent executing: 2052 milliseconds
    [2024-05-18T14:15:29.107Z] Test result: FAILED
    [2024-05-18T14:15:29.107Z] Output from test:
    [2024-05-18T14:15:29.107Z]  [OUT] start running script
    [2024-05-18T14:15:29.107Z]  [OUT] export GLIBC_TUNABLES=glibc.cpu.hwcaps=-XSAVEC,-XSAVE,-AVX2,-ERMS,-AVX,-AVX_Fast_Unaligned_Load
    [2024-05-18T14:15:29.107Z]  [OUT] export LD_BIND_NOT=on
    [2024-05-18T14:15:29.107Z]  [OUT] Starting /home/jenkins/workspace/Test_openjdk17_j9_sanity.functional_s390x_linux_testList_2/jdkbinary/j2sdk-image/bin/jitserver -XX:JITServerPort=46930 -XX:JITServerHealthProbePort=43187 
    [2024-05-18T14:15:29.107Z]  [OUT] JITSERVER DOES NOT EXIST
    [2024-05-18T14:15:29.107Z]  [OUT] finished script
    [2024-05-18T14:15:29.107Z]  [ERR] /home/jenkins/workspace/Test_openjdk17_j9_sanity.functional_s390x_linux_testList_2/aqa-tests/TKG/../../jvmtest/functional/cmdLineTests/criu/jitserverconfig.sh: line 30: lsof: command not found
    [2024-05-18T14:15:29.107Z]  [ERR] /home/jenkins/workspace/Test_openjdk17_j9_sanity.functional_s390x_linux_testList_2/aqa-tests/TKG/../../jvmtest/functional/cmdLineTests/criu/jitserverconfig.sh: line 30: lsof: command not found
    [2024-05-18T14:15:29.107Z]  [ERR] JITServer is currently a technology preview. Its use is not yet supported.
    [2024-05-18T14:15:29.107Z]  [ERR] can't bind server address: Address already in use
    [2024-05-18T14:15:29.107Z]  [ERR] Failed to open server socket on port 46930
    
    [2024-05-18T14:17:59.604Z] ---TEST RESULTS---
    [2024-05-18T14:17:59.604Z] Number of PASSED tests: 10 out of 11
    [2024-05-18T14:17:59.604Z] Number of FAILED tests: 1 out of 11
    [2024-05-18T14:17:59.604Z] 
    [2024-05-18T14:17:59.604Z] ---SUMMARY OF FAILED TESTS---
    [2024-05-18T14:17:59.604Z] Test -Xnoaot
    [2024-05-18T14:17:59.604Z] -----------------------------
    [2024-05-18T14:17:59.604Z] 
    [2024-05-18T14:17:59.604Z] -----------------------------------
    [2024-05-18T14:17:59.604Z] cmdLineTester_criu_jitserverPostRestore_1_FAILED
    
  19. JasonFengJ9 commented on May 30, 2025

    @JasonFengJ9
    Member

    openjdk11_j9_sanity.functional_aarch64_linux

    [2025-05-29T17:33:00.377Z] variation: Mode610 -Xshareclasses:name=test_jitscc -XX:+JITServerUseAOTCache
    [2025-05-29T17:33:00.377Z] JVM_OPTIONS:  -Xcompressedrefs -Xjit -Xgcpolicy:gencon -Xshareclasses:name=test_jitscc -XX:+JITServerUseAOTCache 
    
    [2025-05-29T17:36:27.309Z] //// can't bind server address: Address already in use
    [2025-05-29T17:36:27.309Z] //// Failed to open server socket on port 56698
    
    [2025-05-29T17:45:40.153Z] FAILED: testServerComesUpAfterClient
    [2025-05-29T17:45:40.153Z] java.lang.AssertionError: Failed to properly start server, it terminated prematurely with exit value: 1
    [2025-05-29T17:45:40.153Z] 	at org.testng.AssertJUnit.fail(AssertJUnit.java:59)
    [2025-05-29T17:45:40.153Z] 	at jit.test.jitserver.JITServerTest.startProcess(JITServerTest.java:382)
    [2025-05-29T17:45:40.153Z] 	at jit.test.jitserver.JITServerTest.testServerComesUpAfterClient(JITServerTest.java:561)
    
    [2025-05-29T17:45:40.155Z] testJITServer_2_FAILED
    
  20. JasonFengJ9 commented on Apr 20, 2026

    @JasonFengJ9
    Member

    openjdk17_j9_sanity.functional_x86-64_linux

    [2026-04-16T17:46:25.926Z] Running test testJITServer_5 ...
    [2026-04-16T17:46:25.926Z] ===============================================
    [2026-04-16T17:46:25.926Z] testJITServer_5 Start Time: Thu Apr 16 10:46:24 2026 Epoch Time (ms): 1776361584742
    [2026-04-16T17:46:25.926Z] variation: Mode551 -Xshareclasses:name=test_jitscc -XX:+JITServerUseAOTCache
    [2026-04-16T17:46:25.926Z] JVM_OPTIONS:  -XX:+UseCompressedOops -Xjit -Xgcpolicy:balanced -Xshareclasses:name=test_jitscc -XX:+JITServerUseAOTCache 
    
    [2026-04-16T17:57:21.978Z] FAILED: testServerUnreachableForAWhile
    [2026-04-16T17:57:21.978Z] java.lang.AssertionError: Failed to properly start server, it terminated prematurely with exit value: 1
    [2026-04-16T17:57:21.978Z] 	at org.testng.AssertJUnit.fail(AssertJUnit.java:59)
    [2026-04-16T17:57:21.978Z] 	at jit.test.jitserver.JITServerTest.startProcess(JITServerTest.java:382)
    [2026-04-16T17:57:21.978Z] 	at jit.test.jitserver.JITServerTest.testServerUnreachableForAWhile(JITServerTest.java:518)
    
  21. hzongaro commented on Nov 11, 2026

    @hzongaro
    Member

    Saw another instance of this in:

    https://hyc-runtimes-jenkins.swg-devops.com/job/Test_openjdk11_j9_sanity.functional_x86-64_linux_Personal_testList_2/161/

    https://hyc-runtimes-jenkins.swg-devops.com/job/Test_openjdk11_j9_sanity.functional_ppc64le_linux_Personal_testList_3/82/

            FAILED: testServerAOTCache
            java.lang.AssertionError: Failed to properly start server, it terminated prematurely with exit value: 1
            	at org.testng.AssertJUnit.fail(AssertJUnit.java:59)
            	at jit.test.jitserver.JITServerTest.startProcess(JITServerTest.java:382)
            	at jit.test.jitserver.JITServerTest.testServerAOTCache(JITServerTest.java:618)
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    comp:jitservertest failure

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions