[jgroups-users] JGroups-3.6.6-Final causes memory usage to grow gradually even when there is no traffic/activity (for a single node cluster)

Questions/problems related to using JGroups <[email protected]>
Newsgroups gmane.comp.java.javagroups.general
Message-ID <CAAYFd2Fg-5QcHcirkm6P6GGdY_=MC=rqNgjvfEUoK9HOw_kx=Q@mail.gmail.com>
Hello,

I'm relatively new to JGroups. I've successfully got it working in our
solution.
However, recently we noticed that memory usage continuously grows and
reaches maximum available memory approx in a week and then crashes due to
lack of memory.

I'm running 3.6.6-Final version.

I tried to reproduce the same issue with just one node and absolutely no
data activity. Even with no data activity - just starting the application
(a single node) and waiting, I can see the memory usage gradually grow in
size and take max allocated memory for the application.

When I comment out JChannel.connect(..) in the code (meaning am not
connecting my single node to a cluster at all and therby not forming a
cluster), memory of the application remains stable.

I'm using MPING in my config for node discovery.

The following is my config:
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:org:jgroups" xsi:schemaLocation="urn:org:jgroups &lt;a href="
http:="" www.jgroups.org="" schema="" jgroups.xsd"="">
http://www.jgroups.org/schema/jgroups.xsd">
<TCP bind_port="7800"
recv_buf_size="${tcp.recv_buf_size:5M}"
send_buf_size="${tcp.send_buf_size:5M}"
max_bundle_size="64K"
max_bundle_timeout="30"
use_send_queues="true"
sock_conn_timeout="300"

     timer_type="new3"
     timer.min_threads="4"
     timer.max_threads="10"
     timer.keep_alive_time="3000"
     timer.queue_max_size="500"

     thread_pool.enabled="true"
     thread_pool.min_threads="2"
     thread_pool.max_threads="8"
     thread_pool.keep_alive_time="5000"
     thread_pool.queue_enabled="true"
     thread_pool.queue_max_size="10000"
     thread_pool.rejection_policy="discard"

     oob_thread_pool.enabled="true"
     oob_thread_pool.min_threads="1"
     oob_thread_pool.max_threads="8"
     oob_thread_pool.keep_alive_time="5000"
     oob_thread_pool.queue_enabled="false"
     oob_thread_pool.queue_max_size="100"
     oob_thread_pool.rejection_policy="discard"/>

<MPING ip_ttl="8"
       mcast_addr="224.1.2.3"
       mcast_port="7801"
       send_on_all_interfaces="true"
       receive_on_all_interfaces="true"/>

<MERGE3  min_interval="10000"
         max_interval="30000"/>
<FD_SOCK client_bind_port="40718" start_port="40718"/>
<FD timeout="3000" max_tries="3" />
<VERIFY_SUSPECT timeout="1500"  />
<BARRIER />
<!--<pbcast.NAKACK2 use_mcast_xmit="false"
                discard_delivered_msgs="true"/> -->
<pbcast.NAKACK2 xmit_interval="500"
                xmit_table_num_rows="10"
                xmit_table_msgs_per_row="200"
                xmit_table_max_compaction_time="30000"
                max_msg_batch_size="500"
                use_mcast_xmit="false"
                discard_delivered_msgs="true"/>
<UNICAST3 xmit_interval="500"
          xmit_table_num_rows="10"
          xmit_table_msgs_per_row="200"
          xmit_table_max_compaction_time="60000"
          conn_expiry_timeout="0"
          max_msg_batch_size="500"/>
<pbcast.STABLE stability_delay="1000" desired_avg_gossip="50000"
               max_bytes="4M"/>
<pbcast.GMS print_local_addr="true" join_timeout="5000"
            view_bundling="true"/>
<MFC max_credits="2M"
     min_threshold="0.4"/>
<FRAG2 frag_size="60K"  />
<!--RSVP resend_interval="2000" timeout="10000"/-->
<pbcast.STATE_TRANSFER/>

</config>

It would be very helpful if you could take a look at this issue and share
some your thoughts on what could be going wrong.

I appreciate your help .

Thank You.

-- 

*Regards,*Venkat Subramanian

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape

_______________________________________________
javagroups-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/javagroups-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.