0 Replies Latest reply on Jun 6, 2013 8:33 AM by user11359507

    Workmanager in Weblogic 12.1.1 exceeded maximum capacity of 8192

    user11359507
      We upgraded from Weblogic 10.3.3 to Weblogic 12.1.1
      We defined a Workamanger with a MaxThreadsConstraint, value = 4. This works well on Weblogic 10.3.3

      With Weblogic 12.1.1:

      When we schedule 7000 WorkItems we don't get an exception.

      When we schedule 10000 WorkItems we get the following exception:

      MaxThreads constraint 'MaxThreadsConstraint-4' queue for workManager 'MyWorkManager' exceeded maximum capacity of '8192' elements. Max threads constraint count is set to 4
      at weblogic.work.MaxThreadsConstraint.add(MaxThreadsConstraint.java:114)

      If we remove the MaxThreadsConstraint from the WorkManager, we can schedule 10000 WorkItems without this exception.

      We tried to find out where to switch the value of 8192 to a higher value in the Weblogic console but didn't find anything.

      Has anyone an idea how to solve this problem?

      Thanks,
      Astrid

      List<WorkItem> workItems = new ArrayList<WorkItem>();
      for (final Integer id : allIds){
      final Work work = new Work() {
      @Override
      public boolean isDaemon() {
      return false;
      }

      @Override
      public void release() {
      // ignored.
      }

      @Override
      public void run() {
      myManager.start(id);
      }
      };
      WorkItem workItem = myWorkManager.schedule(work);
      workItems.add(workItem);
      }

      myWorkManager.waitForAll(workItems, WorkManager.INDEFINITE);
      for (WorkItem workItem : workItems) {
      workItem.getResult();
      }