pqrs-org / Karabiner-Elements

Karabiner-Elements is a powerful utility for keyboard customization on macOS Sierra (10.12) or later.
https://pqrs.org/osx/karabiner/
The Unlicense
18.54k stars 834 forks source link

Ram Usage of karabiner_observer and karabiner_grabber ramping over time #3340

Open ollidiemaus opened 1 year ago

ollidiemaus commented 1 year ago

I have the issue that my karabiner_observer and karabiner_grabber are increasing in ram usage over time. It doesn't seem to flushed unless I restart the app. I use karabiner 14.10.0 and macos 13.1 on a Macbook Air M1

ollidiemaus commented 1 year ago

This issue persists with 14.11.0

keyworks commented 1 year ago

Same here. I'm noticing karabiner_observer sometimes slows my computer to a halt as it uses over a 1GB of memory so I have to kill it every once in a while.

I'm on Karabiner 14.11.0, Mac OS 13.1, Macbook Pro Intel

lundstrj commented 1 year ago

I discovered that my karabiner_observer was using some 860Mb of memory (searching lead me here) I am on 14.12.0 on MacOS 13.2.1 (22D68) Macbook Pro M1

nealeyoung commented 1 year ago

Having the same issue with karabiner_observer.
I am on latest (I think) on MacOS 13.4 (22F66) Mac Mini M1.

harijoshi07 commented 1 year ago

Karabiner observer is using 1.62 GB of physical memory. mac M1 Sonoma V14

kkstas commented 1 year ago
image

Today, macOS Ventura 13.4.1 M1 macbook pro 16"

lemonad commented 1 year ago
image

Karabiner Elements 14.12.0 + macOS Ventura 13.5 (22G74) on a 13" 2,7 GHz Quad-Core Intel Core i7.

jerrysearch commented 9 months ago
image

Karabiner Elements 14.12.0 + macOS Sonoma 14.0 M1 macbook pro 16

curiouscod3 commented 9 months ago

This app consumse Memory So much ! 3.5G? too much.. and there are many processes. It seems that a minimum version that selectively turns off the opt out function is needed.

CarboxyDev commented 7 months ago

+1. This issue needs some attention. Machine: M1 macbook air, OS version: Sonoma

image
lucasvabrantes commented 6 months ago

Same here, folks! Sometimes it slows down my Macbook Air M1.

Screenshot 2024-02-22 at 15 48 06
matheusamazonas commented 6 months ago

The karabiner_observer process is currently taking 927 MB on my MacBook Pro M1 Max, running macOS Sonoma 14.2.1.

sbaildon commented 5 months ago

Activity Monitor overview reports questionably high memory usage;

image

But double-clicking the process reveals entirely different numbers

image
wuhh-wuhh commented 5 months ago

Same issue. MacOS 14.1. Karabiner 14.13.0

RAM usage at 1.02GB. Virtual memory at 390GB

Screenshot 2024-03-16 at 10 10 00 AM

Screenshot 2024-03-16 at 10 06 40 AM
jsimonlane commented 5 months ago

Seeing this as well, M2 Macbook Pro, Karabiner 14.13.0


The below hack acted as a workaround for me.

➜  $ sudo launchctl bootout system /Library/LaunchDaemons/org.pqrs.karabiner.karabiner_observer.plist   
➜ $ sudo launchctl bootstrap system /Library/LaunchDaemons/org.pqrs.karabiner.karabiner_observer.plist
lucasvabrantes commented 5 months ago

I realized the memory usage increases according the last time you have rebooted your device. So, for now, to hold on this bug, i just reboot my macbook and the karabiner_observer starts again with low memory usage.

Of course, you can kill the process on activity monitor, but i like to reboot.

angryPodo commented 3 months ago
image

I've also experienced the same issue. I'm using a MacBook Air with macOS 14.4.1 Sonoma. I've confirmed that the memory decreases upon reboot, but it increases proportionally over time.

beyond2001 commented 2 months ago

I've had the same issue. I am using Karabiner 14.13.0 on Macbook Pro m1 with macOS sonoma 14.5. The memory usage increases proportionally over time.

braendi commented 2 months ago

Same here. MacBook Pro M1, macOS Sonoma 14.5, Karabiner 14.13.0.

kamalahmed commented 2 months ago
Screenshot 2024-07-07 at 3 35 41 AM

Ram usage: 2.17 GB System: macbook Pro 16, M1 Pro 2021 OS: Sonoma 14.5 apps updated

seongjaelee commented 1 month ago

+1.

frederickhu8 commented 1 month ago

+1

velaia commented 1 month ago

Seems like some changes are coming (currently in beta):

from NEWS.md

juil commented 1 month ago

Seems like some changes are coming (currently in beta):

  • Integrated karabiner_observer functions into karabiner_grabber, and then karabiner_observer has been removed.
  • The number of background processes has been reduced, resolving performance issues caused by inter-process communication in some environments.

from NEWS.md

Just installed the beta and karabiner processes are using MUCH less memory.

Screenshot 2024-07-22 at 11 24 28
kuba2kopec commented 1 month ago

I've had the same issue, just installed the beta version and will monitor the RAM usage

velaia commented 1 month ago

RAM usage after 2 days with the beta version seems stable (at least not going into the 100s of MB). If this holds true for other users and when the beta becomes stable, this issue could be closed.

Screenshot 2024-07-24 at 14 59 23
Gautham commented 1 month ago

Thank you for the work, Tekezo 🙇 Can the beta be released soon? My company's infosec doesn't allow me to run the beta version :(

matheusamazonas commented 3 weeks ago

Version 15.0.0 is out and it seems to have fixed the problem for me. 👏

beyond2001 commented 3 weeks ago

it's only been out for a couple of days, use a few days to see if it fixes. My memory usage still grows fast

matheusamazonas commented 3 weeks ago

it's only been out for a couple of days, use a few days to see if it fixes. My memory usage still grows fast

I have been using it for a a couple of days and memory usage did not grow. I didn't just install and celebrate it.

velaia commented 3 weeks ago

Update on version 14.99.8 after running it for 3 weeks. _karabinergrabber still seems to accumulate memory over time.

image

matheusamazonas commented 3 weeks ago

Update on version 14.99.8 after running it for 3 weeks. _karabinergrabber still seems to accumulate memory over time.

If I'm not mistaken, the version that supposedly fixes the bug is 15.0.0, which was released about 3 days ago. Have you tried that one yet?

beyond2001 commented 3 weeks ago

it's only been out for a couple of days, use a few days to see if it fixes. My memory usage still grows fast

I have been using it for a a couple of days and memory usage did not grow. I didn't just install and celebrate it.

2 days is still too short to verify this fix.

beyond2001 commented 2 weeks ago

I've had the same issue. I am using Karabiner 14.13.0 on Macbook Pro m1 with macOS sonoma 14.5. The memory usage increases proportionally over time.

I am still having the same problem on 15.0.0

velaia commented 2 weeks ago

Same here. The karabiner_grabber process seems to grab more and more memory over time. This is verison 15.0.0 running for at about a week. The memory usage has grown from less than 50 MB to over 200 now.

image

dr-itz commented 2 days ago

15 days, 17.12 GB. Yes GB