[id='default_jgroups_stacks-{context}']
= Default JGroups Stacks
{brandname} uses the following JGroups `TCP` and `UDP` stacks by default:

[source,xml,options="nowrap",subs=attributes+]
----
include::config_examples/jgroups_default_stack.xml[]
----

[NOTE]
====
To improve performance, {brandname} uses some values for properties other than the JGroups default values. You should examine the following files to review the JGroups configuration for {brandname}:

* {brandname} servers
  - `jgroups-defaults.xml`
  - `infinispan-jgroups.xml`

* Embedded {brandname}
  - `default-jgroups-tcp.xml`
  - `default-jgroups-udp.xml`
====

The default `TCP` stack uses the `MPING` protocol for discovery, which uses
`UDP` multicast.

.Reference

* link:http://www.jgroups.org/manual/html/protlist.html[JGroups Protocol]
* link:http://www.jgroups.org/manual/html/protlist.html#DiscoveryProtocols[JGroups Discovery Protocols]
