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

    Workmanager in Weblogic 12.1.1 exceeded maximum capacity of 8192

      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?


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

      public void release() {
      // ignored.

      public void run() {
      WorkItem workItem = myWorkManager.schedule(work);

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