JBoss Community

Re: EJB3 is slow when invoke with new transaction

created by Kalaiselvam P in EJB3 - View the full discussion

Time was taken when commit the transaction. (may due to heavy load in DB server)

 

2013-06-06 01:48:17,919 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] (http-10.32.131.25-80-13) BasicAction::End() for action-id a208319:d48e:51aeeaba:1a03

2013-06-06 01:48:17,919 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] (http-10.32.131.25-80-13) BasicAction::onePhaseCommit() for action-id a208319:d48e:51aeeaba:1a03

2013-06-06 01:48:17,919 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] (http-10.32.131.25-80-13) LastResourceRecord::topLevelPrepare() for 0:0:0:1

2013-06-06 01:48:18,686 DEBUG [com.arjuna.ats.arjuna.logging.arjLogger] (http-10.32.131.25-80-13) LastResourceRecord::topLevelCommit() for 0:0:0:1

 

http://anonsvn.jboss.org/repos/labs/labs/jbosstm/tags/JBOSSTS_4_6_1_GA_CP04/ArjunaCore/arjuna/classes/com/arjuna/ats/arjuna/LastResourceRecord.java

 

151 public int topLevelCommit ()

152 {

153 if (tsLogger.arjLogger.debugAllowed())

154 {

155 tsLogger.arjLogger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, FacilityCode.FAC_ABSTRACT_REC, "LastResourceRecord::topLevelCommit() for "

156           + order());

157 }

158

159 return TwoPhaseOutcome.FINISH_OK;

160 }

161

162 public int topLevelPrepare ()

163 {

164 if (tsLogger.arjLogger.debugAllowed())

165 {

166 tsLogger.arjLogger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, FacilityCode.FAC_ABSTRACT_REC, "LastResourceRecord::topLevelPrepare() for "

167           + order());

168 }

169

170 if ((_lro != null) && (_lro.commit() == TwoPhaseOutcome.FINISH_OK))

171 {

172 return TwoPhaseOutcome.PREPARE_OK;

173 }

174 else

175 return TwoPhaseOutcome.PREPARE_NOTOK;

  176   }


Reply to this message by going to Community

Start a new discussion in EJB3 at Community