Help to improve my personal solution for Safari's high memory usage, or say why it's no good?

No, you cannot force another process to deallocate memory. That'd almost certainly crash it anyway (which is effectively what you're doing by killing the Safari Web Content process).

Yeap, that was my first guess.. But I think there must be a way to force my way through, at least the process belongs to my user hahaha Of course, that would violate a lot of good programming principles. I got surprised by the fact that Safari. App did not actually crash when I quitted its Content process (which in practice deallocated everything Safari needed, forcing it to refresh tabs).

Hence, by deallocating only that region of memory, I have faith that Safari would handle itself without losing other important things. I am not sure if the WebProcess process would handle it, though.. – Fernando Aug 25 at 21:49.

I did something similar, just with applescript: if appIsRunning("Safari") then tell application "Safari" quit end tell delay 5 end if tell application "Safari" activate end tell on appIsRunning(appName) tell application "System Events" to (name of processes) contains appName end appIsRunning Then, I set up a cron job to run every morning at 3am. I don't seem to suffer too much bloat throughout the day. It's only after a few days of running that my "Safari Web Content" process starts eating 2+ gigs of memory.1 3 * * * /usr/bin/osascript /path/to/restart-safari.scpt.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions