Product Documentation

To configure Tomcat oscache.properties

Dec 21, 2015
File oscache.properties is located under <installation_dir>\tomcat\webapps\zdm\WEB-INF\classes.
  1. Use wordpad to open the file. At the end of the file, look for JGroups configuration. It looks like the following example:
    cache.cluster.properties=UDP(mcast_addr=228.0.0.8;mcast_port=45566;diagnostics_addr=228.0.0.8;diagnostics_port=45567;mcast_send_buf_size=150000;mcast_recv_buf_size=80000):PING(timeout=1500;num_initial_members=2):MERGE2(min_interval=5000;max_interval=10000):FD_SOCK:VERIFY_SUSPECT(timeout=1000):pbcast.NAKACK(gc_lag=50;retransmit_timeout=300,600,1200,2400,4800;max_xmit_size=8192):UNICAST(timeout=300,600,1200,2400):pbcast.STABLE(desired_avg_gossip=20000):FRAG(frag_size=8096;down_thread=false;up_thread=false):pbcast.GMS(join_timeout=5000;join_retry_timeout=2000;shun=false;print_local_addr=true) 
    cache.cluster.multicast.ip=228.0.0.8
  2. Check the following parameters:
    • mcast_addr= 228.0.0.8
    • mcast_port=45566
    • diagnostics_addr= 228.0.0.8
    • diagnostics_port=45567
    • cache.cluster.multicast.ip= 228.0.0.8
      • mcast_addrandmcast_port, diagnostics_addr and diagnostics_port are used to check the Hibernate cache consistency among the cluster nodes. They must have the same values on all the cluster nodes.
      • cache.cluster.multicast.ipmut have the same address as mcast_addr.