Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-2746

facing performane issue when setup narayana JTA and txbridge out of JBoss

    Details

    • Type: Enhancement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: 5.3.4.Final
    • Fix Version/s: None
    • Component/s: JTA, TxBridge, XTS
    • Labels:
      None

      Description

      when setup txbridge under Tomcat8 out of JBoss, I am facing performance issue as below scenario;
      1) running 3 tomcat instances
      2) A call B via WS
      3) B call C via WS
      4) when 100 - 200 GET query from " http://localhost:8081/user?action=add " via Service A, all 3 tomcat got stuck for a while then raise exception with attached logs

      sth similar with quickstart example but no EJB and out of JBoss from https://github.com/jbosstm/quickstart/tree/master/XTS
      ==================================================
      WS-AT to JTA (Multi Hop)

      This example demonstrates a JTA client that invokes a remote EJB over Web services. The JTA transaction is distributed to the remote EJB using WS-AtomicTransaction. The service also acts as a client to a second service. Again using WS-AT to distribute the transaction over Web services.
      ==================================================

           servlet client - localhost:8081/user?action=add 
                |
      --------------------------------------------------------------
          ServiceA Tomcat
          Narayana JTA 
          Webservie - localhost:8082/user?action=add
      --------------------------------------------------------------
                |
             txbridge
                |
      --------------------------------------------------------------
          ServiceB Tomcat
          Narayana JTA 
          Webservie - localhost:8083/user?action=add
      --------------------------------------------------------------
                |
             txbridge 
                |
      --------------------------------------------------------------
          ServiceB Tomcat
          Narayana JTA 
      --------------------------------------------------------------
      

      ---------------------------------------------
      this may caused by race condition/socket timeout/exceed limits, will need to reproduce and research more;
      at the beginning I thought it was caused by DB resource locking failed but after I commented out all DB access, the problem still there
      put all my code to https://github.com/JonkeyGuan/txbridgeInTomcat8 for reproducing and reference

        Gliffy Diagrams

          Attachments

          1. ServiceC_logs.zip
            187 kB
          2. ServiceB_logs.zip
            331 kB
          3. ServiceA_logs.zip
            570 kB

            Activity

              People

              • Assignee:
                gytis Gytis Trikleris
                Reporter:
                zeguan Zefa Guan
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: