Bug 1936897 - [Engine JDK 11] More verbose and configurable GC logging.
Summary: [Engine JDK 11] More verbose and configurable GC logging.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: General
Version: 4.4.5.6
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ovirt-4.4.6
: 4.4.6.1
Assignee: Artur Socha
QA Contact: Guilherme Santos
URL:
Whiteboard:
Depends On:
Blocks: 1916171
TreeView+ depends on / blocked
 
Reported: 2021-03-09 12:44 UTC by Artur Socha
Modified: 2021-05-06 12:14 UTC (History)
3 users (show)

Fixed In Version: ovirt-engine-4.6.6.1
Clone Of:
Environment:
Last Closed: 2021-05-06 12:14:12 UTC
oVirt Team: Infra
Embargoed:
mperina: ovirt-4.4?
pm-rhel: planning_ack?
mperina: devel_ack+
gdeolive: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 113816 0 master MERGED packaging: more verbose & configurable GC logging 2021-03-10 09:27:45 UTC

Description Artur Socha 2021-03-09 12:44:05 UTC
Description of problem:
After migration to java 11 some configuration for java GC logging was omitted. Additionally, GC related logs are sent to console.log together with application logs. For clarity they could be logged into dedicated (rotating) file ie. gc.log, plus logging level could configurable so that in various scenarios 'debug' or even 'trace' be available. The detault is 'info' 


How reproducible:
Enable GC verbose logging by setting up ENGINE_VERBOSE_GC=true

Actual results:
Deprecated jvm start options being used -XX:+PrintGCTimeStamps and -XX:+PrintGCDetails

Expected results:
-Xlog framework should be used

Comment 1 Artur Socha 2021-03-09 13:03:45 UTC
Gargabe Collector logging in INFO level enabled by default is not expected to have significant impact on overall performance because these events are aggregated and logged once in a while.

However, verification against performance test suite is highly recommended.

Comment 2 Guilherme Santos 2021-05-05 14:04:02 UTC
Verified on:
ovirt-engine-4.4.6.6-0.10.el8ev.noarch

Steps:
1. echo "ENGINE_VERBOSE_GC=true" >> /etc/ovirt-engine/engine.conf.d/10-setup-java.conf
2. systemctl restart ovirt-engine
3. cat /var/log/ovirt-engine/gc.log

Results:
gc.log file present with verbose GC information following the default parameters (lines number, etc)

Comment 3 Sandro Bonazzola 2021-05-06 12:14:12 UTC
This bugzilla is included in oVirt 4.4.6 release, published on May 4th 2021.

Since the problem described in this bug report should be resolved in oVirt 4.4.6 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.