Google Drive likes to leak memory on macOS, and since the devs don't seem to want to do anything about it I made these two launch agents to periodically restart it so it doesn't tie up a ton of resources.
- place them both in
~/Library/LaunchAgents
- disable launch on login in Google Drive Preferences
launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/googledrive.keepalive.plist
launchctl bootstrap gui/$(id -u) ~/Library/LaunchAgents/googledrive.killer.plist
- restart
Use at your own risk, this might mess up your sync somehow. I haven't had any issues personally. Quitting the app from the menu will not restart it, you'll need to launchctl kickstart
the keepalive plist or just restart your computer.