Patch for v4.2.0 is available and attached to this KB.
The root cause is the new feature of custom recovery tags. there is a performance issue in case of huge policies with many resources and tags.
This patch offers the option to disable this feature. When the feature is disabled, the performance problem would be resolved and tags behavior during recovery will revert to the way it was in previous versions, either no tags or preserve original tags.
To disable it you need to install the attached patch and add an option in the cpmserver config file.
Steps:
1. Install patch attached to this KB
2. SSH into the N2WS server, user is cpmuser and your ssh key
3. create or modify this file /cpmdata/conf/cpmserver.cfg
and add the following
[recovery]
skip_recovery_tags=True
4. When no backups are running, restart the EC2 or restart Apache with command: sudo systemctl restart apache2