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

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Won't Do
    • Major
    • None
    • 5.3.4.Final
    • JTA, TxBridge, XTS
    • 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

      Attachments

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

        Activity

          People

            gtrikler@redhat.com Gytis Trikleris (Inactive)
            zeguan@redhat.com Zefa Guan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: