The default timeout value for web sessions to the vRealize Automation console is 30 minutes, this can be a nuisance for anyone attempting to work in vRA as this is not measured based on inactive time, but rather on the time since the user logged in. If a user is in the middle of something when they reach the 30 minute mark after they’d logged in, they will be automatically logged out, this is not ideal.
The file /usr/lib/vcac/server/webapps/vcac/WEB-INF/web.xml has an xml tag <session-timeout> which can be modified to another value (in minutes).
Here are the steps for modifying that:
- SSH to the vRealize Automation 7.x appliance as root
- Make a copy of the web.xml configuration file previously mentioned
- Modify the value between the session-timeout xml tags. This can be done using a text editor like vi, or using the sed utility, which I will show below
- Reboot the appliance
Commands
# Set a variable to be used as the new timeout value (in minutes) newTimeout=240 # Change into the directory where the web.xml file is cd /usr/lib/vcac/server/webapps/vcac/WEB-INF/ # Make a backup of the original web.xml file cp web.xml web.xml.bak # Check the current value grep session-timeout web.xml # Replace the timeout value sed -i "s|\(<session-timeout>\)[^<>]*\(</session-timeout>\)|\1${newTimeout}\2|" web.xml # Confirm the new value grep session-timeout web.xml
Example Output
NOTE: You may need to clear your browser cache after rebooting vRA to pick up the new timeout value.