[jpos-users] High memory usage

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jpos-users] High memory usage

Mohd rully k
Dear all 

First I want to say many thanks to Creator, Developer, Support ,Maintaner and etc for JPOS framework .

So , for the record and to be honest I'm a newbie . I develope a gateway using Jpos version 1.9.8 , library in use Spring+Hibernate for log and query , Apache HTTP Client and Netty for convert ISO 8583 to object and send http request and get response in socket mode , and convert to ISO 8583 , also using HikariCP and MySQL for connection pooling also database. 
Normal usage memory not even above 20 % . But after several days ( > 2 days ) memory become growing more and more until  88% 
I'm linux using ubuntu 14.04.5 , Xeon 6 core , 8 GB RAM . 
this is my configuration :
<server class="org.jpos.q2.iso.QServer" logger="Q2" name="Server-A">
<attr name="port" type="java.lang.Integer">*****</attr>
<attr name="maxSessions" type="java.lang.Integer">100</attr>
<channel name="Server-A-Channel" class="org.jpos.iso.channel.ASCIIChannel"
logger="Q3" packager="org.jpos.iso.packager.GenericPackager">
<property name="packager-config" value="cfg/packager/iso87ascii.xml" />
</channel>
<request-listener class="com.******.listener.ServerListener"
logger="Q2">
<property name="space" value="transient:default" />
<property name="queue" value="TransactionQueue" />
</request-listener>
</server>

<txnmgr name="txnmgr" 
class="org.jpos.transaction.TransactionManager">
<property name="space" value="transient:default" />
<property name="queue" value="TransactionQueue" />
<property name="max-sessions" value="100" />
<property name="debug" value="false" />
<participant class="com.******.transaction.TransMan"
logger="Q3">
.......

<channel-adaptor name='client-adaptor' class="org.jpos.q2.iso.ChannelAdaptor"
logger="Q2">
<channel class="org.jpos.iso.channel.ASCIIChannel" packager="org.jpos.iso.packager.GenericPackager">
<property name="host" value="127.0.0.1" />
<property name="port" value="*****" />
<property name="packager-config" value="cfg/packager/iso87ascii.xml" />
<property name="keep-alive" value="true" />
</channel>
</channel-adaptor>
<log realm="org.jpos.q2.qbean.SystemMonitor" at="Tue Apr 04 14:30:43 WIB 2017.603">
  <info>
               OS: Linux
             host: DBDEV/127.0.1.1
          version: 1.9.8 (f46a5dc)
         instance: b95804b9-1219-4b8d-a5d0-b8936b4c19e5
           uptime: 1d 04:00:07.967
       processors: 6
           drift : 0
    memory(t/u/f): 332/267/64
          threads: 63
            Thread[Reference Handler,10,system]
            Thread[Finalizer,8,system]
            Thread[Signal Dispatcher,9,system]
            Thread[main,5,main]
            Thread[Q2-b95804b9-1219-4b8d-a5d0-b8936b4c19e5,5,main]
            Thread[pool-1-thread-1,5,main]
            Thread[Timer-0,5,main]
            Thread[nioEventLoopGroup-2-1,10,main]
            Thread[nioEventLoopGroup-2-2,10,main]
            Thread[threadDeathWatcher-3-1,1,main]
            Thread[Abandoned connection cleanup thread,5,main]
            Thread[Hikari Housekeeping Timer,5,main]
            Thread[Hikari Housekeeping Timer,5,main]
            Thread[Thread-6,5,main]
            Thread[Timer-1,5,main]
            Thread[txnmgr-0:idle,5,main]
            Thread[channel-sender-null,5,main]
            Thread[channel-sender-hsm-send,5,main]
            Thread[channel-receiver-hsm-receive,5,main]
            Thread[SystemMonitor,5,main]
            Thread[nioEventLoopGroup-2-3,10,main]
            Thread[nioEventLoopGroup-2-4,10,main]
            Thread[txnmgr-1:idle,5,main]
            Thread[nioEventLoopGroup-2-5,10,main]
            Thread[nioEventLoopGroup-2-6,10,main]
            Thread[nioEventLoopGroup-2-7,10,main]
            Thread[nioEventLoopGroup-2-8,10,main]
            Thread[nioEventLoopGroup-2-9,10,main]
            Thread[nioEventLoopGroup-2-10,10,main]
            Thread[nioEventLoopGroup-2-11,10,main]
            Thread[nioEventLoopGroup-2-12,10,main]
            Thread[MySQL Statement Cancellation Timer,5,main]
            Thread[MySQL Statement Cancellation Timer,5,main]
            Thread[PooledThread-0-idle,5,ThreadPool-0-1]
            Thread[PooledThread-1-running,5,ThreadPool-0-1]
            Thread[PooledThread-2-idle,5,ThreadPool-0-1]
            Thread[PooledThread-3-idle,5,ThreadPool-0-1]
            Thread[PooledThread-4-idle,5,ThreadPool-0-1]
            Thread[PooledThread-5-idle,5,ThreadPool-0-1]
            Thread[PooledThread-6-idle,5,ThreadPool-0-1]
            Thread[PooledThread-7-idle,5,ThreadPool-0-1]
            Thread[PooledThread-8-idle,5,ThreadPool-0-1]
            Thread[PooledThread-9-idle,5,ThreadPool-0-1]
            Thread[PooledThread-10-idle,5,ThreadPool-0-1]
            Thread[PooledThread-11-idle,5,ThreadPool-0-1]
            Thread[PooledThread-12-idle,5,ThreadPool-0-1]
            Thread[PooledThread-13-idle,5,ThreadPool-0-1]
            Thread[PooledThread-14-idle,5,ThreadPool-0-1]
            Thread[PooledThread-15-idle,5,ThreadPool-0-1]
            Thread[PooledThread-16-idle,5,ThreadPool-0-1]
            Thread[PooledThread-17-idle,5,ThreadPool-0-1]
            Thread[PooledThread-18-idle,5,ThreadPool-0-1]
            Thread[PooledThread-19-idle,5,ThreadPool-0-1]
            Thread[PooledThread-20-idle,5,ThreadPool-0-1]
            Thread[PooledThread-21-idle,5,ThreadPool-0-1]
            Thread[PooledThread-22-idle,5,ThreadPool-0-1]
            Thread[PooledThread-23-idle,5,ThreadPool-0-1]
            Thread[PooledThread-24-idle,5,ThreadPool-0-1]
            Thread[PooledThread-25-idle,5,ThreadPool-0-1]
            Thread[PooledThread-26-idle,5,ThreadPool-0-1]
            Thread[PooledThread-27-idle,5,ThreadPool-0-1]
            Thread[PooledThread-28-idle,5,ThreadPool-0-1]
            Thread[PooledThread-29-idle,5,ThreadPool-0-1]
            Thread[PooledThread-30-running,5,ThreadPool-0-1]
            Thread[PooledThread-31-idle,5,ThreadPool-0-1]
            Thread[PooledThread-32-idle,5,ThreadPool-0-1]
         encoding: US-ASCII
    name-registrar:
      logger.Q2: org.jpos.util.Logger
      server.Server-A: org.jpos.iso.ISOServer
        connected=2, rx=3430, tx=3432, last=1491291029223, idle=14407ms
          172.18.24.35:45942: rx=2232, tx=2233, last=1491291029223
          172.18.24.67:45583: rx=1198, tx=1199, last=1491291029223
      mux.hsm-mux: org.jpos.q2.iso.QMUX
        tx=27, rx=26, tx_expired=0, tx_pending=0, rx_expired=1, rx_pending=0, rx_unhandled=0, rx_forwarded=0, connected=true, last=1491279686446, idle=11357184ms
      tspace:org.jpos.transaction.TransactionManager@1041cf19: org.jpos.space.TSpace


and my problem is when memory becomes grow larger the application suddenly shutdown(hook) , Sorry for my bad english . Hope anyone can give me pointer ,

Thank in advance 

Rully 




--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/914b0455-b730-4599-b1b9-8513cd86ffaa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

htop_gateway.JPG (167K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] High memory usage

Victor Salaman-Medina
Hi:

You might want to try using a Profiler such as XRebel or YourKit to find who is the culprit. I would start by analyzing all the non jPOS stuff you added.

/V

On Tue, Apr 4, 2017 at 3:55 AM, Mohd rully k <[hidden email]> wrote:
Dear all 

First I want to say many thanks to Creator, Developer, Support ,Maintaner and etc for JPOS framework .

So , for the record and to be honest I'm a newbie . I develope a gateway using Jpos version 1.9.8 , library in use Spring+Hibernate for log and query , Apache HTTP Client and Netty for convert ISO 8583 to object and send http request and get response in socket mode , and convert to ISO 8583 , also using HikariCP and MySQL for connection pooling also database. 
Normal usage memory not even above 20 % . But after several days ( > 2 days ) memory become growing more and more until  88% 
I'm linux using ubuntu 14.04.5 , Xeon 6 core , 8 GB RAM . 
this is my configuration :
<server class="org.jpos.q2.iso.QServer" logger="Q2" name="Server-A">
<attr name="port" type="java.lang.Integer">*****</attr>
<attr name="maxSessions" type="java.lang.Integer">100</attr>
<channel name="Server-A-Channel" class="org.jpos.iso.channel.ASCIIChannel"
logger="Q3" packager="org.jpos.iso.packager.GenericPackager">
<property name="packager-config" value="cfg/packager/iso87ascii.xml" />
</channel>
<request-listener class="com.******.listener.ServerListener"
logger="Q2">
<property name="space" value="transient:default" />
<property name="queue" value="TransactionQueue" />
</request-listener>
</server>

<txnmgr name="txnmgr" 
class="org.jpos.transaction.TransactionManager">
<property name="space" value="transient:default" />
<property name="queue" value="TransactionQueue" />
<property name="max-sessions" value="100" />
<property name="debug" value="false" />
<participant class="com.******.transaction.TransMan"
logger="Q3">
.......

