search cancel

Increasing journaling size as tasks are going in progress mode in vApp

book

Article ID: 214890

calendar_today

Updated On:

Products

CA Identity Suite

Issue/Introduction

Some tasks are getting stuck in-progress.  New tasks mostly work but a group of tasks from last night are stuck in-progress.

Cause

By Default the jmsqueue journaling size if set to 2.  We will be increasing this to 20. 

Environment

Release : 14.3, 14.4

Component : CA IDENTITY SUITE (VIRTUAL APPLIANCE) vApp

Resolution

If you did not have a user to connect to JBoss-CLI, see the steps below:

You must sudo add-user.sh and create a new management console user.  I create a new "jbossuser".  You can create the user you need and password.  Run the commands in bold below.

 

[email protected] VAPP-14.3.0 (10.17.112.96):/opt/CA/wildfly-idm/bin > ls
add-user.bat         init.d                        standalone.bat
add-user.properties  jboss-cli.bat                 standalone.conf
add-user.sh          jboss-cli-logging.properties  standalone.conf.bat
appclient.bat        jboss-cli.sh                  standalone.conf.NOT_IN_USE
appclient.conf       jboss-cli.xml                 standalone.sh

appclient.conf.bat   jconsole.bat                  vault.bat
appclient.sh         jconsole.sh                   vault.sh
client               jdr.bat                       wsconsume.bat
domain.bat           jdr.sh                        wsconsume.sh
domain.conf          run.bat                       wsprovide.bat
domain.conf.bat      run.sh                        wsprovide.sh
domain.sh            service
[email protected] VAPP-14.3.0 (10.17.112.96):/opt/CA/wildfly-idm/bin >                                           

[email protected] VAPP-14.3.0 (10.17.112.96):/opt/CA/wildfly-idm/bin > sudo ./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):

Enter the details of the new user to add.
Using realm 'ManagementRealm' as discovered from the existing property files.
Username : jbossuser
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? y
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 'jbossuser' for realm 'ManagementRealm'
Is this correct yes/no? y
Added user 'jbossuser' to file '/opt/CA/wildfly-idm/standalone/configuration/mgmt-users.properties'
Added user 'jbossuser' to file '/opt/CA/wildfly-idm/domain/configuration/mgmt-users.properties'
Added user 'jbossuser' with groups  to file '/opt/CA/wildfly-idm/standalone/configuration/mgmt-groups.properties'
Added user 'jbossuser' 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? n
[email protected] VAPP-14.3.0 (10.17.112.96):/opt/CA/wildfly-idm/bin >
[email protected] VAPP-14.3.0 (10.17.112.96):/opt/CA/wildfly-idm/bin >

 

If you already have an user, start from here:


[email protected] VAPP-14.3.0 (10.17.112.96):/opt/CA/wildfly-idm/bin > ./jboss-cli.sh
You are disconnected at the moment. Type 'connect' to connect to the server or 'help' for the list of supported commands.
[disconnected /] connect
Authenticating against security realm: ManagementRealm
Username: jbossuser
Password:

Note: There are differences between vApp 14.3 and 14.4, check below the command for your version.

 

For Virtual Appliance 14.3
}
[[email protected]:9990 /] /subsystem=messaging/hornetq-server=default/:read-attribute(name=journal-min-files)
{
    "outcome" => "success",
    "result" => 2
}
[[email protected]:9990 /] /subsystem=messaging/hornetq-server=default/: write-attribute(name=journal-min-files,value=20)
{
    "outcome" => "success",
    "response-headers" => {
        "operation-requires-reload" => true,
        "process-state" => "reload-required"
    }
}
[[email protected]:9990 /] reload
[[email protected]:9990 /]  /subsystem=messaging/hornetq-server=default/:read-attribute(name=journal-min-files)
{
    "outcome" => "success",
    "result" => 20
}

 

For Virtual Appliance 14.4

[[email protected]:9990 /] /subsystem=messaging-activemq/server=default/:read-attribute(name=journal-min-files)
{
    "outcome" => "success",
    "result" => 2
}

 

[[email protected]:9990 /] /subsystem=messaging-activemq/server=default/: write-attribute(name=journal-min-files,value=20)
{
    "outcome" => "success",
    "response-headers" => {
        "operation-requires-reload" => true,
        "process-state" => "reload-required"
    }
}

 

[[email protected]:9990 /] reload

If the reload command fails, please, restart the Identity Manager service to reload the new configuration.

 

[[email protected]:9990 /] /subsystem=messaging-activemq/server=default/:read-attribute(name=journal-min-files)
{
    "outcome" => "success",
    "result" => 20
}

-----

There are 4 commands, the first one to load the current configuration and the second one to update the parameter with the value 20, the third one to reload the configuration, and the last one to confirm the value was set correctly.

We then run the second command.  This writes the value to 20. 

Run a reload. If the reload fails, please, restart the Identity Manager service to reload the new configuration

In the last command, we read the attribute again where it now returns 20 confirming the change was made. 

If a cluster, this should be done on all nodes.  This should also be done on any backup servers.