Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-4786

MSC controller hangs when loading an ear with multiple persistence units on a single CPU core machine

    XMLWordPrintable

Details

    • Hide

      Deploy an EAR with two persistence units on a single core machine

      Show
      Deploy an EAR with two persistence units on a single core machine
    • Hide

      1. Start the AS with -Dorg.jboss.server.bootstrap.maxThreads=3
      You might have to use a higher number for maxThreads (set to 2 + number of persistence units with "hibernate.session_factory_name".)

      OR

      2. Remove "hibernate.session_factory_name" properties from the persistence.xml
      <property name="hibernate.session_factory_name" value="java:global/hibernate/SessionFactory"/>

      Show
      1. Start the AS with -Dorg.jboss.server.bootstrap.maxThreads=3 You might have to use a higher number for maxThreads (set to 2 + number of persistence units with "hibernate.session_factory_name".) OR 2. Remove "hibernate.session_factory_name" properties from the persistence.xml <property name="hibernate.session_factory_name" value="java:global/hibernate/SessionFactory"/>

    Description

      When deploying an EAR with two persistence units on single core machines, the server hangs.
      When increasing the number of cores to two, the same server just works.

      I traced the bug to the method in org.jboss.as.naming.WritableServiceBasedNamingStore.unbind
      The container attempts to register "hibernate/SessionFactory" twice.
      The first time it works, the second time it hangs on the wait statement.

      I suspect a race condition in the ServiceControllerImpl.

      Attachments

        Issue Links

          Activity

            People

              smarlow1@redhat.com Scott Marlow
              danamin Wouter De Borger (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: