glassfish
  1. glassfish
  2. GLASSFISH-10080

[BLOCKING]MDBs use unbounded thread pool; causing numerous resource errors

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: V3
    • Fix Version/s: V3
    • Component/s: jca
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      10,080

      Description

      MDBs are being run on the ORB's default threadpool, which is unbounded. (It is
      also the com.sun.corba.se threadpool from the JDK, not the com.sun.corba.ee
      implementation from glassfish). This leads to an explosion of threads (and, e.g.
      database connections for each thread) as load is added to a system.

      They need to run on a bounded, configurable thread-pool (presumably a threadpool
      from S1ASThreadPoolManager instead of the ORB).

        Activity

        Hide
        Jagadish added a comment -

        Created an attachment (id=3610)
        server.log with exceptions

        Show
        Jagadish added a comment - Created an attachment (id=3610) server.log with exceptions
        Hide
        Mahesh Kannan added a comment -

        Before IIOPUtils and S1ASThreadPoolManager classes were moved to orb-connector,
        IIIOPUtils was initialized from GlassFishOrbFactory.

        After we have moved these two classes, IIOP is not initialized at all by the
        time the connector runtime calls getThreadPool().

        Once I made IIOUtils to implement Startup things worked fine. Ideally,
        S1ASThreadPoolManager should get hold of IIOPUtils through habitat. I should
        have a (proper) fix for this issue very soon.

        Show
        Mahesh Kannan added a comment - Before IIOPUtils and S1ASThreadPoolManager classes were moved to orb-connector, IIIOPUtils was initialized from GlassFishOrbFactory. After we have moved these two classes, IIOP is not initialized at all by the time the connector runtime calls getThreadPool(). Once I made IIOUtils to implement Startup things worked fine. Ideally, S1ASThreadPoolManager should get hold of IIOPUtils through habitat. I should have a (proper) fix for this issue very soon.
        Hide
        Mahesh Kannan added a comment -

        Fixed S1ASThreadPoolManager. Transferring it to Jagadish

        Show
        Mahesh Kannan added a comment - Fixed S1ASThreadPoolManager. Transferring it to Jagadish
        Hide
        Jagadish added a comment -

        Made changes in work-management module to use ORB thread pool.

        FIX INFORMATION

        svn log -v -r 33496

        https://glassfish-svn.dev.java.net/servlets/ReadMsg?list=commits&msgNo=16028

        Fix will be available in GF V3 b71 (Oct-30) nightly

        Show
        Jagadish added a comment - Made changes in work-management module to use ORB thread pool. FIX INFORMATION svn log -v -r 33496 https://glassfish-svn.dev.java.net/servlets/ReadMsg?list=commits&msgNo=16028 Fix will be available in GF V3 b71 (Oct-30) nightly
        Hide
        Jagadish added a comment -

        updated target build

        Show
        Jagadish added a comment - updated target build

          People

          • Assignee:
            Jagadish
            Reporter:
            Scott Oaks
          • Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: