Identity Minder server experiencing error AMQ214013: Failed to decode packet: io.netty.util.internal.OutOfDirectMemoryError: failed to allocate 16777216 byte(s) of direct memory (used: 8589934599, max: 8594128896)
search cancel

Identity Minder server experiencing error AMQ214013: Failed to decode packet: io.netty.util.internal.OutOfDirectMemoryError: failed to allocate 16777216 byte(s) of direct memory (used: 8589934599, max: 8594128896)

book

Article ID: 227733

calendar_today

Updated On:

Products

CA Identity Suite

Issue/Introduction

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)

Environment

Release : 14.4

Component : IdentityMinder(Identity Manager)

Cause

Direct memory has increased in Netty version used in newer WildFly and EAP

Resolution

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