<channel-adaptor name='client-adaptor' class="org.jpos.q2.iso.ChannelAdaptor"
logger="Q2">
<channel class="org.jpos.iso.channel.ASCIIChannel" packager="org.jpos.iso.packager.GenericPackager">
<property name="host" value="127.0.0.1" />
<property name="port" value="*****" />
<property name="packager-config" value="cfg/packager/iso87ascii.xml" />
<property name="keep-alive" value="true" />
</channel>
</channel-adaptor>
<log realm="org.jpos.q2.qbean.SystemMonitor" at="Tue Apr 04 14:30:43 WIB 2017.603">
  <info>
               OS: Linux
             host: DBDEV/127.0.1.1
          version: 1.9.8 (f46a5dc)
         instance: b95804b9-1219-4b8d-a5d0-b8936b4c19e5
           uptime: 1d 04:00:07.967
       processors: 6
           drift : 0
    memory(t/u/f): 332/267/64
          threads: 63
            Thread[Reference Handler,10,system]
            Thread[Finalizer,8,system]
            Thread[Signal Dispatcher,9,system]
            Thread[main,5,main]
            Thread[Q2-b95804b9-1219-4b8d-a5d0-b8936b4c19e5,5,main]
            Thread[pool-1-thread-1,5,main]
            Thread[Timer-0,5,main]
            Thread[nioEventLoopGroup-2-1,10,main]
            Thread[nioEventLoopGroup-2-2,10,main]
            Thread[threadDeathWatcher-3-1,1,main]
            Thread[Abandoned connection cleanup thread,5,main]
            Thread[Hikari Housekeeping Timer,5,main]
            Thread[Hikari Housekeeping Timer,5,main]
            Thread[Thread-6,5,main]
            Thread[Timer-1,5,main]
            Thread[txnmgr-0:idle,5,main]
            Thread[channel-sender-null,5,main]
            Thread[channel-sender-hsm-send,5,main]
            Thread[channel-receiver-hsm-receive,5,main]
            Thread[SystemMonitor,5,main]
            Thread[nioEventLoopGroup-2-3,10,main]
            Thread[nioEventLoopGroup-2-4,10,main]
            Thread[txnmgr-1:idle,5,main]
            Thread[nioEventLoopGroup-2-5,10,main]
            Thread[nioEventLoopGroup-2-6,10,main]
            Thread[nioEventLoopGroup-2-7,10,main]
            Thread[nioEventLoopGroup-2-8,10,main]
            Thread[nioEventLoopGroup-2-9,10,main]
            Thread[nioEventLoopGroup-2-10,10,main]
            Thread[nioEventLoopGroup-2-11,10,main]
            Thread[nioEventLoopGroup-2-12,10,main]
            Thread[MySQL Statement Cancellation Timer,5,main]
            Thread[MySQL Statement Cancellation Timer,5,main]
            Thread[PooledThread-0-idle,5,ThreadPool-0-1]
            Thread[PooledThread-1-running,5,ThreadPool-0-1]
            Thread[PooledThread-2-idle,5,ThreadPool-0-1]
            Thread[PooledThread-3-idle,5,ThreadPool-0-1]
            Thread[PooledThread-4-idle,5,ThreadPool-0-1]
            Thread[PooledThread-5-idle,5,ThreadPool-0-1]
            Thread[PooledThread-6-idle,5,ThreadPool-0-1]
            Thread[PooledThread-7-idle,5,ThreadPool-0-1]
            Thread[PooledThread-8-idle,5,ThreadPool-0-1]
            Thread[PooledThread-9-idle,5,ThreadPool-0-1]
            Thread[PooledThread-10-idle,5,ThreadPool-0-1]
            Thread[PooledThread-11-idle,5,ThreadPool-0-1]
            Thread[PooledThread-12-idle,5,ThreadPool-0-1]
            Thread[PooledThread-13-idle,5,ThreadPool-0-1]
            Thread[PooledThread-14-idle,5,ThreadPool-0-1]
            Thread[PooledThread-15-idle,5,ThreadPool-0-1]
            Thread[PooledThread-16-idle,5,ThreadPool-0-1]
            Thread[PooledThread-17-idle,5,ThreadPool-0-1]
            Thread[PooledThread-18-idle,5,ThreadPool-0-1]
            Thread[PooledThread-19-idle,5,ThreadPool-0-1]
            Thread[PooledThread-20-idle,5,ThreadPool-0-1]
            Thread[PooledThread-21-idle,5,ThreadPool-0-1]
            Thread[PooledThread-22-idle,5,ThreadPool-0-1]
            Thread[PooledThread-23-idle,5,ThreadPool-0-1]
            Thread[PooledThread-24-idle,5,ThreadPool-0-1]
            Thread[PooledThread-25-idle,5,ThreadPool-0-1]
            Thread[PooledThread-26-idle,5,ThreadPool-0-1]
            Thread[PooledThread-27-idle,5,ThreadPool-0-1]
            Thread[PooledThread-28-idle,5,ThreadPool-0-1]
            Thread[PooledThread-29-idle,5,ThreadPool-0-1]
            Thread[PooledThread-30-running,5,ThreadPool-0-1]
            Thread[PooledThread-31-idle,5,ThreadPool-0-1]
            Thread[PooledThread-32-idle,5,ThreadPool-0-1]
         encoding: US-ASCII
    name-registrar:
      logger.Q2: org.jpos.util.Logger
      server.Server-A: org.jpos.iso.ISOServer
        connected=2, rx=3430, tx=3432, last=1491291029223, idle=14407ms
          172.18.24.35:45942: rx=2232, tx=2233, last=1491291029223
          172.18.24.67:45583: rx=1198, tx=1199, last=1491291029223
      mux.hsm-mux: org.jpos.q2.iso.QMUX
        tx=27, rx=26, tx_expired=0, tx_pending=0, rx_expired=1, rx_pending=0, rx_unhandled=0, rx_forwarded=0, connected=true, last=1491279686446, idle=11357184ms
      tspace:org.jpos.transaction.TransactionManager@1041cf19: org.jpos.space.TSpace


and my problem is when memory becomes grow larger the application suddenly shutdown(hook) , Sorry for my bad english . Hope anyone can give me pointer ,

Thank in advance 

Rully 




--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/914b0455-b730-4599-b1b9-8513cd86ffaa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CALK1SywffGZ69buURzjDu2t8Mmo8QKkZCVifXpHBzeBycJXuug%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] High memory usage

Mohd rully k
Hi Mr.Victor 

Ok , I will try as you suggested . 

Thank you 

Regard

Rully

On Tuesday, April 4, 2017 at 3:22:39 PM UTC+7, Victor Salaman wrote:
Hi:

You might want to try using a Profiler such as XRebel or YourKit to find who is the culprit. I would start by analyzing all the non jPOS stuff you added.

/V

On Tue, Apr 4, 2017 at 3:55 AM, Mohd rully k <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="PCvJ2fAuBQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">mohd.r...@...> wrote:
Dear all 

First I want to say many thanks to Creator, Developer, Support ,Maintaner and etc for JPOS framework .

So , for the record and to be honest I'm a newbie . I develope a gateway using Jpos version 1.9.8 , library in use Spring+Hibernate for log and query , Apache HTTP Client and Netty for convert ISO 8583 to object and send http request and get response in socket mode , and convert to ISO 8583 , also using HikariCP and MySQL for connection pooling also database. 
Normal usage memory not even above 20 % . But after several days ( > 2 days ) memory become growing more and more until  88% 
I'm linux using ubuntu 14.04.5 , Xeon 6 core , 8 GB RAM . 
this is my configuration :
<server class="org.jpos.q2.iso.QServer" logger="Q2" name="Server-A">
<attr name="port" type="java.lang.Integer">*****</attr>
<attr name="maxSessions" type="java.lang.Integer">100</attr>
<channel name="Server-A-Channel" class="org.jpos.iso.channel.ASCIIChannel"
logger="Q3" packager="org.jpos.iso.packager.GenericPackager">
<property name="packager-config" value="cfg/packager/iso87ascii.xml" />
</channel>
<request-listener class="com.******.listener.ServerListener"
logger="Q2">
<property name="space" value="transient:default" />
<property name="queue" value="TransactionQueue" />
</request-listener>
</server>

<txnmgr name="txnmgr" 
class="org.jpos.transaction.TransactionManager">
<property name="space" value="transient:default" />
<property name="queue" value="TransactionQueue" />
<property name="max-sessions" value="100" />
<property name="debug" value="false" />
<participant class="com.******.transaction.TransMan"
logger="Q3">
.......

<channel-adaptor name='client-adaptor' class="org.jpos.q2.iso.ChannelAdaptor"
logger="Q2">
<channel class="org.jpos.iso.channel.ASCIIChannel" packager="org.jpos.iso.packager.GenericPackager">
<property name="host" value="127.0.0.1" />
<property name="port" value="*****" />
<property name="packager-config" value="cfg/packager/iso87ascii.xml" />
<property name="keep-alive" value="true" />
</channel>
</channel-adaptor>
<log realm="org.jpos.q2.qbean.SystemMonitor" at="Tue Apr 04 14:30:43 WIB 2017.603">
  <info>
               OS: Linux
             host: DBDEV/<a href="http://127.0.1.1" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F127.0.1.1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFVDirF8eNAEzFy3XX5vmkJwTUPwg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F127.0.1.1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFVDirF8eNAEzFy3XX5vmkJwTUPwg&#39;;return true;">127.0.1.1
          version: 1.9.8 (f46a5dc)
         instance: b95804b9-1219-4b8d-a5d0-b8936b4c19e5
           uptime: 1d 04:00:07.967
       processors: 6
           drift : 0
    memory(t/u/f): 332/267/64
          threads: 63
            Thread[Reference Handler,10,system]
            Thread[Finalizer,8,system]
            Thread[Signal Dispatcher,9,system]
            Thread[main,5,main]
            Thread[Q2-b95804b9-1219-4b8d-a5d0-b8936b4c19e5,5,main]
            Thread[pool-1-thread-1,5,main]
            Thread[Timer-0,5,main]
            Thread[nioEventLoopGroup-2-1,10,main]
            Thread[nioEventLoopGroup-2-2,10,main]
            Thread[threadDeathWatcher-3-1,1,main]
            Thread[Abandoned connection cleanup thread,5,main]
            Thread[Hikari Housekeeping Timer,5,main]
            Thread[Hikari Housekeeping Timer,5,main]
            Thread[Thread-6,5,main]
            Thread[Timer-1,5,main]
            Thread[txnmgr-0:idle,5,main]
            Thread[channel-sender-null,5,main]
            Thread[channel-sender-hsm-send,5,main]
            Thread[channel-receiver-hsm-receive,5,main]
            Thread[SystemMonitor,5,main]
            Thread[nioEventLoopGroup-2-3,10,main]
            Thread[nioEventLoopGroup-2-4,10,main]
            Thread[txnmgr-1:idle,5,main]
            Thread[nioEventLoopGroup-2-5,10,main]
            Thread[nioEventLoopGroup-2-6,10,main]
            Thread[nioEventLoopGroup-2-7,10,main]
            Thread[nioEventLoopGroup-2-8,10,main]
            Thread[nioEventLoopGroup-2-9,10,main]
            Thread[nioEventLoopGroup-2-10,10,main]
            Thread[nioEventLoopGroup-2-11,10,main]
            Thread[nioEventLoopGroup-2-12,10,main]
            Thread[MySQL Statement Cancellation Timer,5,main]
            Thread[MySQL Statement Cancellation Timer,5,main]
            Thread[PooledThread-0-idle,5,ThreadPool-0-1]
            Thread[PooledThread-1-running,5,ThreadPool-0-1]
            Thread[PooledThread-2-idle,5,ThreadPool-0-1]
            Thread[PooledThread-3-idle,5,ThreadPool-0-1]
            Thread[PooledThread-4-idle,5,ThreadPool-0-1]
            Thread[PooledThread-5-idle,5,ThreadPool-0-1]
            Thread[PooledThread-6-idle,5,ThreadPool-0-1]
            Thread[PooledThread-7-idle,5,ThreadPool-0-1]
            Thread[PooledThread-8-idle,5,ThreadPool-0-1]
            Thread[PooledThread-9-idle,5,ThreadPool-0-1]
            Thread[PooledThread-10-idle,5,ThreadPool-0-1]
            Thread[PooledThread-11-idle,5,ThreadPool-0-1]
            Thread[PooledThread-12-idle,5,ThreadPool-0-1]
            Thread[PooledThread-13-idle,5,ThreadPool-0-1]
            Thread[PooledThread-14-idle,5,ThreadPool-0-1]
            Thread[PooledThread-15-idle,5,ThreadPool-0-1]
            Thread[PooledThread-16-idle,5,ThreadPool-0-1]
            Thread[PooledThread-17-idle,5,ThreadPool-0-1]
            Thread[PooledThread-18-idle,5,ThreadPool-0-1]
            Thread[PooledThread-19-idle,5,ThreadPool-0-1]
            Thread[PooledThread-20-idle,5,ThreadPool-0-1]
            Thread[PooledThread-21-idle,5,ThreadPool-0-1]
            Thread[PooledThread-22-idle,5,ThreadPool-0-1]
            Thread[PooledThread-23-idle,5,ThreadPool-0-1]
            Thread[PooledThread-24-idle,5,ThreadPool-0-1]
            Thread[PooledThread-25-idle,5,ThreadPool-0-1]
            Thread[PooledThread-26-idle,5,ThreadPool-0-1]
            Thread[PooledThread-27-idle,5,ThreadPool-0-1]
            Thread[PooledThread-28-idle,5,ThreadPool-0-1]
            Thread[PooledThread-29-idle,5,ThreadPool-0-1]
            Thread[PooledThread-30-running,5,ThreadPool-0-1]
            Thread[PooledThread-31-idle,5,ThreadPool-0-1]
            Thread[PooledThread-32-idle,5,ThreadPool-0-1]
         encoding: US-ASCII
    name-registrar:
      logger.Q2: org.jpos.util.Logger
      server.Server-A: org.jpos.iso.ISOServer
        connected=2, rx=3430, tx=3432, last=1491291029223, idle=14407ms
          <a href="http://172.18.24.35:45942" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F172.18.24.35%3A45942\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH2drzaoVjfT38d1vr-pM2lhXP4sw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F172.18.24.35%3A45942\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH2drzaoVjfT38d1vr-pM2lhXP4sw&#39;;return true;">172.18.24.35:45942: rx=2232, tx=2233, last=1491291029223
          <a href="http://172.18.24.67:45583" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F172.18.24.67%3A45583\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFvg_fe1gOmfwBs20CQbsjDfI_GRA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F172.18.24.67%3A45583\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFvg_fe1gOmfwBs20CQbsjDfI_GRA&#39;;return true;">172.18.24.67:45583: rx=1198, tx=1199, last=1491291029223
      mux.hsm-mux: org.jpos.q2.iso.QMUX
        tx=27, rx=26, tx_expired=0, tx_pending=0, rx_expired=1, rx_pending=0, rx_unhandled=0, rx_forwarded=0, connected=true, last=1491279686446, idle=11357184ms
      tspace:org.jpos.transaction.TransactionManager@1041cf19: org.jpos.space.TSpace


and my problem is when memory becomes grow larger the application suddenly shutdown(hook) , Sorry for my bad english . Hope anyone can give me pointer ,

Thank in advance 

Rully 




--
--
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: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="PCvJ2fAuBQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">sa...@...
---
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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="PCvJ2fAuBQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jpos-users+...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="PCvJ2fAuBQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jpos-...@....
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jpos-users/914b0455-b730-4599-b1b9-8513cd86ffaa%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jpos-users/914b0455-b730-4599-b1b9-8513cd86ffaa%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jpos-users/914b0455-b730-4599-b1b9-8513cd86ffaa%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jpos-users/914b0455-b730-4599-b1b9-8513cd86ffaa%40googlegroups.com.
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/277a6711-8f1d-4ba8-8225-908a25913b49%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] High memory usage

A Haris Kurniawan
Wow if those stuff considered as a newbie than i'm probably suits as retarted ;)

On Apr 5, 2017 8:36 AM, "Mohd rully k" <[hidden email]> wrote:
Hi Mr.Victor 

Ok , I will try as you suggested . 

Thank you 

Regard

Rully

On Tuesday, April 4, 2017 at 3:22:39 PM UTC+7, Victor Salaman wrote:
Hi:

You might want to try using a Profiler such as XRebel or YourKit to find who is the culprit. I would start by analyzing all the non jPOS stuff you added.

/V

On Tue, Apr 4, 2017 at 3:55 AM, Mohd rully k <[hidden email]> wrote:
Dear all 

First I want to say many thanks to Creator, Developer, Support ,Maintaner and etc for JPOS framework .

So , for the record and to be honest I'm a newbie . I develope a gateway using Jpos version 1.9.8 , library in use Spring+Hibernate for log and query , Apache HTTP Client and Netty for convert ISO 8583 to object and send http request and get response in socket mode , and convert to ISO 8583 , also using HikariCP and MySQL for connection pooling also database. 
Normal usage memory not even above 20 % . But after several days ( > 2 days ) memory become growing more and more until  88% 
I'm linux using ubuntu 14.04.5 , Xeon 6 core , 8 GB RAM . 
this is my configuration :
<server class="org.jpos.q2.iso.QServer" logger="Q2" name="Server-A">
<attr name="port" type="java.lang.Integer">*****</attr>
<attr name="maxSessions" type="java.lang.Integer">100</attr>
<channel name="Server-A-Channel" class="org.jpos.iso.channel.ASCIIChannel"
logger="Q3" packager="org.jpos.iso.packager.GenericPackager">
<property name="packager-config" value="cfg/packager/iso87ascii.xml" />
</channel>
<request-listener class="com.******.listener.ServerListener"
logger="Q2">
<property name="space" value="transient:default" />
<property name="queue" value="TransactionQueue" />
</request-listener>
</server>

<txnmgr name="txnmgr" 
class="org.jpos.transaction.TransactionManager">
<property name="space" value="transient:default" />
<property name="queue" value="TransactionQueue" />
<property name="max-sessions" value="100" />
<property name="debug" value="false" />
<participant class="com.******.transaction.TransMan"
logger="Q3">
.......

<channel-adaptor name='client-adaptor' class="org.jpos.q2.iso.ChannelAdaptor"
logger="Q2">
<channel class="org.jpos.iso.channel.ASCIIChannel" packager="org.jpos.iso.packager.GenericPackager">
<property name="host" value="127.0.0.1" />
<property name="port" value="*****" />
<property name="packager-config" value="cfg/packager/iso87ascii.xml" />
<property name="keep-alive" value="true" />
</channel>
</channel-adaptor>
<log realm="org.jpos.q2.qbean.SystemMonitor" at="Tue Apr 04 14:30:43 WIB 2017.603">
  <info>
               OS: Linux
             host: DBDEV/127.0.1.1
          version: 1.9.8 (f46a5dc)
         instance: b95804b9-1219-4b8d-a5d0-b8936b4c19e5
           uptime: 1d 04:00:07.967
       processors: 6
           drift : 0
    memory(t/u/f): 332/267/64
          threads: 63
            Thread[Reference Handler,10,system]
            Thread[Finalizer,8,system]
            Thread[Signal Dispatcher,9,system]
            Thread[main,5,main]
            Thread[Q2-b95804b9-1219-4b8d-a5d0-b8936b4c19e5,5,main]
            Thread[pool-1-thread-1,5,main]
            Thread[Timer-0,5,main]
            Thread[nioEventLoopGroup-2-1,10,main]
            Thread[nioEventLoopGroup-2-2,10,main]
            Thread[threadDeathWatcher-3-1,1,main]
            Thread[Abandoned connection cleanup thread,5,main]
            Thread[Hikari Housekeeping Timer,5,main]
            Thread[Hikari Housekeeping Timer,5,main]
            Thread[Thread-6,5,main]
            Thread[Timer-1,5,main]
            Thread[txnmgr-0:idle,5,main]
            Thread[channel-sender-null,5,main]
            Thread[channel-sender-hsm-send,5,main]
            Thread[channel-receiver-hsm-receive,5,main]
            Thread[SystemMonitor,5,main]
            Thread[nioEventLoopGroup-2-3,10,main]
            Thread[nioEventLoopGroup-2-4,10,main]
            Thread[txnmgr-1:idle,5,main]
            Thread[nioEventLoopGroup-2-5,10,main]
            Thread[nioEventLoopGroup-2-6,10,main]
            Thread[nioEventLoopGroup-2-7,10,main]
            Thread[nioEventLoopGroup-2-8,10,main]
            Thread[nioEventLoopGroup-2-9,10,main]
            Thread[nioEventLoopGroup-2-10,10,main]
            Thread[nioEventLoopGroup-2-11,10,main]
            Thread[nioEventLoopGroup-2-12,10,main]
            Thread[MySQL Statement Cancellation Timer,5,main]
            Thread[MySQL Statement Cancellation Timer,5,main]
            Thread[PooledThread-0-idle,5,ThreadPool-0-1]
            Thread[PooledThread-1-running,5,ThreadPool-0-1]
            Thread[PooledThread-2-idle,5,ThreadPool-0-1]
            Thread[PooledThread-3-idle,5,ThreadPool-0-1]
            Thread[PooledThread-4-idle,5,ThreadPool-0-1]
            Thread[PooledThread-5-idle,5,ThreadPool-0-1]
            Thread[PooledThread-6-idle,5,ThreadPool-0-1]
            Thread[PooledThread-7-idle,5,ThreadPool-0-1]
            Thread[PooledThread-8-idle,5,ThreadPool-0-1]
            Thread[PooledThread-9-idle,5,ThreadPool-0-1]
            Thread[PooledThread-10-idle,5,ThreadPool-0-1]
            Thread[PooledThread-11-idle,5,ThreadPool-0-1]
            Thread[PooledThread-12-idle,5,ThreadPool-0-1]
            Thread[PooledThread-13-idle,5,ThreadPool-0-1]
            Thread[PooledThread-14-idle,5,ThreadPool-0-1]
            Thread[PooledThread-15-idle,5,ThreadPool-0-1]
            Thread[PooledThread-16-idle,5,ThreadPool-0-1]
            Thread[PooledThread-17-idle,5,ThreadPool-0-1]
            Thread[PooledThread-18-idle,5,ThreadPool-0-1]
            Thread[PooledThread-19-idle,5,ThreadPool-0-1]
            Thread[PooledThread-20-idle,5,ThreadPool-0-1]
            Thread[PooledThread-21-idle,5,ThreadPool-0-1]
            Thread[PooledThread-22-idle,5,ThreadPool-0-1]
            Thread[PooledThread-23-idle,5,ThreadPool-0-1]
            Thread[PooledThread-24-idle,5,ThreadPool-0-1]
            Thread[PooledThread-25-idle,5,ThreadPool-0-1]
            Thread[PooledThread-26-idle,5,ThreadPool-0-1]
            Thread[PooledThread-27-idle,5,ThreadPool-0-1]
            Thread[PooledThread-28-idle,5,ThreadPool-0-1]
            Thread[PooledThread-29-idle,5,ThreadPool-0-1]
            Thread[PooledThread-30-running,5,ThreadPool-0-1]
            Thread[PooledThread-31-idle,5,ThreadPool-0-1]
            Thread[PooledThread-32-idle,5,ThreadPool-0-1]
         encoding: US-ASCII
    name-registrar:
      logger.Q2: org.jpos.util.Logger
      server.Server-A: org.jpos.iso.ISOServer
        connected=2, rx=3430, tx=3432, last=1491291029223, idle=14407ms
          172.18.24.35:45942: rx=2232, tx=2233, last=1491291029223
          172.18.24.67:45583: rx=1198, tx=1199, last=1491291029223
      mux.hsm-mux: org.jpos.q2.iso.QMUX
        tx=27, rx=26, tx_expired=0, tx_pending=0, rx_expired=1, rx_pending=0, rx_unhandled=0, rx_forwarded=0, connected=true, last=1491279686446, idle=11357184ms
      tspace:org.jpos.transaction.TransactionManager@1041cf19: org.jpos.space.TSpace


and my problem is when memory becomes grow larger the application suddenly shutdown(hook) , Sorry for my bad english . Hope anyone can give me pointer ,

Thank in advance 

Rully 




--
--
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: [hidden email]
---
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 post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/914b0455-b730-4599-b1b9-8513cd86ffaa%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/277a6711-8f1d-4ba8-8225-908a25913b49%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAL8bJ0EhN8hQy9RhUHPxnubanY95tj_9SUvpJeAx58Syy2Fa1g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jpos-users] Re: High memory usage

Mohd rully k
In reply to this post by Mohd rully k
Hi All , finally I ended up using debian 6 box 64bit with old kernel 2.6.x with MySQL 5.1, JDK still same Oracle 1.7.80. Until now memory use still safe and did not grow above expectation (only 700MB max) . No change in code and configuration still same , just hope it will be fine because still confuse how using xrebel or profiler .

@Harris : My point of view not for comparation , maybe 'still learning' is the best words , Aren't we ? 

On Tuesday, April 4, 2017 at 2:55:43 PM UTC+7, Mohd rully k wrote:
Dear all 

First I want to say many thanks to Creator, Developer, Support ,Maintaner and etc for JPOS framework .

So , for the record and to be honest I'm a newbie . I develope a gateway using Jpos version 1.9.8 , library in use Spring+Hibernate for log and query , Apache HTTP Client and Netty for convert ISO 8583 to object and send http request and get response in socket mode , and convert to ISO 8583 , also using HikariCP and MySQL for connection pooling also database. 
Normal usage memory not even above 20 % . But after several days ( > 2 days ) memory become growing more and more until  88% 
I'm linux using ubuntu 14.04.5 , Xeon 6 core , 8 GB RAM . 
this is my configuration :
<server class="org.jpos.q2.iso.QServer" logger="Q2" name="Server-A">
<attr name="port" type="java.lang.Integer">*****</attr>
<attr name="maxSessions" type="java.lang.Integer">100</attr>
<channel name="Server-A-Channel" class="org.jpos.iso.channel.ASCIIChannel"
logger="Q3" packager="org.jpos.iso.packager.GenericPackager">
<property name="packager-config" value="cfg/packager/iso87ascii.xml" />
</channel>
<request-listener class="com.******.listener.ServerListener"
logger="Q2">
<property name="space" value="transient:default" />
<property name="queue" value="TransactionQueue" />
</request-listener>
</server>

<txnmgr name="txnmgr" 
class="org.jpos.transaction.TransactionManager">
<property name="space" value="transient:default" />
<property name="queue" value="TransactionQueue" />
<property name="max-sessions" value="100" />
<property name="debug" value="false" />
<participant class="com.******.transaction.TransMan"
logger="Q3">
.......

<channel-adaptor name='client-adaptor' class="org.jpos.q2.iso.ChannelAdaptor"
logger="Q2">
<channel class="org.jpos.iso.channel.ASCIIChannel" packager="org.jpos.iso.packager.GenericPackager">
<property name="host" value="127.0.0.1" />
<property name="port" value="*****" />
<property name="packager-config" value="cfg/packager/iso87ascii.xml" />
<property name="keep-alive" value="true" />
</channel>
</channel-adaptor>
<log realm="org.jpos.q2.qbean.SystemMonitor" at="Tue Apr 04 14:30:43 WIB 2017.603">
  <info>
               OS: Linux
             host: DBDEV/<a href="http://127.0.1.1" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F127.0.1.1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFVDirF8eNAEzFy3XX5vmkJwTUPwg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F127.0.1.1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFVDirF8eNAEzFy3XX5vmkJwTUPwg&#39;;return true;">127.0.1.1
          version: 1.9.8 (f46a5dc)
         instance: b95804b9-1219-4b8d-a5d0-b8936b4c19e5
           uptime: 1d 04:00:07.967
       processors: 6
           drift : 0
    memory(t/u/f): 332/267/64
          threads: 63
            Thread[Reference Handler,10,system]
            Thread[Finalizer,8,system]
            Thread[Signal Dispatcher,9,system]
            Thread[main,5,main]
            Thread[Q2-b95804b9-1219-4b8d-a5d0-b8936b4c19e5,5,main]
            Thread[pool-1-thread-1,5,main]
            Thread[Timer-0,5,main]
            Thread[nioEventLoopGroup-2-1,10,main]
            Thread[nioEventLoopGroup-2-2,10,main]
            Thread[threadDeathWatcher-3-1,1,main]
            Thread[Abandoned connection cleanup thread,5,main]
            Thread[Hikari Housekeeping Timer,5,main]
            Thread[Hikari Housekeeping Timer,5,main]
            Thread[Thread-6,5,main]
            Thread[Timer-1,5,main]
            Thread[txnmgr-0:idle,5,main]
            Thread[channel-sender-null,5,main]
            Thread[channel-sender-hsm-send,5,main]
            Thread[channel-receiver-hsm-receive,5,main]
            Thread[SystemMonitor,5,main]
            Thread[nioEventLoopGroup-2-3,10,main]
            Thread[nioEventLoopGroup-2-4,10,main]
            Thread[txnmgr-1:idle,5,main]
            Thread[nioEventLoopGroup-2-5,10,main]
            Thread[nioEventLoopGroup-2-6,10,main]
            Thread[nioEventLoopGroup-2-7,10,main]
            Thread[nioEventLoopGroup-2-8,10,main]
            Thread[nioEventLoopGroup-2-9,10,main]
            Thread[nioEventLoopGroup-2-10,10,main]
            Thread[nioEventLoopGroup-2-11,10,main]
            Thread[nioEventLoopGroup-2-12,10,main]
            Thread[MySQL Statement Cancellation Timer,5,main]
            Thread[MySQL Statement Cancellation Timer,5,main]
            Thread[PooledThread-0-idle,5,ThreadPool-0-1]
            Thread[PooledThread-1-running,5,ThreadPool-0-1]
            Thread[PooledThread-2-idle,5,ThreadPool-0-1]
            Thread[PooledThread-3-idle,5,ThreadPool-0-1]
            Thread[PooledThread-4-idle,5,ThreadPool-0-1]
            Thread[PooledThread-5-idle,5,ThreadPool-0-1]
            Thread[PooledThread-6-idle,5,ThreadPool-0-1]
            Thread[PooledThread-7-idle,5,ThreadPool-0-1]
            Thread[PooledThread-8-idle,5,ThreadPool-0-1]
            Thread[PooledThread-9-idle,5,ThreadPool-0-1]
            Thread[PooledThread-10-idle,5,ThreadPool-0-1]
            Thread[PooledThread-11-idle,5,ThreadPool-0-1]
            Thread[PooledThread-12-idle,5,ThreadPool-0-1]
            Thread[PooledThread-13-idle,5,ThreadPool-0-1]
            Thread[PooledThread-14-idle,5,ThreadPool-0-1]
            Thread[PooledThread-15-idle,5,ThreadPool-0-1]
            Thread[PooledThread-16-idle,5,ThreadPool-0-1]
            Thread[PooledThread-17-idle,5,ThreadPool-0-1]
            Thread[PooledThread-18-idle,5,ThreadPool-0-1]
            Thread[PooledThread-19-idle,5,ThreadPool-0-1]
            Thread[PooledThread-20-idle,5,ThreadPool-0-1]
            Thread[PooledThread-21-idle,5,ThreadPool-0-1]
            Thread[PooledThread-22-idle,5,ThreadPool-0-1]
            Thread[PooledThread-23-idle,5,ThreadPool-0-1]
            Thread[PooledThread-24-idle,5,ThreadPool-0-1]
            Thread[PooledThread-25-idle,5,ThreadPool-0-1]
            Thread[PooledThread-26-idle,5,ThreadPool-0-1]
            Thread[PooledThread-27-idle,5,ThreadPool-0-1]
            Thread[PooledThread-28-idle,5,ThreadPool-0-1]
            Thread[PooledThread-29-idle,5,ThreadPool-0-1]
            Thread[PooledThread-30-running,5,ThreadPool-0-1]
            Thread[PooledThread-31-idle,5,ThreadPool-0-1]
            Thread[PooledThread-32-idle,5,ThreadPool-0-1]
         encoding: US-ASCII
    name-registrar:
      logger.Q2: org.jpos.util.Logger
      server.Server-A: org.jpos.iso.ISOServer
        connected=2, rx=3430, tx=3432, last=1491291029223, idle=14407ms
          <a href="http://172.18.24.35:45942" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F172.18.24.35%3A45942\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH2drzaoVjfT38d1vr-pM2lhXP4sw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F172.18.24.35%3A45942\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH2drzaoVjfT38d1vr-pM2lhXP4sw&#39;;return true;">172.18.24.35:45942: rx=2232, tx=2233, last=1491291029223
          <a href="http://172.18.24.67:45583" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F172.18.24.67%3A45583\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFvg_fe1gOmfwBs20CQbsjDfI_GRA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F172.18.24.67%3A45583\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFvg_fe1gOmfwBs20CQbsjDfI_GRA&#39;;return true;">172.18.24.67:45583: rx=1198, tx=1199, last=1491291029223
      mux.hsm-mux: org.jpos.q2.iso.QMUX
        tx=27, rx=26, tx_expired=0, tx_pending=0, rx_expired=1, rx_pending=0, rx_unhandled=0, rx_forwarded=0, connected=true, last=1491279686446, idle=11357184ms
      tspace:org.jpos.transaction.TransactionManager@1041cf19: org.jpos.space.TSpace


and my problem is when memory becomes grow larger the application suddenly shutdown(hook) , Sorry for my bad english . Hope anyone can give me pointer ,

Thank in advance 

Rully 




--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/f09bff13-1937-4f99-9cc7-f282ba813ba2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] Re: High memory usage

Andy Orrock
Sounds like a case of "good switch, bad switch."


But here's the thing:  You can use jPOS to build a good switch...or a bad one.  There's nothing preventing you from taking jPOS and building a craptastic switch...nothing to prevent that at all.  


--------
Andy

On Wed, Apr 5, 2017 at 8:33 AM, Mohd rully k <[hidden email]> wrote:
Hi All , finally I ended up using debian 6 box 64bit with old kernel 2.6.x with MySQL 5.1, JDK still same Oracle 1.7.80. Until now memory use still safe and did not grow above expectation (only 700MB max) . No change in code and configuration still same , just hope it will be fine because still confuse how using xrebel or profiler .

@Harris : My point of view not for comparation , maybe 'still learning' is the best words , Aren't we ? 


On Tuesday, April 4, 2017 at 2:55:43 PM UTC+7, Mohd rully k wrote:
Dear all 

First I want to say many thanks to Creator, Developer, Support ,Maintaner and etc for JPOS framework .

So , for the record and to be honest I'm a newbie . I develope a gateway using Jpos version 1.9.8 , library in use Spring+Hibernate for log and query , Apache HTTP Client and Netty for convert ISO 8583 to object and send http request and get response in socket mode , and convert to ISO 8583 , also using HikariCP and MySQL for connection pooling also database. 
Normal usage memory not even above 20 % . But after several days ( > 2 days ) memory become growing more and more until  88% 
I'm linux using ubuntu 14.04.5 , Xeon 6 core , 8 GB RAM . 
this is my configuration :
<server class="org.jpos.q2.iso.QServer" logger="Q2" name="Server-A">
<attr name="port" type="java.lang.Integer">*****</attr>
<attr name="maxSessions" type="java.lang.Integer">100</attr>
<channel name="Server-A-Channel" class="org.jpos.iso.channel.ASCIIChannel"
logger="Q3" packager="org.jpos.iso.packager.GenericPackager">
<property name="packager-config" value="cfg/packager/iso87ascii.xml" />
</channel>
<request-listener class="com.******.listener.ServerListener"
logger="Q2">
<property name="space" value="transient:default" />
<property name="queue" value="TransactionQueue" />
</request-listener>
</server>

<txnmgr name="txnmgr" 
class="org.jpos.transaction.TransactionManager">
<property name="space" value="transient:default" />
<property name="queue" value="TransactionQueue" />
<property name="max-sessions" value="100" />
<property name="debug" value="false" />
<participant class="com.******.transaction.TransMan"
logger="Q3">
.......

