JGroups send and receive buffers warning when clustering is used in JBoss EAP 6.x and JDG 6.x

Solution Verified - Updated -

Issue

  • Out of the box, JGroups is set to certain send and receive buffer values:
WARNING [org.jgroups.protocols.UDP] (ChannelService lifecycle - 1) send buffer of socket java.net.MulticastSocket@60c42064 was set to 640KB, but the OS only allocated 131.07KB. This might lead to performance problems. Please set your max send buffer in the OS correctly (e.g. net.core.wmem_max on Linux)
WARNING [org.jgroups.protocols.UDP] (ChannelService lifecycle - 1) receive buffer of socket java.net.MulticastSocket@60c42064 was set to 25MB, but the OS only allocated 131.07KB. This might lead to performance problems. Please set your max receive buffer in the OS correctly (e.g. net.core.rmem_max on Linux)
WARN  [org.jgroups.protocols.UDP] (ServerService Thread Pool -- 63) [JGRP00014] the receive buffer of socket ManagedDatagramSocket was set to 20MB, but the OS only allocated 2.1MB. This might lead to performance problems. Please set your max receive buffer in the OS correctly (e.g. net.core.rmem_max on Linux)
WARN  [org.jgroups.protocols.UDP] (ServerService Thread Pool -- 63) JGRP000014: the send buffer of socket MulticastSocket was set to 640KB, but the OS only allocated 131.07KB. This might lead to performance problems. Please set your max send buffer in the OS correctly (e.g. net.core.wmem_max on Linux)
WARN  [org.jgroups.protocols.UDP] (ServerService Thread Pool -- 63) JGRP000014: the receive buffer of socket MulticastSocket was set to 25MB, but the OS only allocated 131.07KB. This might lead to performance problems. Please set your max receive buffer in the OS correctly (e.g. net.core.rmem_max on Linux)
  • How to prevent these from occurring on macbook pro?

  • Is 640KB (send buffer) and 25MB (receive buffer) a minimum recommended requirement for UDP?

  • What are good/safe baselines for these values?

  • Will hard coding these values effect TCP auto tuning in any fashion?

  • Are there any side effects to setting these values that should be considered?

  • How does one adjust the send and receive buffers for JGroups?

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x
  • Red Hat JBoss Data Grid (JDG)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.