Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-14524

[GSS](7.1.z) EJB race condition can cause client to be in awaitResponse while server is done

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • 7.1.1.GA
    • EJB
    • None
    • +
    • Hide

      For use case of servlets invoking remote ejbs, specify a max-concurrent-requests filter such that it is about 10 less than the max number of EJB threads on the remote server.

      /profile=client/subsystem=undertow/configuration=filter/request-limit=mylimit:add(max-concurrent-requests=118)
      /profile=client/subsystem=undertow/server=default-server/host=default-host/filter-ref=mylimit:add()
      

      Another workaround is to specify the EJB thread pool size to be greater than the number of max concurrent client requests

      Show
      For use case of servlets invoking remote ejbs, specify a max-concurrent-requests filter such that it is about 10 less than the max number of EJB threads on the remote server. /profile=client/subsystem=undertow/configuration=filter/request-limit=mylimit:add(max-concurrent-requests=118) /profile=client/subsystem=undertow/server= default -server/host= default -host/filter-ref=mylimit:add() Another workaround is to specify the EJB thread pool size to be greater than the number of max concurrent client requests
    • Hide

      Reproducer attached will configure a domain mode with 2 server instances and a jmeter script will provide load.

      unzip -d $JBOSS_HOME/ reproducer-setup.zip
      cd $JBOSS_HOME/
      ./setup.sh .
      ./bin/domain.sh

      Start jmeter and open $JBOSS_HOME/testEJBIssue.jmx
      Click run
      tail -f domain/servers/server/log/server.log
      Once it stops logging, take thread dumps

      Show
      Reproducer attached will configure a domain mode with 2 server instances and a jmeter script will provide load. unzip -d $JBOSS_HOME/ reproducer-setup.zip cd $JBOSS_HOME/ ./setup.sh . ./bin/domain.sh Start jmeter and open $JBOSS_HOME/testEJBIssue.jmx Click run tail -f domain/servers/server/log/server.log Once it stops logging, take thread dumps

      With a client jboss server1 that has a client servlet that invokes a remote EJB on jboss server2 configured using server to server config in the standalone.xml/domain.xml outbound remoting connection, the client side can get stuck in awaitResponse while the server side has finished processing.

        1. thread-pid-43020-date-2018-10-20-00-08-0.log
          50 kB
        2. thread-dumps.zip
          117 kB
        3. setup-remoting.cli
          1 kB
        4. reproducer-setup.zip
          33 kB
        5. reproducer.jar
          25 kB
        6. remote-protocol-thread-dumps.tar.xz
          15 kB
        7. logs-showing-stacks-that-use-io-threads.zip
          34 kB
        8. logs.zip
          19 kB

              tadamski@redhat.com Tomasz Adamski
              rhn-support-bmaxwell Brad Maxwell
              Votes:
              1 Vote for this issue
              Watchers:
              16 Start watching this issue

                Created:
                Updated:
                Resolved: