RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1704608 - systemd-tmpfiles-clean deletes /tmp/hsperfdata_*
Summary: systemd-tmpfiles-clean deletes /tmp/hsperfdata_*
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: java-1.8.0-openjdk
Version: 7.6
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: jiri vanek
QA Contact: OpenJDK QA
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-04-30 08:20 UTC by Gerrit Slomma
Modified: 2024-03-25 15:16 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-11 21:46:58 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Gerrit Slomma 2019-04-30 08:20:13 UTC
Description of problem:

As reported in BUG #527425 under Red Hat Enterprise Linux 5 with tmpwatch systemd deletes via timer/service systemd-tmpfiles-clean /tmp/hsperfdata_* hooks for java-processes. This is at least unexpected and causes problems for long running java process with several java-tools (jstat jmap jps)


Version-Release number of selected component (if applicable):

systemd.x86_64 219-62.el7_6.5

How reproducible:

Run java process for a time, watch /tmp/hsperfdata_*-files disapearing

Steps to Reproduce:
1. [root@v0002110 ~]# ps -ef|grep java|grep -v grep|gawk '{print $2" "$5}' && ls -l /tmp/hsperfdata_*/
4391 Apr17
4466 Apr17
4518 Apr17
5052 Apr17
5287 Apr17
5770 Apr17
7569 Apr02
7640 Apr02
10725 Apr26
22546 Apr24
/tmp/hsperfdata_addm/:
insgesamt 0

/tmp/hsperfdata_fusion/:
insgesamt 96
-rw-------. 1 fusion fusion 32768 26. Apr 12:31 10725
-rw-------. 1 fusion fusion 32768 24. Apr 10:51 22546
-rw-------. 1 fusion fusion 32768 17. Apr 11:54 4518

/tmp/hsperfdata_root/:
insgesamt 0
2.
3.

Actual results:

Only three java-hooks are present.

Expected results:

java-hooks for all java processes are present.

Additional info:

Added following lines to /usr/lib/tmpfiles.d/tmp.conf and restarted systemd-tmpfiles-clean service afterwards to remedy the problem:

# Exclude java-hooks
x /tmp/hsperfdata_*

I hope this was the correct approach?
But to do this on all hosts is a bit tedious.

Comment 2 David Tardon 2019-05-22 09:05:26 UTC
(In reply to Gerrit Slomma from comment #0)
> Added following lines to /usr/lib/tmpfiles.d/tmp.conf and restarted
> systemd-tmpfiles-clean service afterwards to remedy the problem:
> 
> # Exclude java-hooks
> x /tmp/hsperfdata_*
> 
> I hope this was the correct approach?

Yes, it is. Just the exclusion should not be in tmp.conf, but in a separate config file owned by the package that creates/uses these dirs.

Comment 7 jiri vanek 2019-06-25 15:40:36 UTC
So the goal is to have generated from rpmbuild file of:
/usr/lib/tmpfiles.d/java.conf

where java.conf  contains two lines of:
x /tmp/hsperfdata_*
x /tmp/.java_pid*

and eventually comment of :
# Exclude java-hooks


Right? One nit to highlight, Multiple JDKS can be installed, so this file must be be same over all jdks. If it can change ove jdk, it must be /usr/lib/tmpfiles.d/java-version(-openjdk).conf

If it is supposed to change betwen releases, then it must be /usr/lib/tmpfiles.d/NVRA.conf

I guess best for us is /usr/lib/tmpfiles.d/java-version-openjdk.conf

Thoughts?

Considering how badly is this tested, any comment befor eimplementation itself  is valuable.

Comment 8 Severin Gehwolf 2019-06-25 16:06:00 UTC
(In reply to jiri vanek from comment #7)
> I guess best for us is /usr/lib/tmpfiles.d/java-version-openjdk.conf
> 
> Thoughts?

This sounds right.

Comment 11 Chris Williams 2020-11-11 21:46:58 UTC
Red Hat Enterprise Linux 7 shipped it's final minor release on September 29th, 2020. 7.9 was the last minor releases scheduled for RHEL 7.
From intial triage it does not appear the remaining Bugzillas meet the inclusion criteria for Maintenance Phase 2 and will now be closed. 

From the RHEL life cycle page:
https://access.redhat.com/support/policy/updates/errata#Maintenance_Support_2_Phase
"During Maintenance Support 2 Phase for Red Hat Enterprise Linux version 7,Red Hat defined Critical and Important impact Security Advisories (RHSAs) and selected (at Red Hat discretion) Urgent Priority Bug Fix Advisories (RHBAs) may be released as they become available."

If this BZ was closed in error and meets the above criteria please re-open it flag for 7.9.z, provide suitable business and technical justifications, and follow the process for Accelerated Fixes:
https://source.redhat.com/groups/public/pnt-cxno/pnt_customer_experience_and_operations_wiki/support_delivery_accelerated_fix_release_handbook  

Feature Requests can re-opened and moved to RHEL 8 if the desired functionality is not already present in the product. 

Please reach out to the applicable Product Experience Engineer[0] if you have any questions or concerns.  

[0] https://bugzilla.redhat.com/page.cgi?id=agile_component_mapping.html&product=Red+Hat+Enterprise+Linux+7


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