<channel-adaptor name='client-adaptor' class="org.jpos.q2.iso.ChannelAdaptor"
logger="Q2">
<channel class="org.jpos.iso.channel.ASCIIChannel" packager="org.jpos.iso.packager.GenericPackager">
<property name="host" value="127.0.0.1" />
<property name="port" value="*****" />
<property name="packager-config" value="cfg/packager/iso87ascii.xml" />
<property name="keep-alive" value="true" />
</channel>
</channel-adaptor>
<log realm="org.jpos.q2.qbean.SystemMonitor" at="Tue Apr 04 14:30:43 WIB 2017.603">
  <info>
               OS: Linux
             host: DBDEV/127.0.1.1
          version: 1.9.8 (f46a5dc)
         instance: b95804b9-1219-4b8d-a5d0-b8936b4c19e5
           uptime: 1d 04:00:07.967
       processors: 6
           drift : 0
    memory(t/u/f): 332/267/64
          threads: 63
            Thread[Reference Handler,10,system]
            Thread[Finalizer,8,system]
            Thread[Signal Dispatcher,9,system]
            Thread[main,5,main]
            Thread[Q2-b95804b9-1219-4b8d-a5d0-b8936b4c19e5,5,main]
            Thread[pool-1-thread-1,5,main]
            Thread[Timer-0,5,main]
            Thread[nioEventLoopGroup-2-1,10,main]
            Thread[nioEventLoopGroup-2-2,10,main]
            Thread[threadDeathWatcher-3-1,1,main]
            Thread[Abandoned connection cleanup thread,5,main]
            Thread[Hikari Housekeeping Timer,5,main]
            Thread[Hikari Housekeeping Timer,5,main]
            Thread[Thread-6,5,main]
            Thread[Timer-1,5,main]
            Thread[txnmgr-0:idle,5,main]
            Thread[channel-sender-null,5,main]
            Thread[channel-sender-hsm-send,5,main]
            Thread[channel-receiver-hsm-receive,5,main]
            Thread[SystemMonitor,5,main]
            Thread[nioEventLoopGroup-2-3,10,main]
            Thread[nioEventLoopGroup-2-4,10,main]
            Thread[txnmgr-1:idle,5,main]
            Thread[nioEventLoopGroup-2-5,10,main]
            Thread[nioEventLoopGroup-2-6,10,main]
            Thread[nioEventLoopGroup-2-7,10,main]
            Thread[nioEventLoopGroup-2-8,10,main]
            Thread[nioEventLoopGroup-2-9,10,main]
            Thread[nioEventLoopGroup-2-10,10,main]
            Thread[nioEventLoopGroup-2-11,10,main]
            Thread[nioEventLoopGroup-2-12,10,main]
            Thread[MySQL Statement Cancellation Timer,5,main]
            Thread[MySQL Statement Cancellation Timer,5,main]
            Thread[PooledThread-0-idle,5,ThreadPool-0-1]
            Thread[PooledThread-1-running,5,ThreadPool-0-1]
            Thread[PooledThread-2-idle,5,ThreadPool-0-1]
            Thread[PooledThread-3-idle,5,ThreadPool-0-1]
            Thread[PooledThread-4-idle,5,ThreadPool-0-1]
            Thread[PooledThread-5-idle,5,ThreadPool-0-1]
            Thread[PooledThread-6-idle,5,ThreadPool-0-1]
            Thread[PooledThread-7-idle,5,ThreadPool-0-1]
            Thread[PooledThread-8-idle,5,ThreadPool-0-1]
            Thread[PooledThread-9-idle,5,ThreadPool-0-1]
            Thread[PooledThread-10-idle,5,ThreadPool-0-1]
            Thread[PooledThread-11-idle,5,ThreadPool-0-1]
            Thread[PooledThread-12-idle,5,ThreadPool-0-1]
            Thread[PooledThread-13-idle,5,ThreadPool-0-1]
            Thread[PooledThread-14-idle,5,ThreadPool-0-1]
            Thread[PooledThread-15-idle,5,ThreadPool-0-1]
            Thread[PooledThread-16-idle,5,ThreadPool-0-1]
            Thread[PooledThread-17-idle,5,ThreadPool-0-1]
            Thread[PooledThread-18-idle,5,ThreadPool-0-1]
            Thread[PooledThread-19-idle,5,ThreadPool-0-1]
            Thread[PooledThread-20-idle,5,ThreadPool-0-1]
            Thread[PooledThread-21-idle,5,ThreadPool-0-1]
            Thread[PooledThread-22-idle,5,ThreadPool-0-1]
            Thread[PooledThread-23-idle,5,ThreadPool-0-1]
            Thread[PooledThread-24-idle,5,ThreadPool-0-1]
            Thread[PooledThread-25-idle,5,ThreadPool-0-1]
            Thread[PooledThread-26-idle,5,ThreadPool-0-1]
            Thread[PooledThread-27-idle,5,ThreadPool-0-1]
            Thread[PooledThread-28-idle,5,ThreadPool-0-1]
            Thread[PooledThread-29-idle,5,ThreadPool-0-1]
            Thread[PooledThread-30-running,5,ThreadPool-0-1]
            Thread[PooledThread-31-idle,5,ThreadPool-0-1]
            Thread[PooledThread-32-idle,5,ThreadPool-0-1]
         encoding: US-ASCII
    name-registrar:
      logger.Q2: org.jpos.util.Logger
      server.Server-A: org.jpos.iso.ISOServer
        connected=2, rx=3430, tx=3432, last=1491291029223, idle=14407ms
          172.18.24.35:45942: rx=2232, tx=2233, last=1491291029223
          172.18.24.67:45583: rx=1198, tx=1199, last=1491291029223
      mux.hsm-mux: org.jpos.q2.iso.QMUX
        tx=27, rx=26, tx_expired=0, tx_pending=0, rx_expired=1, rx_pending=0, rx_unhandled=0, rx_forwarded=0, connected=true, last=1491279686446, idle=11357184ms
      tspace:org.jpos.transaction.TransactionManager@1041cf19: org.jpos.space.TSpace


and my problem is when memory becomes grow larger the application suddenly shutdown(hook) , Sorry for my bad english . Hope anyone can give me pointer ,

Thank in advance 

Rully 




--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/f09bff13-1937-4f99-9cc7-f282ba813ba2%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAPZRy5Gb_7J_%2B2DWexG38r0SD49mrqNqtXcXnsoeLVnancuZ4w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] Re: High memory usage

A Haris Kurniawan
I notice that you're running jar multiple times. Is that jar wraps jpos?

Now i'm wondering, each of those instances of jar probably has jpos-space configuration...
Will they (the space) interfere with each other (instance)

I assume that you're using Q2, Why not create a single instance and split the logic for different client using bit3 and bit32. The logic can be placed on different participants using the transaction manager. Different participant can connect to different database, soap.endpoint, rest, resources, etc. So it could be a big-arse switcher, that does its job... switching. 
Just my thoughts anyway...

On Apr 5, 2017 8:47 PM, "Andy Orrock" <[hidden email]> wrote:
Sounds like a case of "good switch, bad switch."


But here's the thing:  You can use jPOS to build a good switch...or a bad one.  There's nothing preventing you from taking jPOS and building a craptastic switch...nothing to prevent that at all.  


--------
Andy

On Wed, Apr 5, 2017 at 8:33 AM, Mohd rully k <[hidden email]> wrote:
Hi All , finally I ended up using debian 6 box 64bit with old kernel 2.6.x with MySQL 5.1, JDK still same Oracle 1.7.80. Until now memory use still safe and did not grow above expectation (only 700MB max) . No change in code and configuration still same , just hope it will be fine because still confuse how using xrebel or profiler .

@Harris : My point of view not for comparation , maybe 'still learning' is the best words , Aren't we ? 


On Tuesday, April 4, 2017 at 2:55:43 PM UTC+7, Mohd rully k wrote:
Dear all 

First I want to say many thanks to Creator, Developer, Support ,Maintaner and etc for JPOS framework .

So , for the record and to be honest I'm a newbie . I develope a gateway using Jpos version 1.9.8 , library in use Spring+Hibernate for log and query , Apache HTTP Client and Netty for convert ISO 8583 to object and send http request and get response in socket mode , and convert to ISO 8583 , also using HikariCP and MySQL for connection pooling also database. 
Normal usage memory not even above 20 % . But after several days ( > 2 days ) memory become growing more and more until  88% 
I'm linux using ubuntu 14.04.5 , Xeon 6 core , 8 GB RAM . 
this is my configuration :
<server class="org.jpos.q2.iso.QServer" logger="Q2" name="Server-A">
<attr name="port" type="java.lang.Integer">*****</attr>
<attr name="maxSessions" type="java.lang.Integer">100</attr>
<channel name="Server-A-Channel" class="org.jpos.iso.channel.ASCIIChannel"
logger="Q3" packager="org.jpos.iso.packager.GenericPackager">
<property name="packager-config" value="cfg/packager/iso87ascii.xml" />
</channel>
<request-listener class="com.******.listener.ServerListener"
logger="Q2">
<property name="space" value="transient:default" />
<property name="queue" value="TransactionQueue" />
</request-listener>
</server>

<txnmgr name="txnmgr" 
class="org.jpos.transaction.TransactionManager">
<property name="space" value="transient:default" />
<property name="queue" value="TransactionQueue" />
<property name="max-sessions" value="100" />
<property name="debug" value="false" />
<participant class="com.******.transaction.TransMan"
logger="Q3">
.......

<channel-adaptor name='client-adaptor' class="org.jpos.q2.iso.ChannelAdaptor"
logger="Q2">
<channel class="org.jpos.iso.channel.ASCIIChannel" packager="org.jpos.iso.packager.GenericPackager">
<property name="host" value="127.0.0.1" />
<property name="port" value="*****" />
<property name="packager-config" value="cfg/packager/iso87ascii.xml" />
<property name="keep-alive" value="true" />
</channel>
</channel-adaptor>
<log realm="org.jpos.q2.qbean.SystemMonitor" at="Tue Apr 04 14:30:43 WIB 2017.603">
  <info>
               OS: Linux
             host: DBDEV/127.0.1.1
          version: 1.9.8 (f46a5dc)
         instance: b95804b9-1219-4b8d-a5d0-b8936b4c19e5
           uptime: 1d 04:00:07.967
       processors: 6
           drift : 0
    memory(t/u/f): 332/267/64
          threads: 63
            Thread[Reference Handler,10,system]
            Thread[Finalizer,8,system]
            Thread[Signal Dispatcher,9,system]
            Thread[main,5,main]
            Thread[Q2-b95804b9-1219-4b8d-a5d0-b8936b4c19e5,5,main]
            Thread[pool-1-thread-1,5,main]
            Thread[Timer-0,5,main]
            Thread[nioEventLoopGroup-2-1,10,main]
            Thread[nioEventLoopGroup-2-2,10,main]
            Thread[threadDeathWatcher-3-1,1,main]
            Thread[Abandoned connection cleanup thread,5,main]
            Thread[Hikari Housekeeping Timer,5,main]
            Thread[Hikari Housekeeping Timer,5,main]
            Thread[Thread-6,5,main]
            Thread[Timer-1,5,main]
            Thread[txnmgr-0:idle,5,main]
            Thread[channel-sender-null,5,main]
            Thread[channel-sender-hsm-send,5,main]
            Thread[channel-receiver-hsm-receive,5,main]
            Thread[SystemMonitor,5,main]
            Thread[nioEventLoopGroup-2-3,10,main]
            Thread[nioEventLoopGroup-2-4,10,main]
            Thread[txnmgr-1:idle,5,main]
            Thread[nioEventLoopGroup-2-5,10,main]
            Thread[nioEventLoopGroup-2-6,10,main]
            Thread[nioEventLoopGroup-2-7,10,main]
            Thread[nioEventLoopGroup-2-8,10,main]
            Thread[nioEventLoopGroup-2-9,10,main]
            Thread[nioEventLoopGroup-2-10,10,main]
            Thread[nioEventLoopGroup-2-11,10,main]
            Thread[nioEventLoopGroup-2-12,10,main]
            Thread[MySQL Statement Cancellation Timer,5,main]
            Thread[MySQL Statement Cancellation Timer,5,main]
            Thread[PooledThread-0-idle,5,ThreadPool-0-1]
            Thread[PooledThread-1-running,5,ThreadPool-0-1]
            Thread[PooledThread-2-idle,5,ThreadPool-0-1]
            Thread[PooledThread-3-idle,5,ThreadPool-0-1]
            Thread[PooledThread-4-idle,5,ThreadPool-0-1]
            Thread[PooledThread-5-idle,5,ThreadPool-0-1]
            Thread[PooledThread-6-idle,5,ThreadPool-0-1]
            Thread[PooledThread-7-idle,5,ThreadPool-0-1]
            Thread[PooledThread-8-idle,5,ThreadPool-0-1]
            Thread[PooledThread-9-idle,5,ThreadPool-0-1]
            Thread[PooledThread-10-idle,5,ThreadPool-0-1]
            Thread[PooledThread-11-idle,5,ThreadPool-0-1]
            Thread[PooledThread-12-idle,5,ThreadPool-0-1]
            Thread[PooledThread-13-idle,5,ThreadPool-0-1]
            Thread[PooledThread-14-idle,5,ThreadPool-0-1]
            Thread[PooledThread-15-idle,5,ThreadPool-0-1]
            Thread[PooledThread-16-idle,5,ThreadPool-0-1]
            Thread[PooledThread-17-idle,5,ThreadPool-0-1]
            Thread[PooledThread-18-idle,5,ThreadPool-0-1]
            Thread[PooledThread-19-idle,5,ThreadPool-0-1]
            Thread[PooledThread-20-idle,5,ThreadPool-0-1]
            Thread[PooledThread-21-idle,5,ThreadPool-0-1]
            Thread[PooledThread-22-idle,5,ThreadPool-0-1]
            Thread[PooledThread-23-idle,5,ThreadPool-0-1]
            Thread[PooledThread-24-idle,5,ThreadPool-0-1]
            Thread[PooledThread-25-idle,5,ThreadPool-0-1]
            Thread[PooledThread-26-idle,5,ThreadPool-0-1]
            Thread[PooledThread-27-idle,5,ThreadPool-0-1]
            Thread[PooledThread-28-idle,5,ThreadPool-0-1]
            Thread[PooledThread-29-idle,5,ThreadPool-0-1]
            Thread[PooledThread-30-running,5,ThreadPool-0-1]
            Thread[PooledThread-31-idle,5,ThreadPool-0-1]
            Thread[PooledThread-32-idle,5,ThreadPool-0-1]
         encoding: US-ASCII
    name-registrar:
      logger.Q2: org.jpos.util.Logger
      server.Server-A: org.jpos.iso.ISOServer
        connected=2, rx=3430, tx=3432, last=1491291029223, idle=14407ms
          172.18.24.35:45942: rx=2232, tx=2233, last=1491291029223
          172.18.24.67:45583: rx=1198, tx=1199, last=1491291029223
      mux.hsm-mux: org.jpos.q2.iso.QMUX
        tx=27, rx=26, tx_expired=0, tx_pending=0, rx_expired=1, rx_pending=0, rx_unhandled=0, rx_forwarded=0, connected=true, last=1491279686446, idle=11357184ms
      tspace:org.jpos.transaction.TransactionManager@1041cf19: org.jpos.space.TSpace


and my problem is when memory becomes grow larger the application suddenly shutdown(hook) , Sorry for my bad english . Hope anyone can give me pointer ,

Thank in advance 

Rully 




--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/f09bff13-1937-4f99-9cc7-f282ba813ba2%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAPZRy5Gb_7J_%2B2DWexG38r0SD49mrqNqtXcXnsoeLVnancuZ4w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAL8bJ0HMcLH4dm0svuJzB8DcZRsb%2BJxD-TBBhzf8DYVuedV8mA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] Re: High memory usage

Mohd rully k
In reply to this post by Andy Orrock
Hi Mr Andy 

I'm so happy legend of jpos comment my post btw . Yes , this a bad build , but I can reject it , because It's my job , and it's my first jpos project anyway . The client using strange communication to talk with they core banking . Even strange where the response is when have special character written in hexa . I have already using standart socket listener with thread ( blocking IO ) and performance was bad . In this build performance was satisfied even not reached hundred like you do ( only around 30 TPS ) and they not even complaining what I'm trying to use as long it run . Until now memory utilization still fine in devian box , even I know there is something wrong with my code , but maybe someday I'll figure it out .  

@haris : I dont understand what you talking about multiple jar, when you see htop/top in linux process are like that , It only 1 jar , can't split it out because a lot channel going through this build like HSM and etc . 



On Wednesday, April 5, 2017 at 8:47:31 PM UTC+7, Andy Orrock wrote:
Sounds like a case of "good switch, bad switch."

<a href="http://www.andyorrock.com/2007/12/good-switch-bad.html" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.andyorrock.com%2F2007%2F12%2Fgood-switch-bad.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGmPqvagmIaccC4iVgrkp6KsBPcOg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.andyorrock.com%2F2007%2F12%2Fgood-switch-bad.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGmPqvagmIaccC4iVgrkp6KsBPcOg&#39;;return true;">http://www.andyorrock.com/2007/12/good-switch-bad.html

But here's the thing:  You can use jPOS to build a good switch...or a bad one.  There's nothing preventing you from taking jPOS and building a craptastic switch...nothing to prevent that at all.  


--------
Andy

On Wed, Apr 5, 2017 at 8:33 AM, Mohd rully k <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="rOyb0j-PBQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">mohd.r...@...> wrote:
Hi All , finally I ended up using debian 6 box 64bit with old kernel 2.6.x with MySQL 5.1, JDK still same Oracle 1.7.80. Until now memory use still safe and did not grow above expectation (only 700MB max) . No change in code and configuration still same , just hope it will be fine because still confuse how using xrebel or profiler .

@Harris : My point of view not for comparation , maybe 'still learning' is the best words , Aren't we ? 


On Tuesday, April 4, 2017 at 2:55:43 PM UTC+7, Mohd rully k wrote:
Dear all 

First I want to say many thanks to Creator, Developer, Support ,Maintaner and etc for JPOS framework .

So , for the record and to be honest I'm a newbie . I develope a gateway using Jpos version 1.9.8 , library in use Spring+Hibernate for log and query , Apache HTTP Client and Netty for convert ISO 8583 to object and send http request and get response in socket mode , and convert to ISO 8583 , also using HikariCP and MySQL for connection pooling also database. 
Normal usage memory not even above 20 % . But after several days ( > 2 days ) memory become growing more and more until  88% 
I'm linux using ubuntu 14.04.5 , Xeon 6 core , 8 GB RAM . 
this is my configuration :
<server class="org.jpos.q2.iso.QServer" logger="Q2" name="Server-A">
<attr name="port" type="java.lang.Integer">*****</attr>
<attr name="maxSessions" type="java.lang.Integer">100</attr>
<channel name="Server-A-Channel" class="<a href="http://org.jpos.iso.channel.AS" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jpos.iso.channel.AS\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEAYpT7UBbTO19ft4BBnFBx4KIUYg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jpos.iso.channel.AS\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEAYpT7UBbTO19ft4BBnFBx4KIUYg&#39;;return true;">org.jpos.iso.channel.ASCIIChannel"
logger="Q3" packager="org.jpos.iso.packager.GenericPackager">
<property name="packager-config" value="cfg/packager/iso87ascii.xml" />
</channel>
<request-listener class="com.******.listener.ServerListener"
logger="Q2">
<property name="space" value="transient:default" />
<property name="queue" value="TransactionQueue" />
</request-listener>
</server>

<txnmgr name="txnmgr" 
class="<a href="http://org.jpos.transaction.Tr" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jpos.transaction.Tr\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFiwVpA70zz1sfA1yai1uheL9xzwg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jpos.transaction.Tr\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFiwVpA70zz1sfA1yai1uheL9xzwg&#39;;return true;">org.jpos.transaction.TransactionManager">
<property name="space" value="transient:default" />
<property name="queue" value="TransactionQueue" />
<property name="max-sessions" value="100" />
<property name="debug" value="false" />
<participant class="com.******.transaction.TransMan"
logger="Q3">
.......

<channel-adaptor name='client-adaptor' class="org.jpos.q2.iso.ChannelAdaptor"
logger="Q2">
<channel class="<a href="http://org.jpos.iso.channel.AS" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jpos.iso.channel.AS\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEAYpT7UBbTO19ft4BBnFBx4KIUYg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jpos.iso.channel.AS\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEAYpT7UBbTO19ft4BBnFBx4KIUYg&#39;;return true;">org.jpos.iso.channel.ASCIIChannel" packager="org.jpos.iso.packager.GenericPackager">
<property name="host" value="127.0.0.1" />
<property name="port" value="*****" />
<property name="packager-config" value="cfg/packager/iso87ascii.xml" />
<property name="keep-alive" value="true" />
</channel>
</channel-adaptor>
<log realm="org.jpos.q2.qbean.SystemMonitor" at="Tue Apr 04 14:30:43 WIB 2017.603">
  <info>
               OS: Linux
             host: DBDEV/<a href="http://127.0.1.1" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F127.0.1.1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFVDirF8eNAEzFy3XX5vmkJwTUPwg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F127.0.1.1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFVDirF8eNAEzFy3XX5vmkJwTUPwg&#39;;return true;">127.0.1.1
          version: 1.9.8 (f46a5dc)
         instance: b95804b9-1219-4b8d-a5d0-b8936b4c19e5
           uptime: 1d 04:00:07.967
       processors: 6
           drift : 0
    memory(t/u/f): 332/267/64
          threads: 63
            Thread[Reference Handler,10,system]
            Thread[Finalizer,8,system]
            Thread[Signal Dispatcher,9,system]
            Thread[main,5,main]
            Thread[Q2-b95804b9-1219-4b8d-a5d0-b8936b4c19e5,5,main]
            Thread[pool-1-thread-1,5,main]
            Thread[Timer-0,5,main]
            Thread[nioEventLoopGroup-2-1,10,main]
            Thread[nioEventLoopGroup-2-2,10,main]
            Thread[threadDeathWatcher-3-1,1,main]
            Thread[Abandoned connection cleanup thread,5,main]
            Thread[Hikari Housekeeping Timer,5,main]
            Thread[Hikari Housekeeping Timer,5,main]
            Thread[Thread-6,5,main]
            Thread[Timer-1,5,main]
            Thread[txnmgr-0:idle,5,main]
            Thread[channel-sender-null,5,main]
            Thread[channel-sender-hsm-send,5,main]
            Thread[channel-receiver-hsm-receive,5,main]
            Thread[SystemMonitor,5,main]
            Thread[nioEventLoopGroup-2-3,10,main]
            Thread[nioEventLoopGroup-2-4,10,main]
            Thread[txnmgr-1:idle,5,main]
            Thread[nioEventLoopGroup-2-5,10,main]
            Thread[nioEventLoopGroup-2-6,10,main]
            Thread[nioEventLoopGroup-2-7,10,main]
            Thread[nioEventLoopGroup-2-8,10,main]
            Thread[nioEventLoopGroup-2-9,10,main]
            Thread[nioEventLoopGroup-2-10,10,main]
            Thread[nioEventLoopGroup-2-11,10,main]
            Thread[nioEventLoopGroup-2-12,10,main]
            Thread[MySQL Statement Cancellation Timer,5,main]
            Thread[MySQL Statement Cancellation Timer,5,main]
            Thread[PooledThread-0-idle,5,ThreadPool-0-1]
            Thread[PooledThread-1-running,5,ThreadPool-0-1]
            Thread[PooledThread-2-idle,5,ThreadPool-0-1]
            Thread[PooledThread-3-idle,5,ThreadPool-0-1]
            Thread[PooledThread-4-idle,5,ThreadPool-0-1]
            Thread[PooledThread-5-idle,5,ThreadPool-0-1]
            Thread[PooledThread-6-idle,5,ThreadPool-0-1]
            Thread[PooledThread-7-idle,5,ThreadPool-0-1]
            Thread[PooledThread-8-idle,5,ThreadPool-0-1]
            Thread[PooledThread-9-idle,5,ThreadPool-0-1]
            Thread[PooledThread-10-idle,5,ThreadPool-0-1]
            Thread[PooledThread-11-idle,5,ThreadPool-0-1]
            Thread[PooledThread-12-idle,5,ThreadPool-0-1]
            Thread[PooledThread-13-idle,5,ThreadPool-0-1]
            Thread[PooledThread-14-idle,5,ThreadPool-0-1]
            Thread[PooledThread-15-idle,5,ThreadPool-0-1]
            Thread[PooledThread-16-idle,5,ThreadPool-0-1]
            Thread[PooledThread-17-idle,5,ThreadPool-0-1]
            Thread[PooledThread-18-idle,5,ThreadPool-0-1]
            Thread[PooledThread-19-idle,5,ThreadPool-0-1]
            Thread[PooledThread-20-idle,5,ThreadPool-0-1]
            Thread[PooledThread-21-idle,5,ThreadPool-0-1]
            Thread[PooledThread-22-idle,5,ThreadPool-0-1]
            Thread[PooledThread-23-idle,5,ThreadPool-0-1]
            Thread[PooledThread-24-idle,5,ThreadPool-0-1]
            Thread[PooledThread-25-idle,5,ThreadPool-0-1]
            Thread[PooledThread-26-idle,5,ThreadPool-0-1]
            Thread[PooledThread-27-idle,5,ThreadPool-0-1]
            Thread[PooledThread-28-idle,5,ThreadPool-0-1]
            Thread[PooledThread-29-idle,5,ThreadPool-0-1]
            Thread[PooledThread-30-running,5,ThreadPool-0-1]
            Thread[PooledThread-31-idle,5,ThreadPool-0-1]
            Thread[PooledThread-32-idle,5,ThreadPool-0-1]
         encoding: US-ASCII
    name-registrar:
      logger.Q2: org.jpos.util.Logger
      server.Server-A: org.jpos.iso.ISOServer
        connected=2, rx=3430, tx=3432, last=1491291029223, idle=14407ms
          <a href="http://172.18.24.35:45942" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F172.18.24.35%3A45942\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH2drzaoVjfT38d1vr-pM2lhXP4sw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F172.18.24.35%3A45942\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH2drzaoVjfT38d1vr-pM2lhXP4sw&#39;;return true;">172.18.24.35:45942: rx=2232, tx=2233, last=1491291029223
          <a href="http://172.18.24.67:45583" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F172.18.24.67%3A45583\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFvg_fe1gOmfwBs20CQbsjDfI_GRA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F172.18.24.67%3A45583\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFvg_fe1gOmfwBs20CQbsjDfI_GRA&#39;;return true;">172.18.24.67:45583: rx=1198, tx=1199, last=1491291029223
      mux.hsm-mux: org.jpos.q2.iso.QMUX
        tx=27, rx=26, tx_expired=0, tx_pending=0, rx_expired=1, rx_pending=0, rx_unhandled=0, rx_forwarded=0, connected=true, last=1491279686446, idle=11357184ms
      tspace:<a href="http://org.jpos.transaction.Tr" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jpos.transaction.Tr\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFiwVpA70zz1sfA1yai1uheL9xzwg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jpos.transaction.Tr\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFiwVpA70zz1sfA1yai1uheL9xzwg&#39;;return true;">org.jpos.transaction.TransactionManager@1041cf19: org.jpos.space.TSpace


and my problem is when memory becomes grow larger the application suddenly shutdown(hook) , Sorry for my bad english . Hope anyone can give me pointer ,

Thank in advance 

Rully 




--
--
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: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="rOyb0j-PBQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">sa...@...
---
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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="rOyb0j-PBQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jpos-users+...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="rOyb0j-PBQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jpos-...@....
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jpos-users/f09bff13-1937-4f99-9cc7-f282ba813ba2%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jpos-users/f09bff13-1937-4f99-9cc7-f282ba813ba2%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jpos-users/f09bff13-1937-4f99-9cc7-f282ba813ba2%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jpos-users/f09bff13-1937-4f99-9cc7-f282ba813ba2%40googlegroups.com.

For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/33e463a9-453b-4c62-8123-e4bc4d1cdbc1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] Re: High memory usage

A Haris Kurniawan
not multiple jar, multiple instance of the same jar (Gateway-1A.jar)
CMIIW they have different PID, so each one of them is running as a different instance

On Thu, Apr 6, 2017 at 8:28 AM, Mohd rully k <[hidden email]> wrote:
Hi Mr Andy 

I'm so happy legend of jpos comment my post btw . Yes , this a bad build , but I can reject it , because It's my job , and it's my first jpos project anyway . The client using strange communication to talk with they core banking . Even strange where the response is when have special character written in hexa . I have already using standart socket listener with thread ( blocking IO ) and performance was bad . In this build performance was satisfied even not reached hundred like you do ( only around 30 TPS ) and they not even complaining what I'm trying to use as long it run . Until now memory utilization still fine in devian box , even I know there is something wrong with my code , but maybe someday I'll figure it out .  

@haris : I dont understand what you talking about multiple jar, when you see htop/top in linux process are like that , It only 1 jar , can't split it out because a lot channel going through this build like HSM and etc . 



On Wednesday, April 5, 2017 at 8:47:31 PM UTC+7, Andy Orrock wrote:
Sounds like a case of "good switch, bad switch."


But here's the thing:  You can use jPOS to build a good switch...or a bad one.  There's nothing preventing you from taking jPOS and building a craptastic switch...nothing to prevent that at all.  


--------
Andy

On Wed, Apr 5, 2017 at 8:33 AM, Mohd rully k <[hidden email]> wrote:
Hi All , finally I ended up using debian 6 box 64bit with old kernel 2.6.x with MySQL 5.1, JDK still same Oracle 1.7.80. Until now memory use still safe and did not grow above expectation (only 700MB max) . No change in code and configuration still same , just hope it will be fine because still confuse how using xrebel or profiler .

@Harris : My point of view not for comparation , maybe 'still learning' is the best words , Aren't we ? 


On Tuesday, April 4, 2017 at 2:55:43 PM UTC+7, Mohd rully k wrote:
Dear all 

First I want to say many thanks to Creator, Developer, Support ,Maintaner and etc for JPOS framework .

So , for the record and to be honest I'm a newbie . I develope a gateway using Jpos version 1.9.8 , library in use Spring+Hibernate for log and query , Apache HTTP Client and Netty for convert ISO 8583 to object and send http request and get response in socket mode , and convert to ISO 8583 , also using HikariCP and MySQL for connection pooling also database. 
Normal usage memory not even above 20 % . But after several days ( > 2 days ) memory become growing more and more until  88% 
I'm linux using ubuntu 14.04.5 , Xeon 6 core , 8 GB RAM . 
this is my configuration :
<server class="org.jpos.q2.iso.QServer" logger="Q2" name="Server-A">
<attr name="port" type="java.lang.Integer">*****</attr>
<attr name="maxSessions" type="java.lang.Integer">100</attr>
<channel name="Server-A-Channel" class="org.jpos.iso.channel.ASCIIChannel"
logger="Q3" packager="org.jpos.iso.packager.GenericPackager">
<property name="packager-config" value="cfg/packager/iso87ascii.xml" />
</channel>
<request-listener class="com.******.listener.ServerListener"
logger="Q2">
<property name="space" value="transient:default" />
<property name="queue" value="TransactionQueue" />
</request-listener>
</server>

<txnmgr name="txnmgr" 
class="org.jpos.transaction.TransactionManager">
<property name="space" value="transient:default" />
<property name="queue" value="TransactionQueue" />
<property name="max-sessions" value="100" />
<property name="debug" value="false" />
<participant class="com.******.transaction.TransMan"
logger="Q3">
.......

<channel-adaptor name='client-adaptor' class="org.jpos.q2.iso.ChannelAdaptor"
logger="Q2">
<channel class="org.jpos.iso.channel.ASCIIChannel" packager="org.jpos.iso.packager.GenericPackager">
<property name="host" value="127.0.0.1" />
<property name="port" value="*****" />
<property name="packager-config" value="cfg/packager/iso87ascii.xml" />
<property name="keep-alive" value="true" />
</channel>
</channel-adaptor>
<log realm="org.jpos.q2.qbean.SystemMonitor" at="Tue Apr 04 14:30:43 WIB 2017.603">
  <info>
               OS: Linux
             host: DBDEV/127.0.1.1
          version: 1.9.8 (f46a5dc)
         instance: b95804b9-1219-4b8d-a5d0-b8936b4c19e5
           uptime: 1d 04:00:07.967
       processors: 6
           drift : 0
    memory(t/u/f): 332/267/64
          threads: 63
            Thread[Reference Handler,10,system]
            Thread[Finalizer,8,system]
            Thread[Signal Dispatcher,9,system]
            Thread[main,5,main]
            Thread[Q2-b95804b9-1219-4b8d-a5d0-b8936b4c19e5,5,main]
            Thread[pool-1-thread-1,5,main]
            Thread[Timer-0,5,main]
            Thread[nioEventLoopGroup-2-1,10,main]
            Thread[nioEventLoopGroup-2-2,10,main]
            Thread[threadDeathWatcher-3-1,1,main]
            Thread[Abandoned connection cleanup thread,5,main]
            Thread[Hikari Housekeeping Timer,5,main]
            Thread[Hikari Housekeeping Timer,5,main]
            Thread[Thread-6,5,main]
            Thread[Timer-1,5,main]
            Thread[txnmgr-0:idle,5,main]
            Thread[channel-sender-null,5,main]
            Thread[channel-sender-hsm-send,5,main]
            Thread[channel-receiver-hsm-receive,5,main]
            Thread[SystemMonitor,5,main]
            Thread[nioEventLoopGroup-2-3,10,main]
            Thread[nioEventLoopGroup-2-4,10,main]
            Thread[txnmgr-1:idle,5,main]
            Thread[nioEventLoopGroup-2-5,10,main]
            Thread[nioEventLoopGroup-2-6,10,main]
            Thread[nioEventLoopGroup-2-7,10,main]
            Thread[nioEventLoopGroup-2-8,10,main]
            Thread[nioEventLoopGroup-2-9,10,main]
            Thread[nioEventLoopGroup-2-10,10,main]
            Thread[nioEventLoopGroup-2-11,10,main]
            Thread[nioEventLoopGroup-2-12,10,main]
            Thread[MySQL Statement Cancellation Timer,5,main]
            Thread[MySQL Statement Cancellation Timer,5,main]
            Thread[PooledThread-0-idle,5,ThreadPool-0-1]
            Thread[PooledThread-1-running,5,ThreadPool-0-1]
            Thread[PooledThread-2-idle,5,ThreadPool-0-1]
            Thread[PooledThread-3-idle,5,ThreadPool-0-1]
            Thread[PooledThread-4-idle,5,ThreadPool-0-1]
            Thread[PooledThread-5-idle,5,ThreadPool-0-1]
            Thread[PooledThread-6-idle,5,ThreadPool-0-1]
            Thread[PooledThread-7-idle,5,ThreadPool-0-1]
            Thread[PooledThread-8-idle,5,ThreadPool-0-1]
            Thread[PooledThread-9-idle,5,ThreadPool-0-1]
            Thread[PooledThread-10-idle,5,ThreadPool-0-1]
            Thread[PooledThread-11-idle,5,ThreadPool-0-1]
            Thread[PooledThread-12-idle,5,ThreadPool-0-1]
            Thread[PooledThread-13-idle,5,ThreadPool-0-1]
            Thread[PooledThread-14-idle,5,ThreadPool-0-1]
            Thread[PooledThread-15-idle,5,ThreadPool-0-1]
            Thread[PooledThread-16-idle,5,ThreadPool-0-1]
            Thread[PooledThread-17-idle,5,ThreadPool-0-1]
            Thread[PooledThread-18-idle,5,ThreadPool-0-1]
            Thread[PooledThread-19-idle,5,ThreadPool-0-1]
            Thread[PooledThread-20-idle,5,ThreadPool-0-1]
            Thread[PooledThread-21-idle,5,ThreadPool-0-1]
            Thread[PooledThread-22-idle,5,ThreadPool-0-1]
            Thread[PooledThread-23-idle,5,ThreadPool-0-1]
            Thread[PooledThread-24-idle,5,ThreadPool-0-1]
            Thread[PooledThread-25-idle,5,ThreadPool-0-1]
            Thread[PooledThread-26-idle,5,ThreadPool-0-1]
            Thread[PooledThread-27-idle,5,ThreadPool-0-1]
            Thread[PooledThread-28-idle,5,ThreadPool-0-1]
            Thread[PooledThread-29-idle,5,ThreadPool-0-1]
            Thread[PooledThread-30-running,5,ThreadPool-0-1]
            Thread[PooledThread-31-idle,5,ThreadPool-0-1]
            Thread[PooledThread-32-idle,5,ThreadPool-0-1]
         encoding: US-ASCII
    name-registrar:
      logger.Q2: org.jpos.util.Logger
      server.Server-A: org.jpos.iso.ISOServer
        connected=2, rx=3430, tx=3432, last=1491291029223, idle=14407ms
          172.18.24.35:45942: rx=2232, tx=2233, last=1491291029223
          172.18.24.67:45583: rx=1198, tx=1199, last=1491291029223
      mux.hsm-mux: org.jpos.q2.iso.QMUX
        tx=27, rx=26, tx_expired=0, tx_pending=0, rx_expired=1, rx_pending=0, rx_unhandled=0, rx_forwarded=0, connected=true, last=1491279686446, idle=11357184ms
      tspace:org.jpos.transaction.TransactionManager@1041cf19: org.jpos.space.TSpace


and my problem is when memory becomes grow larger the application suddenly shutdown(hook) , Sorry for my bad english . Hope anyone can give me pointer ,

Thank in advance 

Rully 




--
--
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: [hidden email]
---
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 post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/f09bff13-1937-4f99-9cc7-f282ba813ba2%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/33e463a9-453b-4c62-8123-e4bc4d1cdbc1%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Best regards,
A. Haris Kurniawan

--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CAL8bJ0H7cj2Y0EaK0FYoss8oC_Vn38irjCcAVgsP%3DvKwo1U9%2Bg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] Re: High memory usage

Mohd rully k
Do you prefer this view @haris ? Btw I just figure it out the problem , many thank . 

On Thursday, April 6, 2017 at 10:28:34 AM UTC+7, A Haris Kurniawan wrote:
not multiple jar, multiple instance of the same jar (Gateway-1A.jar)
CMIIW they have different PID, so each one of them is running as a different instance

On Thu, Apr 6, 2017 at 8:28 AM, Mohd rully k <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="lb7Tuw28BQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">mohd.r...@...> wrote:
Hi Mr Andy 

I'm so happy legend of jpos comment my post btw . Yes , this a bad build , but I can reject it , because It's my job , and it's my first jpos project anyway . The client using strange communication to talk with they core banking . Even strange where the response is when have special character written in hexa . I have already using standart socket listener with thread ( blocking IO ) and performance was bad . In this build performance was satisfied even not reached hundred like you do ( only around 30 TPS ) and they not even complaining what I'm trying to use as long it run . Until now memory utilization still fine in devian box , even I know there is something wrong with my code , but maybe someday I'll figure it out .  

@haris : I dont understand what you talking about multiple jar, when you see htop/top in linux process are like that , It only 1 jar , can't split it out because a lot channel going through this build like HSM and etc . 



On Wednesday, April 5, 2017 at 8:47:31 PM UTC+7, Andy Orrock wrote:
Sounds like a case of "good switch, bad switch."

<a href="http://www.andyorrock.com/2007/12/good-switch-bad.html" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.andyorrock.com%2F2007%2F12%2Fgood-switch-bad.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGmPqvagmIaccC4iVgrkp6KsBPcOg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fwww.andyorrock.com%2F2007%2F12%2Fgood-switch-bad.html\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNGmPqvagmIaccC4iVgrkp6KsBPcOg&#39;;return true;">http://www.andyorrock.com/2007/12/good-switch-bad.html

But here's the thing:  You can use jPOS to build a good switch...or a bad one.  There's nothing preventing you from taking jPOS and building a craptastic switch...nothing to prevent that at all.  


--------
Andy

On Wed, Apr 5, 2017 at 8:33 AM, Mohd rully k <[hidden email]> wrote:
Hi All , finally I ended up using debian 6 box 64bit with old kernel 2.6.x with MySQL 5.1, JDK still same Oracle 1.7.80. Until now memory use still safe and did not grow above expectation (only 700MB max) . No change in code and configuration still same , just hope it will be fine because still confuse how using xrebel or profiler .

@Harris : My point of view not for comparation , maybe 'still learning' is the best words , Aren't we ? 


On Tuesday, April 4, 2017 at 2:55:43 PM UTC+7, Mohd rully k wrote:
Dear all 

First I want to say many thanks to Creator, Developer, Support ,Maintaner and etc for JPOS framework .

So , for the record and to be honest I'm a newbie . I develope a gateway using Jpos version 1.9.8 , library in use Spring+Hibernate for log and query , Apache HTTP Client and Netty for convert ISO 8583 to object and send http request and get response in socket mode , and convert to ISO 8583 , also using HikariCP and MySQL for connection pooling also database. 
Normal usage memory not even above 20 % . But after several days ( > 2 days ) memory become growing more and more until  88% 
I'm linux using ubuntu 14.04.5 , Xeon 6 core , 8 GB RAM . 
this is my configuration :
<server class="org.jpos.q2.iso.QServer" logger="Q2" name="Server-A">
<attr name="port" type="java.lang.Integer">*****</attr>
<attr name="maxSessions" type="java.lang.Integer">100</attr>
<channel name="Server-A-Channel" class="<a href="http://org.jpos.iso.channel.AS" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jpos.iso.channel.AS\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEAYpT7UBbTO19ft4BBnFBx4KIUYg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jpos.iso.channel.AS\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEAYpT7UBbTO19ft4BBnFBx4KIUYg&#39;;return true;">org.jpos.iso.channel.ASCIIChannel"
logger="Q3" packager="org.jpos.iso.packager.GenericPackager">
<property name="packager-config" value="cfg/packager/iso87ascii.xml" />
</channel>
<request-listener class="com.******.listener.ServerListener"
logger="Q2">
<property name="space" value="transient:default" />
<property name="queue" value="TransactionQueue" />
</request-listener>
</server>

<txnmgr name="txnmgr" 
class="<a href="http://org.jpos.transaction.Tr" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jpos.transaction.Tr\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFiwVpA70zz1sfA1yai1uheL9xzwg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jpos.transaction.Tr\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFiwVpA70zz1sfA1yai1uheL9xzwg&#39;;return true;">org.jpos.transaction.TransactionManager">
<property name="space" value="transient:default" />
<property name="queue" value="TransactionQueue" />
<property name="max-sessions" value="100" />
<property name="debug" value="false" />
<participant class="com.******.transaction.TransMan"
logger="Q3">
.......

<channel-adaptor name='client-adaptor' class="org.jpos.q2.iso.ChannelAdaptor"
logger="Q2">
<channel class="<a href="http://org.jpos.iso.channel.AS" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jpos.iso.channel.AS\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEAYpT7UBbTO19ft4BBnFBx4KIUYg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jpos.iso.channel.AS\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEAYpT7UBbTO19ft4BBnFBx4KIUYg&#39;;return true;">org.jpos.iso.channel.ASCIIChannel" packager="org.jpos.iso.packager.GenericPackager">
<property name="host" value="127.0.0.1" />
<property name="port" value="*****" />
<property name="packager-config" value="cfg/packager/iso87ascii.xml" />
<property name="keep-alive" value="true" />
</channel>
</channel-adaptor>
<log realm="org.jpos.q2.qbean.SystemMonitor" at="Tue Apr 04 14:30:43 WIB 2017.603">
  <info>
               OS: Linux
             host: DBDEV/<a href="http://127.0.1.1" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F127.0.1.1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFVDirF8eNAEzFy3XX5vmkJwTUPwg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F127.0.1.1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFVDirF8eNAEzFy3XX5vmkJwTUPwg&#39;;return true;">127.0.1.1
          version: 1.9.8 (f46a5dc)
         instance: b95804b9-1219-4b8d-a5d0-b8936b4c19e5
           uptime: 1d 04:00:07.967
       processors: 6
           drift : 0
    memory(t/u/f): 332/267/64
          threads: 63
            Thread[Reference Handler,10,system]
            Thread[Finalizer,8,system]
            Thread[Signal Dispatcher,9,system]
            Thread[main,5,main]
            Thread[Q2-b95804b9-1219-4b8d-a5d0-b8936b4c19e5,5,main]
            Thread[pool-1-thread-1,5,main]
            Thread[Timer-0,5,main]
            Thread[nioEventLoopGroup-2-1,10,main]
            Thread[nioEventLoopGroup-2-2,10,main]
            Thread[threadDeathWatcher-3-1,1,main]
            Thread[Abandoned connection cleanup thread,5,main]
            Thread[Hikari Housekeeping Timer,5,main]
            Thread[Hikari Housekeeping Timer,5,main]
            Thread[Thread-6,5,main]
            Thread[Timer-1,5,main]
            Thread[txnmgr-0:idle,5,main]
            Thread[channel-sender-null,5,main]
            Thread[channel-sender-hsm-send,5,main]
            Thread[channel-receiver-hsm-receive,5,main]
            Thread[SystemMonitor,5,main]
            Thread[nioEventLoopGroup-2-3,10,main]
            Thread[nioEventLoopGroup-2-4,10,main]
            Thread[txnmgr-1:idle,5,main]
            Thread[nioEventLoopGroup-2-5,10,main]
            Thread[nioEventLoopGroup-2-6,10,main]
            Thread[nioEventLoopGroup-2-7,10,main]
            Thread[nioEventLoopGroup-2-8,10,main]
            Thread[nioEventLoopGroup-2-9,10,main]
            Thread[nioEventLoopGroup-2-10,10,main]
            Thread[nioEventLoopGroup-2-11,10,main]
            Thread[nioEventLoopGroup-2-12,10,main]
            Thread[MySQL Statement Cancellation Timer,5,main]
            Thread[MySQL Statement Cancellation Timer,5,main]
            Thread[PooledThread-0-idle,5,ThreadPool-0-1]
            Thread[PooledThread-1-running,5,ThreadPool-0-1]
            Thread[PooledThread-2-idle,5,ThreadPool-0-1]
            Thread[PooledThread-3-idle,5,ThreadPool-0-1]
            Thread[PooledThread-4-idle,5,ThreadPool-0-1]
            Thread[PooledThread-5-idle,5,ThreadPool-0-1]
            Thread[PooledThread-6-idle,5,ThreadPool-0-1]
            Thread[PooledThread-7-idle,5,ThreadPool-0-1]
            Thread[PooledThread-8-idle,5,ThreadPool-0-1]
            Thread[PooledThread-9-idle,5,ThreadPool-0-1]
            Thread[PooledThread-10-idle,5,ThreadPool-0-1]
            Thread[PooledThread-11-idle,5,ThreadPool-0-1]
            Thread[PooledThread-12-idle,5,ThreadPool-0-1]
            Thread[PooledThread-13-idle,5,ThreadPool-0-1]
            Thread[PooledThread-14-idle,5,ThreadPool-0-1]
            Thread[PooledThread-15-idle,5,ThreadPool-0-1]
            Thread[PooledThread-16-idle,5,ThreadPool-0-1]
            Thread[PooledThread-17-idle,5,ThreadPool-0-1]
            Thread[PooledThread-18-idle,5,ThreadPool-0-1]
            Thread[PooledThread-19-idle,5,ThreadPool-0-1]
            Thread[PooledThread-20-idle,5,ThreadPool-0-1]
            Thread[PooledThread-21-idle,5,ThreadPool-0-1]
            Thread[PooledThread-22-idle,5,ThreadPool-0-1]
            Thread[PooledThread-23-idle,5,ThreadPool-0-1]
            Thread[PooledThread-24-idle,5,ThreadPool-0-1]
            Thread[PooledThread-25-idle,5,ThreadPool-0-1]
            Thread[PooledThread-26-idle,5,ThreadPool-0-1]
            Thread[PooledThread-27-idle,5,ThreadPool-0-1]
            Thread[PooledThread-28-idle,5,ThreadPool-0-1]
            Thread[PooledThread-29-idle,5,ThreadPool-0-1]
            Thread[PooledThread-30-running,5,ThreadPool-0-1]
            Thread[PooledThread-31-idle,5,ThreadPool-0-1]
            Thread[PooledThread-32-idle,5,ThreadPool-0-1]
         encoding: US-ASCII
    name-registrar:
      logger.Q2: org.jpos.util.Logger
      server.Server-A: org.jpos.iso.ISOServer
        connected=2, rx=3430, tx=3432, last=1491291029223, idle=14407ms
          <a href="http://172.18.24.35:45942" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F172.18.24.35%3A45942\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH2drzaoVjfT38d1vr-pM2lhXP4sw&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F172.18.24.35%3A45942\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNH2drzaoVjfT38d1vr-pM2lhXP4sw&#39;;return true;">172.18.24.35:45942: rx=2232, tx=2233, last=1491291029223
          <a href="http://172.18.24.67:45583" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F172.18.24.67%3A45583\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFvg_fe1gOmfwBs20CQbsjDfI_GRA&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2F172.18.24.67%3A45583\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFvg_fe1gOmfwBs20CQbsjDfI_GRA&#39;;return true;">172.18.24.67:45583: rx=1198, tx=1199, last=1491291029223
      mux.hsm-mux: org.jpos.q2.iso.QMUX
        tx=27, rx=26, tx_expired=0, tx_pending=0, rx_expired=1, rx_pending=0, rx_unhandled=0, rx_forwarded=0, connected=true, last=1491279686446, idle=11357184ms
      tspace:<a href="http://org.jpos.transaction.Tr" rel="nofollow" target="_blank" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jpos.transaction.Tr\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFiwVpA70zz1sfA1yai1uheL9xzwg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Forg.jpos.transaction.Tr\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFiwVpA70zz1sfA1yai1uheL9xzwg&#39;;return true;">org.jpos.transaction.TransactionManager@1041cf19: org.jpos.space.TSpace


and my problem is when memory becomes grow larger the application suddenly shutdown(hook) , Sorry for my bad english . Hope anyone can give me pointer ,

Thank in advance 

Rully 




--
--
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: [hidden email]
---
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 post to this group, send email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jpos-users/f09bff13-1937-4f99-9cc7-f282ba813ba2%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jpos-users/f09bff13-1937-4f99-9cc7-f282ba813ba2%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jpos-users/f09bff13-1937-4f99-9cc7-f282ba813ba2%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jpos-users/f09bff13-1937-4f99-9cc7-f282ba813ba2%40googlegroups.com.

For more options, visit <a href="https://groups.google.com/d/optout" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.

--
--
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: <a href="javascript:" target="_blank" gdf-obfuscated-mailto="lb7Tuw28BQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">sa...@...
---
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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="lb7Tuw28BQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jpos-users+...@googlegroups.com.
To post to this group, send email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="lb7Tuw28BQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jpos-...@....
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jpos-users/33e463a9-453b-4c62-8123-e4bc4d1cdbc1%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jpos-users/33e463a9-453b-4c62-8123-e4bc4d1cdbc1%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jpos-users/33e463a9-453b-4c62-8123-e4bc4d1cdbc1%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jpos-users/33e463a9-453b-4c62-8123-e4bc4d1cdbc1%40googlegroups.com.

For more options, visit <a href="https://groups.google.com/d/optout" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/optout&#39;;return true;">https://groups.google.com/d/optout.



--
Best regards,
A. Haris Kurniawan

--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/fd15e168-3b61-4449-903a-bb772922322e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

htop_gw_238.PNG (48K) Download Attachment
Loading...