Bug 2152156
| Summary: | cockpit server monitor does not display rss | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Directory Server | Reporter: | Anton Bobrov <abobrov> | ||||
| Component: | 389-ds-base | Assignee: | mreynolds | ||||
| Status: | CLOSED ERRATA | QA Contact: | LDAP QA Team <idm-ds-qe-bugs> | ||||
| Severity: | medium | Docs Contact: | Zuzana Zoubkova <zzoubkov> | ||||
| Priority: | unspecified | ||||||
| Version: | 11.6 | CC: | bsmejkal, emartyny, idm-ds-dev-bugs, mreynolds, pasik, vashirov | ||||
| Target Milestone: | DS11.6 | ||||||
| Target Release: | dirsrv-11.7 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | redhat-ds-11-8080020230330140549-f969626e | Doc Type: | If docs needed, set a value | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2023-05-23 09:27:55 UTC | 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: | |||||||
| Attachments: |
|
||||||
|
Description
Anton Bobrov
2022-12-09 14:10:36 UTC
This is just flakely. This has been "fixed" like 3 times. Sometimes on the same system it works fine, and other times it does not. The output is just inconsistent, so the parsing needs work... Upstream ticket: https://github.com/389ds/389-ds-base/issues/5521 Created attachment 1959491 [details] Screenshot of the memory monitor Builds tested: 389-ds-base-1.4.3.34-1.module+el8dsrv+18528+22f7779f.x86_64 cockpit-389-ds-1.4.3.34-1.module+el8dsrv+18528+22f7779f.noarch Memory monitor numbers look correct. So I'm marking this bug as VERIFIED. But I agree with Anton that we should not rely on top's output. Under the hood top uses /proc file system. So instead of calling top, we can access it directly: # top -n 1 -b -p $(pidof ns-slapd) | tail -1 17882 dirsrv 20 0 1138224 600424 144760 S 6.7 33.0 0:48.87 ns-slapd # grep 'VmSize\|VmRSS' /proc/$(pidof ns-slapd)/status VmSize: 1138224 kB VmRSS: 600424 kB Sometime ago I filed https://bugzilla.redhat.com/show_bug.cgi?id=2171421 to move some of the monitoring logic to dsconf monitor. Instead of calling top/netstat and parse/transform their output we can access the same OS primitives as these tools use from lib389 and present them in json to the WebUI directly. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (redhat-ds:11 bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2023:3267 |