[[elementsNumberLimit]]
= elements-number-limit
:author: Wojciech Kapcia <wojciech.kapcia@tigase.org>
:version: v2.0, June 2014: Reformatted for AsciiDoc.

*Default value:* `1000`

*Possible values:* any integer.

*Description:* `elements-number-limit` configuration property allows configuring a Denial of Service protection mechanism which limits number of elements sent in stanza. It must be configured on a per ConnectionManager basis:

[source,bash]
-----
'<ConnectionManager>' {
    'elements-number-limit' = ###
}
-----

for example (for ClusterConnectionManager):

[source,bash]
-----
'cl-comp' {
    'elements-number-limit' = 100000
-----

*Available since:* 5.2.0
