Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1
    • Component/s: performance
    • Labels:
      None

      Description

      We could boot GlassFish startup services in parallel to get better startup performance

        Issue Links

          Activity

          Hide
          jwells added a comment -

          The default was put back to using multiple threads in the server (with a maximum number of threads at 4) at change 61427

          Show
          jwells added a comment - The default was put back to using multiple threads in the server (with a maximum number of threads at 4) at change 61427
          Hide
          jwells added a comment -

          There are two deadlocks that have been found. Backing out the default change until the deadlocks can be fixed.

          Show
          jwells added a comment - There are two deadlocks that have been found. Backing out the default change until the deadlocks can be fixed.
          Hide
          David Zhao added a comment -

          Revision 61428 causes WARNING messages logged in server.log, which is a regression.

          It is easy to reproduce:

          1. start glassfish
          2. asadmin jms-ping --target server
          3. shut down glassfish

          Then WARNING appears in server.log,

          [2013-04-22T11:13:48.973+0800] [glassfish 4.0] [WARNING] [] [javax.enterprise.resource.jms.com.sun.enterprise.connectors.jms.system] [tid: _ThreadID=133 _ThreadName=Thread-29] [timeMillis: 1366600428973] [levelValue: 900] [[
          Error occurs when shutting down JMSRA: Service com.sun.enterprise.v3.services.impl.GrizzlyService was started at level 0 but it has a run level of 10. The full descriptor is SystemDescriptor(
          implementation=com.sun.enterprise.v3.services.impl.GrizzlyService
          contracts=

          {com.sun.enterprise.v3.services.impl.GrizzlyService,org.glassfish.api.container.RequestDispatcher}
          scope=org.glassfish.hk2.runlevel.RunLevel
          qualifiers={}
          descriptorType=CLASS
          descriptorVisibility=NORMAL
          metadata=runLevelValue={10},Bundle-SymbolicName={org.glassfish.main.core.kernel},Bundle-Version={4.0.0.SNAPSHOT}
          rank=50
          loader=OsgiPopulatorPostProcessor.HK2Loader(OSGiModuleImpl:: Bundle = [org.glassfish.main.core.kernel [192]], State = [READY],9394331)
          proxiable=null
          analysisName=null
          id=690
          locatorId=0
          identityHashCode=16925195
          reified=true)]]

          [2013-04-22T11:13:48.973+0800] [glassfish 4.0] [WARNING] [ra.stop.failed] [javax.enterprise.resource.resourceadapter.com.sun.enterprise.connectors.service] [tid: _ThreadID=132 _ThreadName=Thread-28] [timeMillis: 1366600428973] [levelValue: 900] [[
          RAR8053: RA [ jmsra ] stop failed, java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.lang.IllegalStateException: Service com.sun.enterprise.v3.services.impl.GrizzlyService was started at level 0 but it has a run level of 10. The full descriptor is SystemDescriptor(
          implementation=com.sun.enterprise.v3.services.impl.GrizzlyService
          contracts={com.sun.enterprise.v3.services.impl.GrizzlyService,org.glassfish.api.container.RequestDispatcher}

          scope=org.glassfish.hk2.runlevel.RunLevel
          qualifiers={}
          descriptorType=CLASS
          descriptorVisibility=NORMAL
          metadata=runLevelValue=

          {10}

          ,Bundle-SymbolicName=

          {org.glassfish.main.core.kernel}

          ,Bundle-Version=

          {4.0.0.SNAPSHOT}

          rank=50
          loader=OsgiPopulatorPostProcessor.HK2Loader(OSGiModuleImpl:: Bundle = [org.glassfish.main.core.kernel [192]], State = [READY],9394331)
          proxiable=null
          analysisName=null
          id=690
          locatorId=0
          identityHashCode=16925195
          reified=true)]]

          [2013-04-22T11:13:48.974+0800] [glassfish 4.0] [INFO] [] [javax.enterprise.resource.resourceadapter.com.sun.enterprise.connectors.service] [tid: _ThreadID=132 _ThreadName=Thread-28] [timeMillis: 1366600428974] [levelValue: 800] [[
          shutdown of RA [ jmsra ] is either already complete or already cancelled]]

          [2013-04-22T11:13:48.974+0800] [glassfish 4.0] [WARNING] [ra.stop-unsuccessful] [javax.enterprise.resource.resourceadapter.com.sun.enterprise.connectors.service] [tid: _ThreadID=132 _ThreadName=Thread-28] [timeMillis: 1366600428974] [levelValue: 900] [[
          RAR7095: jmsra shutdown unsuccessful. Please refer the server and/or resource adapter logs for more information.]]

          Show
          David Zhao added a comment - Revision 61428 causes WARNING messages logged in server.log, which is a regression. It is easy to reproduce: 1. start glassfish 2. asadmin jms-ping --target server 3. shut down glassfish Then WARNING appears in server.log, [2013-04-22T11:13:48.973+0800] [glassfish 4.0] [WARNING] [] [javax.enterprise.resource.jms.com.sun.enterprise.connectors.jms.system] [tid: _ThreadID=133 _ThreadName=Thread-29] [timeMillis: 1366600428973] [levelValue: 900] [[ Error occurs when shutting down JMSRA: Service com.sun.enterprise.v3.services.impl.GrizzlyService was started at level 0 but it has a run level of 10. The full descriptor is SystemDescriptor( implementation=com.sun.enterprise.v3.services.impl.GrizzlyService contracts= {com.sun.enterprise.v3.services.impl.GrizzlyService,org.glassfish.api.container.RequestDispatcher} scope=org.glassfish.hk2.runlevel.RunLevel qualifiers={} descriptorType=CLASS descriptorVisibility=NORMAL metadata=runLevelValue={10},Bundle-SymbolicName={org.glassfish.main.core.kernel},Bundle-Version={4.0.0.SNAPSHOT} rank=50 loader=OsgiPopulatorPostProcessor.HK2Loader(OSGiModuleImpl:: Bundle = [org.glassfish.main.core.kernel [192] ], State = [READY] ,9394331) proxiable=null analysisName=null id=690 locatorId=0 identityHashCode=16925195 reified=true)]] [2013-04-22T11:13:48.973+0800] [glassfish 4.0] [WARNING] [ra.stop.failed] [javax.enterprise.resource.resourceadapter.com.sun.enterprise.connectors.service] [tid: _ThreadID=132 _ThreadName=Thread-28] [timeMillis: 1366600428973] [levelValue: 900] [[ RAR8053: RA [ jmsra ] stop failed, java.util.concurrent.ExecutionException: java.lang.RuntimeException: java.lang.IllegalStateException: Service com.sun.enterprise.v3.services.impl.GrizzlyService was started at level 0 but it has a run level of 10. The full descriptor is SystemDescriptor( implementation=com.sun.enterprise.v3.services.impl.GrizzlyService contracts={com.sun.enterprise.v3.services.impl.GrizzlyService,org.glassfish.api.container.RequestDispatcher} scope=org.glassfish.hk2.runlevel.RunLevel qualifiers={} descriptorType=CLASS descriptorVisibility=NORMAL metadata=runLevelValue= {10} ,Bundle-SymbolicName= {org.glassfish.main.core.kernel} ,Bundle-Version= {4.0.0.SNAPSHOT} rank=50 loader=OsgiPopulatorPostProcessor.HK2Loader(OSGiModuleImpl:: Bundle = [org.glassfish.main.core.kernel [192] ], State = [READY] ,9394331) proxiable=null analysisName=null id=690 locatorId=0 identityHashCode=16925195 reified=true)]] [2013-04-22T11:13:48.974+0800] [glassfish 4.0] [INFO] [] [javax.enterprise.resource.resourceadapter.com.sun.enterprise.connectors.service] [tid: _ThreadID=132 _ThreadName=Thread-28] [timeMillis: 1366600428974] [levelValue: 800] [[ shutdown of RA [ jmsra ] is either already complete or already cancelled]] [2013-04-22T11:13:48.974+0800] [glassfish 4.0] [WARNING] [ra.stop-unsuccessful] [javax.enterprise.resource.resourceadapter.com.sun.enterprise.connectors.service] [tid: _ThreadID=132 _ThreadName=Thread-28] [timeMillis: 1366600428974] [levelValue: 900] [[ RAR7095: jmsra shutdown unsuccessful. Please refer the server and/or resource adapter logs for more information.]]
          Hide
          jwells added a comment -

          Backing it out... again.

          Default policy is USE_NO_THREADS at change 61605

          Show
          jwells added a comment - Backing it out... again. Default policy is USE_NO_THREADS at change 61605
          Hide
          jwells added a comment -

          We are currently running startup services in parallel. If bugs/deadlocks are found please enter individual JIRA issues

          Show
          jwells added a comment - We are currently running startup services in parallel. If bugs/deadlocks are found please enter individual JIRA issues

            People

            • Assignee:
              jwells
              Reporter:
              jwells
            • Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: