All of our IM servers cannot start and report this error:
AMQ214013: Failed to decode packet: io.netty.util.internal.OutOfDirectMemoryError: failed to allocate 16777216 byte(s) of direct memory (used: 8589934599, max: 8594128896)
Release : 14.4
Component : IdentityMinder(Identity Manager)
Direct memory has increased in Netty version used in newer WildFly and EAP
Red Hat recommendations on this problem can be found in:
https://access.redhat.com/solutions/3204251
and
https://access.redhat.com/solutions/4615361
To rectify:
1) Change WildFly configuration:
add <param name="batch-delay" value="0"/> to <http-connector>, for instance:
<http-connector name="http-connector" socket binding="http"> <param name="batch-delay" value="0"/> </http-connector>
2) Add -Dio.netty.maxDirectMemory=0 to JAVA_OPTS in standalone.bat
See above Red Hat pages for the details