[jboss-user] [JBoss Messaging] - How to set ping timeout of ConnectionValidator from jboss me

hendra_netm do-not-reply at jboss.com
Wed Sep 24 05:41:46 EDT 2008


Hi guys,

Recently, I got a lot of connection problem when using jboss messaging. The clients (producer and consumer) throw connection exception which is captured by connection exception listener. 

This is happened repeatly at certain time every day.

After further investigation, I find out that at that time, lots of cron jobs run on the server and make the ConnectionValidator failed to get the pong after it pings the server.

In the client logs, I can see this: 

[DEBUG] [DaemonRetry         ] [MO] jboss.remoting.ConnectionValidator: ConnectionValidator[null, pingPeriod=2000 ms] created
  | 2008-09-23 16:59:36,288 [TRACE] [DaemonRetry         ] [MO] jboss.remoting.ConnectionValidator: config timeout: null
  | 2008-09-23 16:59:36,288 [DEBUG] [DaemonRetry         ] [MO] jboss.remoting.ConnectionValidator: ConnectionValidator[null, pingPeriod=2000 ms] timeout: 1000
  | 2008-09-23 16:59:36,289 [DEBUG] [DaemonRetry         ] [MO] jboss.remoting.ConnectionValidator: ConnectionValidator[null, pingPeriod=2000 ms] ping retries: 1
  | 2008-09-23 16:59:36,311 [DEBUG] [DaemonRetry         ] [MO] jboss.remoting.ConnectionValidator: ConnectionValidator[null, pingPeriod=2000 ms] connection retries: null

The pingTimeout of ConnectionValidator is too short in my opinion  (1 second)

My question is: how to set the pingTimeout, pingPeriod, and max pingRetries of ConnectionValidator?

I have read the jboss messaging, and remoting documentation, but I can't find how I can set those values.

Thank you in advance for your help.

Best Regards,
Hendra

p.s.: I am using jboss 4.2.3.GA, jboss messaging 1.4.0.SP3.CP03, and jboss remoting 2.2.2.SP8

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4178515#4178515

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4178515



More information about the jboss-user mailing list