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

JMXStatusPerfCountersTest.java fails on Solaris-X64

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: 11
    • Fix Version/s: 12
    • Component/s: core-svc
    • Labels:
      None

      Description

      The following test failed on Solaris X64 in fastdebug,
      release and slowdebug configs using jdk11+19 bits:

      sun/management/jmxremote/startstop/JMXStatusPerfCountersTest.java

      The test timed out in all configs, but it is not clear why the
      test has timed out. I executed three complete test runs so
      there are a total of 9 failure logs for this bug to start with.

      The stdout section of the logs has message that look like this:

      [jcmd]:/work/shared/bug_hunt/thread_SMR_stress/jdk11_exp/build/solaris-x86_64-normal-server-fastdebug/images/jdk/bin/jcmd TestApp ManagementAgent.start jmxremote.port=49775 jmxremote.authenticate=false jmxremote.ssl=false
      [jcmd] 4963:
      [jcmd] Command executed successfully
      [jcmd] 14728:
      Failed to allocate ports. Retrying ...
      [jcmd]:/work/shared/bug_hunt/thread_SMR_stress/jdk11_exp/build/solaris-x86_64-normal-server-fastdebug/images/jdk/bin/jcmd TestApp ManagementAgent.start jmxremote.port=62705 jmxremote.authenticate=false jmxremote.ssl=false
      [jcmd] 4963:
      [jcmd] 14728:
      [jcmd] Command executed successfully
      [jcmd]:/work/shared/bug_hunt/thread_SMR_stress/jdk11_exp/build/solaris-x86_64-normal-server-fastdebug/images/jdk/bin/jcmd TestApp ManagementAgent.stop
      [jcmd] 4963:
      [jcmd] Command executed successfully
      [jcmd] 14728:
      [jcmd] Command executed successfully
      [jcmd]:/work/shared/bug_hunt/thread_SMR_stress/jdk11_exp/build/solaris-x86_64-normal-server-fastdebug/images/jdk/bin/jcmd TestApp ManagementAgent.start jmxremote.port=62705 jmxremote.authenticate=false jmxremote.ssl=false
      [jcmd] 4963:
      [jcmd] Command executed successfully
      [jcmd] 14728:
      Failed to allocate ports. Retrying ...
      [jcmd]:/work/shared/bug_hunt/thread_SMR_stress/jdk11_exp/build/solaris-x86_64-normal-server-fastdebug/images/jdk/bin/jcmd TestApp ManagementAgent.start jmxremote.port=60453 jmxremote.authenticate=false jmxremote.ssl=false
      [jcmd] 4963:
      [jcmd] 14728:
      [jcmd] Command executed successfully

      We have the same sequences that fail, retry and work
      perhaps a couple of times, fail, retry and work...

      The stderr section of the logs shows message like this:

      ----------System.err:(972/91406)----------
      [jcmd] java.lang.RuntimeException: Invalid agent state: Agent already started
      [TestApp] Error: Exception thrown by the agent : java.rmi.server.ExportException: Port already in use: 54116; nested exception is:
      [TestApp] java.net.BindException: Address already in use (Bind failed)
      [TestApp] jdk.internal.agent.AgentConfigurationError: java.rmi.server.ExportException: Port already in use: 54116; nested exception is:
      [TestApp] java.net.BindException: Address already in use (Bind failed)
      [TestApp] at jdk.management.agent/sun.management.jmxremote.ConnectorBootstrap.startRemoteConnectorServer(ConnectorBootstrap.java:491)
      [TestApp] at jdk.management.agent/jdk.internal.agent.Agent.startRemoteManagementAgent(Agent.java:388)
      [TestApp] Caused by: java.rmi.server.ExportException: Port already in use: 54116; nested exception is:
      [TestApp] java.net.BindException: Address already in use (Bind failed)
      [TestApp] at java.rmi/sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:335)
      [TestApp] at java.rmi/sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:243)
      [TestApp] at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:411)
      [TestApp] at java.rmi/sun.rmi.transport.LiveRef.exportObject(LiveRef.java:147)
      [TestApp] at java.rmi/sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:233)
      [TestApp] at java.rmi/sun.rmi.registry.RegistryImpl.setup(RegistryImpl.java:220)
      [TestApp] at java.rmi/sun.rmi.registry.RegistryImpl.<init>(RegistryImpl.java:180)
      [TestApp] at jdk.management.agent/sun.management.jmxremote.SingleEntryRegistry.<init>(SingleEntryRegistry.java:49)
      [TestApp] at jdk.management.agent/sun.management.jmxremote.ConnectorBootstrap.exportMBeanServer(ConnectorBootstrap.java:836)
      [TestApp] at jdk.management.agent/sun.management.jmxremote.ConnectorBootstrap.startRemoteConnectorServer(ConnectorBootstrap.java:479)
      [TestApp] ... 1 more
      [TestApp] Caused by: java.net.BindException: Address already in use (Bind failed)
      [TestApp] at java.base/java.net.PlainSocketImpl.socketBind(Native Method)
      [TestApp] at java.base/java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:435)
      [TestApp] at java.base/java.net.ServerSocket.bind(ServerSocket.java:381)
      [TestApp] at java.base/java.net.ServerSocket.<init>(ServerSocket.java:243)
      [TestApp] at java.base/java.net.ServerSocket.<init>(ServerSocket.java:135)
      [TestApp] at java.rmi/sun.rmi.transport.tcp.TCPDirectSocketFactory.createServerSocket(TCPDirectSocketFactory.java:45)
      [TestApp] at java.rmi/sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:666)
      [TestApp] at java.rmi/sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:324)
      [TestApp] ... 10 more

        Attachments

          Activity

            People

            • Assignee:
              hb Harsha Wardhana B (Inactive)
              Reporter:
              dcubed Daniel Daugherty
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: