Bug 1128614
Summary: | RHQ 4.12 high CPU usage in hibernate thread (java.util.regex.Pattern$Start.match) | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Other] RHQ Project | Reporter: | Stian Lund <stianlund+bugzilla> | ||||||
Component: | Core Server, Performance | Assignee: | Thomas Segismont <tsegismo> | ||||||
Status: | ON_QA --- | QA Contact: | |||||||
Severity: | high | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 4.12 | CC: | genman, hrupp, tsegismo | ||||||
Target Milestone: | --- | ||||||||
Target Release: | RHQ 4.13 | ||||||||
Hardware: | x86_64 | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | |||||||||
: | 1132091 (view as bug list) | Environment: | |||||||
Last Closed: | Type: | Bug | |||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Bug Depends On: | |||||||||
Bug Blocks: | 1132091 | ||||||||
Attachments: |
|
Description
Stian Lund
2014-08-11 08:11:53 UTC
If anyone knows a temp workaround or have a binary build of jars that could fix this I'd be glad to test it in our environment. Fixed in master commit b5e8b3b09d5f05506ecd723feeeb1be5be1af6e5 Author: Thomas Segismont <tsegismo> Date: Wed Aug 20 17:24:56 2014 +0200 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). I have tested overnight with the 4.13 snapshot built with Thomas' fix. It seems to have worked and CPU usage (user load) is now down to almost nothing, like is expected in this small test env. There was a bit of a hack to install the plugin as plugin.xml had to be changed because import failed at first but I got it imported. I have another installation I did the same but I think I forgot to update the agents so to double check I need to run it over the weekend. Thanks to Thomas for the fix! Created attachment 930635 [details]
Plugin for 4.12 patched with cherry-picked commit b5e8b3b
|