This article is designed to help administrators tune performance in Liferay DXP 7.0 when the active thread count approaches the maximum allowed thread count.
The reason for this performance issue is because the values for the properties layout.prototype.merge.lock.max.time and layout.set.prototype.merge.lock.max.time are being handled as milliseconds rather than seconds. This means that if a site template merge were to take longer than half a second, and many people are visiting the same site, a deadlock will occur.
In addition, administrators may encounter some threads being blocked while processing JSP files.
Resolution
A temporary solution is to set the portal properties to 1000 times larger than their default values.
#layout.prototype.merge.lock.max.time=300 layout.prototype.merge.lock.max.time=300000 #layout.set.prototype.merge.lock.max.time=600 layout.set.prototype.merge.lock.max.time=600000
Additional Information
See LPS-76668 for more information and a possible resolution of the issue.