Branch: refs/heads/master Home: https://github.com/rhq-project/rhq Commit: b5e8b3b09d5f05506ecd723feeeb1be5be1af6e5 https://github.com/rhq-project/rhq/commit/b5e8b3b09d5f05506ecd723feeeb1be5be... Author: Thomas Segismont tsegismo@redhat.com Date: 2014-08-20 (Wed, 20 Aug 2014)
Changed paths: M modules/plugins/jboss-as-7/src/main/java/org/rhq/modules/plugins/jbossas7/BaseComponent.java M modules/plugins/jboss-as-7/src/main/java/org/rhq/modules/plugins/jbossas7/HibernatePersistenceUnitComponent.java M modules/plugins/jboss-as-7/src/main/java/org/rhq/modules/plugins/jbossas7/json/ReadResource.java
Log Message: ----------- Bug 1128614 - RHQ 4.12 high CPU usage in hibernate thread (java.util.regex.Pattern$Start.match)
EAP up to 6.3 included has an issue with the JIPI implementation which cause high CPU usage when reading the Hibernate Persistence Unit with :read-resource.
High CPU usage was detected when checking for availability and loading configuration. So the fix consists in:
* BaseComponent#getAvailability change Read only minimum information as we just want to make sure we can read the resource. There's no need to read the children names, evaluate defaults, and retrieve runtime attributes.
* HibernatePersistenceUnitComponent#loadConfiguration addition Reading the "enabled" attribute is the only thing needed.
These changes not only fix the issue but generally improve performance in the AS7 plugin (less data sent over the AS7 management connection).
rhq-commits@lists.fedorahosted.org