JPOS keep alive configuration in linux

833 views
Skip to first unread message

Yuet Yew Wong

unread,
Oct 16, 2014, 6:12:51 AM10/16/14
to jpos-...@googlegroups.com
Hi ,

I have wonder after setting the keep alive to "yes" in jpos 1.6.4 version , I typed "netstat -ntpo" in linux it showed my status still off . Is it any missing ?

Thank for advices.

Victor Salaman

unread,
Oct 16, 2014, 6:14:37 AM10/16/14
to jpos-...@googlegroups.com
Your question is vague.

How are you setting a keepalive in jPOS 1.6.4?

/V

--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: sa...@jpos.org
 
Join us in IRC at http://webchat.freenode.net/?channels=jpos
 
You received this message because you are subscribed to the "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-...@googlegroups.com
To unsubscribe, send email to jpos-users+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jpos-users
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/f47564fe-5346-48f6-82dc-c02d2e884d1b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Yuet Yew Wong

unread,
Oct 16, 2014, 6:26:06 AM10/16/14
to jpos-...@googlegroups.com
Hi ,

I am setting my keep alive setting in the configuration xml as below: 

  </channel>
        <in>spSnd</in>
        <out>spRcv</out>
        <reconnect-delay>5000</reconnect-delay>
        <!--reconnect-delay>30000</reconnect-delay-->
        <keep-alive>yes</keep-alive>
        <space>transient:default</space>

While I do receive message sending "0000" after enabling the keep alive . I wonder in the linux my one it still off

tcp        0      0 xxx.xxx.xxx.xxx:33455       xxx.xxx.xxx.xxxx:1819         ESTABLISHED 5051/java           off (0.00/0/0)

From linux articles, after enable 
netstat -ntpo

Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address          Foreign Address        State       PID/Program name    Timer
tcp        0      0 10.0.0.1:57547         10.0.0.1:5000          ESTABLISHED 9851/./tcp_cl       keepalive (7164.06/0/0)
Thank for advices.


You received this message because you are subscribed to a topic in the Google Groups "jPOS Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jpos-users/jxA2MGdqaaA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jpos-users+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CALK1SywktZ5Jh5-8x1QvdL0Kg2psVCCDYUss_UnN-%3DVfZMjkxw%40mail.gmail.com.

Alejandro Revilla

unread,
Oct 16, 2014, 11:15:57 AM10/16/14
to jPOS Users

That keep-alive at the ChannelAdaptor level is another thing, higher level zero-message pings.

What you want is to set the keep alive at the channel level,

You need to add:

<property name="keep-alive" value="true" />

inside your <channel>....</channel> definition.

PS.- Sorry @vsalaman for the copyright violation with your markdown style, it's nice :)



Yuet Yew Wong

unread,
Oct 17, 2014, 3:19:13 AM10/17/14
to jpos-...@googlegroups.com
hi , 

I have added inside the channel with keep-alive . Is there anyway to check is this working? any different with adding keep-alive in channel and channeladapater?

Thank for advices.

Alejandro Revilla

unread,
Oct 17, 2014, 2:26:28 PM10/17/14
to jPOS Users
You can establish a connection, keep it idle, and monitor it with tcpdump.


Yuet Yew Wong

unread,
Oct 20, 2014, 2:56:36 AM10/20/14
to jpos-...@googlegroups.com
Hi , 

I have monitored there are difference while connecting and idle via "Tcpdump" command. Does JPOS detected broken connection will it re-establish new connection and how to monitor it ?

Thank for advice.



On Sat, Oct 18, 2014 at 2:26 AM, Alejandro Revilla <a...@jpos.org> wrote:
You can establish a connection, keep it idle, and monitor it with tcpdump.


--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: sa...@jpos.org
 
Join us in IRC at http://webchat.freenode.net/?channels=jpos
 
You received this message because you are subscribed to the "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to jpos-...@googlegroups.com
To unsubscribe, send email to jpos-users+...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jpos-users
---
You received this message because you are subscribed to a topic in the Google Groups "jPOS Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jpos-users/jxA2MGdqaaA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jpos-users+...@googlegroups.com.

Alejandro Revilla

unread,
Oct 20, 2014, 7:17:52 AM10/20/14
to jPOS Users
Connection will be re-established.

You'll see that in the log, and you can monitor it with netstat.

Reply all
Reply to author
Forward
0 new messages