Bug 435900 - plasma-systemmonitor shows wrong memory usage of shell script app that spawns subprocess
Summary: plasma-systemmonitor shows wrong memory usage of shell script app that spawns...
Status: RESOLVED DUPLICATE of bug 435899
Alias: None
Product: plasma-systemmonitor
Classification: Applications
Component: general (show other bugs)
Version: 5.21.4
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: KSysGuard Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-19 02:28 UTC by Lê Hoàng Phương
Modified: 2021-04-19 08:25 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lê Hoàng Phương 2021-04-19 02:28:30 UTC
SUMMARY
plasma-systemmonitor currently only shows the memory usage of the pycharm.sh script, which is a shell script that starts the actual JVM and loads Pycharm in a subprocess.

STEPS TO REPRODUCE
1. Open Pycharm
2. Open plasma system monitor
3. 

OBSERVED RESULT
System monitor shows memory usage of only the shell script.

EXPECTED RESULT
System monitor shows memory usage of the whole Pycharm's process tree.

SOFTWARE/OS VERSIONS
Operating System: KDE neon 5.21
KDE Plasma Version: 5.21.4
KDE Frameworks Version: 5.81.0
Qt Version: 5.15.2
Kernel Version: 5.8.0-50-generic
OS Type: 64-bit

ADDITIONAL INFORMATION

The script does not use "exec" to replace the script process with the JVM process. If  I manually edit the script to use "exec", then system monitor will show the memory usage correctly.
Comment 1 David Redondo 2021-04-19 08:25:43 UTC
*** This bug has been marked as a duplicate of bug 435899 ***