<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>496405</bug_id>
          
          <creation_ts>2024-11-18 02:22:07 +0000</creation_ts>
          <short_desc>Memory leak in Plasma shell and other KDE applications</short_desc>
          <delta_ts>2025-06-30 03:47:25 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Plasma</classification>
          <product>plasmashell</product>
          <component>generic-performance</component>
          <version>6.2.3</version>
          <rep_platform>Arch Linux</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          <see_also>https://bugs.kde.org/show_bug.cgi?id=403563</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.0</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter>bin.wang</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>heinep</cc>
    
    <cc>kde</cc>
    
    <cc>kdedev</cc>
    
    <cc>nate</cc>
    
    <cc>postix</cc>
    
    <cc>waclaw66</cc>
          
          <cf_commitlink></cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2375201</commentid>
    <comment_count>0</comment_count>
    <who name="">bin.wang</who>
    <bug_when>2024-11-18 02:22:07 +0000</bug_when>
    <thetext>***
If you&apos;re not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you&apos;re reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY

Plasma shell and other KDE applications using too much memory:

```
wangbin   672864  0.8  7.2 6562240 3595144 ?     Ssl  Nov16  17:03 /usr/bin/plasmashell --no-respawn
wangbin   760286  0.2  5.7 5532672 2816472 ?     Ssl  Nov16   5:07 /usr/bin/krunner --daemon
wangbin   672846  0.2  5.0 3789384 2502220 ?     Ssl  Nov16   5:33 /usr/bin/kded6
wangbin   672916  0.2  4.8 3135384 2375968 ?     Ssl  Nov16   4:29 /usr/lib/org_kde_powerdevil
```

As shown above, plasmashell uses more than 3G memory while krunner and org_kde_powerdevil both uses more than 2G. Dolphin also used more than 2G before I close it.

STEPS TO REPRODUCE
1. Use KDE for more than 1 day.

OBSERVED RESULT

Memory usage for Plasma shell and other KDE applications increased a lot. Especially weird for applications like &quot;/usr/lib/org_kde_powerdevil&quot;. 

EXPECTED RESULT

It shouldn&apos;t use so much memory.

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 6.2.3
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0
Kernel Version: 6.9.7-zen1-1-zen (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i5-6600K CPU @ 3.50GHz
Memory: 47.0 GiB of RAM
Graphics Processor: NVIDIA GeForce RTX 3080 Ti/PCIe/SSE2

ADDITIONAL INFORMATION

Please let me know how to collect more data to debug it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2375621</commentid>
    <comment_count>1</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2024-11-19 20:18:07 +0000</bug_when>
    <thetext>I notice your system has 47 Gb of memory. I suspect the system is simply noticing this and using more memory to speed things up. Is there an actual problem here? Is it causing any issues for you?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2375624</commentid>
    <comment_count>2</comment_count>
    <who name="">bin.wang</who>
    <bug_when>2024-11-19 20:25:31 +0000</bug_when>
    <thetext>Yes. Those kde applications + plasma shell combined sometimes uses more than 10G together. It eventually uses up to almost all available free memory and makes the system very slow, sometimes even freeze for a few seconds.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2375885</commentid>
    <comment_count>3</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2024-11-20 20:38:14 +0000</bug_when>
    <thetext>Ok, thanks. Sounds bad.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2377037</commentid>
    <comment_count>4</comment_count>
    <who name="">bin.wang</who>
    <bug_when>2024-11-26 00:09:33 +0000</bug_when>
    <thetext>Unlike in 485663, I don&apos;t even have `balooctl` installed and don&apos;t need to move large amount of files to trigger the memory leak.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2424699</commentid>
    <comment_count>5</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-05-16 15:24:20 +0000</bug_when>
    <thetext>Thanks again for the bug report, and sorry we weren&apos;t able to look into this yet. A lot of things have changed since this was reported; can I ask you to see if the problem still happens at all in Plasma 6.3.5 or later? Or if you can, the Plasma 6.4 beta would be even better. Thanks a lot!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2429236</commentid>
    <comment_count>6</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2025-05-31 03:47:41 +0000</bug_when>
    <thetext>🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2429249</commentid>
    <comment_count>7</comment_count>
    <who name="">bin.wang</who>
    <bug_when>2025-05-31 03:49:40 +0000</bug_when>
    <thetext>This issue seems to be resolved. I don&apos;t see memory leak behavior anymore.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2433118</commentid>
    <comment_count>8</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2025-06-15 03:47:30 +0000</bug_when>
    <thetext>🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2437383</commentid>
    <comment_count>9</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2025-06-30 03:47:25 +0000</bug_when>
    <thetext>🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>