2 Replies Latest reply on Sep 24, 2008 5:48 AM by Tim Fox

    How to set ping timeout of ConnectionValidator from jboss me

    Hendra Sasmita Newbie

      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