[JBoss Messaging] - Transaction related warning in JBM 1.0.1 logs
by Craig2007
Hi
I am using jboss-messaging-1.0.1.GA with JBossAS 4.0.4GA
I just posted 10 million message sequentially to a durable topic configured in JBM.
Message were getting consumed properly .But i cud able to see some warning message in the JBM server log
18:46:20,288 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
18:46:20,304 INFO [JkMain] Jk running ID=0 time=0/63 config=null
18:46:20,319 INFO [Server] JBoss (MX MicroKernel) [4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)] Started in 24s:452ms
21:13:42,055 WARN [TransactionImpl] Transaction TransactionImpl:XidImpl[FormatId=257, GlobalId=01hw044682/132795, BranchQual=, localId=132795] timed out. status=STATUS_ACTIVE
21:47:25,608 WARN [TransactionImpl] Transaction TransactionImpl:XidImpl[FormatId=257, GlobalId=01hw044682/166175, BranchQual=, localId=166175] timed out. status=STATUS_ACTIVE
22:13:34,963 WARN [TransactionImpl] Transaction TransactionImpl:XidImpl[FormatId=257, GlobalId=01hw044682/185615, BranchQual=, localId=185615] timed out. status=STATUS_ACTIVE
22:26:35,343 WARN [TransactionImpl] Transaction TransactionImpl:XidImpl[FormatId=257, GlobalId=01hw044682/192956, BranchQual=, localId=192956] timed out. status=STATUS_ACTIVE
23:08:13,436 WARN [TransactionImpl] Transaction TransactionImpl:XidImpl[FormatId=257, GlobalId=01hw044682/212279, BranchQual=, localId=212279] timed out. status=STATUS_ACTIVE
00:13:59,421 WARN [TransactionImpl] Transaction TransactionImpl:XidImpl[FormatId=257, GlobalId=01hw044682/230671, BranchQual=, localId=230671] timed out. status=STATUS_ACTIVE
02:10:35,788 WARN [TransactionImpl] Transaction TransactionImpl:XidImpl[FormatId=257, GlobalId=01hw044682/246085, BranchQual=, localId=246085] timed out. status=STATUS_ACTIVE
02:31:50,416 WARN [TransactionImpl] Transaction TransactionImpl:XidImpl[FormatId=257, GlobalId=01hw044682/248989, BranchQual=, localId=248989] timed out. status=STATUS_ACTIVE
02:50:55,224 WARN [TransactionImpl] Transaction TransactionImpl:XidImpl[FormatId=257, GlobalId=01hw044682/250143, BranchQual=, localId=250143] timed out. status=STATUS_ACTIVE
03:08:01,930 WARN [TransactionImpl] Transaction TransactionImpl:XidImpl[FormatId=257, GlobalId=01hw044682/251290, BranchQual=, localId=251290] timed out. status=STATUS_ACTIVE
03:28:02,897 WARN [TransactionImpl] Transaction TransactionImpl:XidImpl[FormatId=257, GlobalId=01hw044682/252145, BranchQual=, localId=252145] timed out. status=STATUS_ACTIVE
04:25:58,640 WARN [TransactionImpl] Transaction TransactionImpl:XidImpl[FormatId=257, GlobalId=01hw044682/255586, BranchQual=, localId=255586] timed out. status=STATUS_ACTIVE
06:31:33,153 WARN [TransactionImpl] Transaction TransactionImpl:XidImpl[FormatId=257, GlobalId=01hw044682/258747, BranchQual=, localId=258747] timed out. status=STATUS_ACTIVE
Please shed some light on these warnings...
cause of this warning and also solution to it
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4012266#4012266
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4012266
19Â years, 2Â months
[EJB/JBoss] - Need
by eharoldw
Hi,
I have been trying to manage timeout on a stateless session bean. I have a client that is running in eclipse outside of jboss calling in to a running jboss server. The server then makes another call to a local service. I did this double hop because I wanted to test the timeout behavior for both remote and local calls.
The code looks something like this (a combination of pseudo code and real code used throughout):
client:
record start time
stub = (MyInterface)JBossUtil.find(IP, "MyInterface/remote");
stub.ping("123);
log elapsed time
server:
public String ping(String value) {
try {
return
((EzRezBusinessServiceInterface) JBossUtil.find("localhost",
"MyInterface/local")).ping2(value);
} catch (Exception e) {
e.printStackTrace();
return "error";
}
}
public String ping2(String value) {
for (int i = 0; i < 10; i++) {
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
return value;
}
The find routine that both teh client and server use does the following:
Properties properties = new Properties();
//
properties.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,
"org.jnp.interfaces.NamingContextFactory");
properties.put(javax.naming.Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
properties.put(javax.naming.Context.PROVIDER_URL, providerUrl);
properties.put("jnp.disableDiscovery", (disableDiscovery == true) ? "true" : "false");
properties.put("jnp.timeout", "250"); // connection timeout in milliseconds
properties.put("jnp.sotimeout", "500"); // socket read timeout in milliseconds
//
return new InitialContext(properties).lookup(interfaceName);
The behavior is that the client always return in 10 seconds, as determined by the time taken to execute ping2.
I am trying to figure out how to change the timeout so that I can control this. I.e., I would like to be able to set something so that the client gets a timeout exception if the call takes more than 5 seconds.
I have tried setting the socket timeout in jboss-service.xml, and the transaction timeout in jta-service.xml. In the latter case, I can see some logs warning about transaction timeouts, but the client still takes 10 seconds to execute and seems to simply return the ping value rather than any timeout indications.
Can you help me know what configurations I should change to control the response time from a service call?
It would be ideal if I could control on individual calls in an interface. (I.e., ping1 must respond in 5 seconds but ping2 may take 10 seconds), but I won't be greedy right now. :-)
Thanks,
Harold Williams
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4012249#4012249
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4012249
19Â years, 2Â months