ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

HQ154004: Failed to deliver message


Article ID: 206128


Updated On:


CA Identity Manager CA Identity Governance CA Identity Portal CA Identity Suite


Task performance in the CA Identity Manager vApp (Virtual Appliance) has deteriorated and CPU usage is high.  The following errors appear in the logs:

2021-01-07 09:35:57,949 ERROR [org.hornetq.ra] (Thread-56 (HornetQ-client-global-threads-878909203)) HQ154004: Failed to deliver message: javax.ejb.EJBException: JBAS014516: Failed to acquire a permit within 5 MINUTES



Performance Issue


Release : 14.3 CP2



The error below - illustrates a message bean instance depletion in Jboss\Hornetq.  If an instance is not available, HornetQ will try to wait for 5 minutes to see whether some instances return to the pool before the thread is failed.

2021-01-07 09:35:57,949 ERROR [org.hornetq.ra] (Thread-56 (HornetQ-client-global-threads-878909203)) HQ154004: Failed to deliver message: javax.ejb.EJBException: JBAS014516: Failed to acquire a permit within 5 MINUTES


Configuring MDB Maximum Sessions may help relieve this issue by creating more MDB Sessions.  The instructions to make the configuration changes are as documented in the product documentation (link below).


Extract: - In the Virtual Appliance, navigate to /opt/CA/VirtualAppliance/custom/IdentityManager.

1. Open for editing.
2. Change the value of the maxSession property to the desired value.


4. Restart Identity Manager.


You will also need to increase the Max Pool Size.  This needs to be done using the jboss-cli (see details below).  

1. First you will need to create a user in the ManagementRealm.  On the vApp Console logon as config.

Execute the following.

/opt/CA/wildfly-idm/bin > sudo /opt/CA/wildfly-idm/bin/

What type of user do you wish to add?
 a) Management User (
 b) Application User (
(a): a

Enter the details of the new user to add.
Using realm 'ManagementRealm' as discovered from the existing property files.
Username : mark
Password recommendations are listed below. To modify these restrictions edit the configuration file.
 - The password should not be one of the following restricted values {root, admin, administrator}
 - The password should contain at least 8 characters, 1 alphabetic character(s), 1 digit(s), 1 non-alphanumeric symbol(s)
 - The password should be different from the username
Password :
JBAS015266: Password must have at least 1 digit.
Are you sure you want to use the password entered yes/no? yes
Re-enter Password :
What groups do you want this user to belong to? (Please enter a comma separated list, or leave blank for none)[  ]:
About to add user 'mark' for realm 'ManagementRealm'
Is this correct yes/no? yes
Added user 'mark' to file '/opt/CA/wildfly-idm/standalone/configuration/'
Added user 'mark' to file '/opt/CA/wildfly-idm/domain/configuration/'
Added user 'mark' with groups  to file '/opt/CA/wildfly-idm/standalone/configuration/'
Added user 'mark' with groups  to file '/opt/CA/wildfly-idm/domain/configuration/'
Is this new user going to be used for one AS process to connect to another AS process?
e.g. for a slave host controller connecting to the master or for a Remoting connection for server to server EJB calls.
yes/no? no

2. Now login to the jboss-cli to change the standalone xml file’s setting for MDB pool size.
To start CLI 

cd /opt/CA/wildfly-idm/bin
<enter the user you created above>

3. Once connected run this command:


4. Type quit to exit the jboss cli.

Additional Information

Values stated above are based upon medium to large enterprise deployments.  Further optimization "tweaks" may be required for specific environments.