<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
RADIUS Agent in Disrupted State with "Error - Listener Thread error java.lang.OutOfMemoryError: Java heap space"
Multi-Factor Authentication
Overview

The RADIUS agent is going into a disrupted state due to "java.lang.OutOfMemoryError: Java heap space"

Error - Listener Thread error java.lang.OutOfMemoryError: Java heap space

 

OR

 

ERROR - Failed to get radius apps from Okta
java.lang.IllegalStateException: Connection pool shut down

Applies To
  • 32-bit RADIUS agent 2.17.3

  • Okta Identity Engine/Classic Engine

Cause
Memory is allocated for every packet the agent receives. When the agent is unable to allocate memory due to an issue with heap size, the error is generated.
Solution
  1. A REGISTRY edit needs to be made at the following path to update the value for JvmMS  to 1024 (decimal) and JvmMx to 1560 (decimal):

    • HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Apache Software Foundation\Procrun 2.0\okta-radius\Parameters\Java
      JvmMx value  
  1. After these values are updated, verify the memory peak usage goes up, allowing the agent to allocate more memory to handle the packets by the agent.

Loading
RADIUS Agent in Disrupted State with "Error - Listener Thread error java.lang.OutOfMemoryError: Java heap space"