[jbossts-issues] [JBoss JIRA] (JBTM-2746) facing performane issue when setup narayana JTA and txbridge out of JBoss
Zefa Guan (JIRA)
issues at jboss.org
Thu Sep 1 10:26:00 EDT 2016
[ https://issues.jboss.org/browse/JBTM-2746?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Zefa Guan updated JBTM-2746:
----------------------------
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.
==================================================
{code}
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
--------------------------------------------------------------
{code}
---------------------------------------------
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
was:
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
{code}
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
--------------------------------------------------------------
{code}
---------------------------------------------
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
> facing performane issue when setup narayana JTA and txbridge out of JBoss
> -------------------------------------------------------------------------
>
> Key: JBTM-2746
> URL: https://issues.jboss.org/browse/JBTM-2746
> Project: JBoss Transaction Manager
> Issue Type: Enhancement
> Reporter: Zefa Guan
> Attachments: ServiceA_logs.zip, ServiceB_logs.zip, ServiceC_logs.zip
>
>
> 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.
> ==================================================
> {code}
> 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
> --------------------------------------------------------------
> {code}
> ---------------------------------------------
> 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
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jbossts-issues
mailing list