How to change the max-pool-size in a Virtual Appliance environment
search cancel

How to change the max-pool-size in a Virtual Appliance environment

book

Article ID: 230649

calendar_today

Updated On:

Products

CA Identity Manager

Issue/Introduction

How to tuning the max-pool-size in the standalone xml file in a Virtual Appliance environment?

Environment

Virtual Appliance 14.x

Resolution

Below are the steps to change the MDB pool size in a :

If you do not have the user configured to connect to JBoss Cli, please see the steps in the "How to add user to JBoss-cli" section, if you already have the user, proceed with the steps below:

- From vApp, go to the "/opt/CA/wildfly-idm/bin" folder and run the "./jboss-cli.sh" command to open jboss CLI
- Type "connect" and enter the user and password you set in the "Prerequisites" section
- After that, enter the command line below.

Start CLI and connect to your server. Run this command:
/subsystem=ejb3/strict-max-bean-instance-pool=mdb-strict-max-pool:write-attribute(name=max-pool-size,value=100)

Confirm max-pool-size=100:
/subsystem=ejb3/strict-max-bean-instance-pool=mdb-strict-max-pool:read-attribute(name=max-pool-size)

 

 


How to add user to JBoss-cli

Note: the user "username" below is just an example, you can use any name for the user

config@username-vapp-143ga VAPP-14.3.0 (10.0.0.1):/opt/CA/wildfly-idm/bin > sudo /opt/CA/wildfly-idm/bin/add-user.sh

What type of user do you wish to add?
 a) Management User (mgmt-users.properties)
 b) Application User (application-users.properties)
(a): a

Enter the details of the new user to add.
Using realm 'ManagementRealm' as discovered from the existing property files.
Username: 'username'
Password recommendations are listed below. To modify these restrictions edit the add-user.properties 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 'username' to file '/opt/CA/wildfly-idm/standalone/configuration/mgmt-users.properties'
Added user 'username' to file '/opt/CA/wildfly-idm/domain/configuration/mgmt-users.properties'
Added user 'username' with groups  to file '/opt/CA/wildfly-idm/standalone/configuration/mgmt-groups.properties'
Added user 'username' with groups  to file '/opt/CA/wildfly-idm/domain/configuration/mgmt-groups.properties'
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

Now you have the user associated with the Management Realm.