Is it possible to force a specific program to remain in memory after closing it? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern) Should an RSS feed of hot network questions feed any chat room(s) here?Mute specific programMacMini crashing after changing memory?Crashes and hangs after memory DOWNgradeI run out of RAM on a 8GB MacBook Pro 15"How to test memory after memory upgrade?Many applications hanging after OS 10.9.5 updateIs it possible to exclude bad memory?Why does iTunes think that it is quitting “unexpectedly” every time I quit?Unable to Cmd+Tab after closing applicationApps crashes after Memory Upgrade
Can you explain what "processes and tools" means in the first Agile principle?
What is the difference between globalisation and imperialism?
A letter with no particular backstory
How to unroll a parameter pack from right to left
Why can't I install Tomboy in Ubuntu Mate 19.04?
Is it possible to give , in economics, an example of a relation ( set of ordered pairs) that is not a function?
How often does castling occur in grandmaster games?
Lagrange four-squares theorem --- deterministic complexity
Can a new player join a group only when a new campaign starts?
Should there be a hyphen in the construction "IT affin"?
How to run automated tests after each commit?
How does light 'choose' between wave and particle behaviour?
Hangman Game with C++
Quadrilaterals with equal sides
Aligning an equation at multiple points, with both left and right alignment, as well as equals sign alignment
What order were files/directories outputted in dir?
What to do with repeated rejections for phd position
Take 2! Is this homebrew Lady of Pain warlock patron balanced?
Would it be easier to apply for a UK visa if there is a host family to sponsor for you in going there?
Amount of permutations on an NxNxN Rubik's Cube
What is the meaning of 'breadth' in breadth first search?
Do wooden building fires get hotter than 600°C?
How does the math work when buying airline miles?
File name problem(?)
Is it possible to force a specific program to remain in memory after closing it?
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)
Should an RSS feed of hot network questions feed any chat room(s) here?Mute specific programMacMini crashing after changing memory?Crashes and hangs after memory DOWNgradeI run out of RAM on a 8GB MacBook Pro 15"How to test memory after memory upgrade?Many applications hanging after OS 10.9.5 updateIs it possible to exclude bad memory?Why does iTunes think that it is quitting “unexpectedly” every time I quit?Unable to Cmd+Tab after closing applicationApps crashes after Memory Upgrade
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
Alfred is great, of course, and I use it all the time. However, if I haven't opened it for a little while it can take a few seconds to open the search-bar UI. Otherwise, it will open in less than a quarter of a second.
I believe this is to do with the fact that it is moved out of memory by the operating system, meaning it has to be copied back in next time I request it (note: I have a mechanical hard-drive, not an SSD, so that takes ages).
So my question is this: can I force macOS to leave an application in main memory even if I'm not using it?
macos applications memory
add a comment |
Alfred is great, of course, and I use it all the time. However, if I haven't opened it for a little while it can take a few seconds to open the search-bar UI. Otherwise, it will open in less than a quarter of a second.
I believe this is to do with the fact that it is moved out of memory by the operating system, meaning it has to be copied back in next time I request it (note: I have a mechanical hard-drive, not an SSD, so that takes ages).
So my question is this: can I force macOS to leave an application in main memory even if I'm not using it?
macos applications memory
add a comment |
Alfred is great, of course, and I use it all the time. However, if I haven't opened it for a little while it can take a few seconds to open the search-bar UI. Otherwise, it will open in less than a quarter of a second.
I believe this is to do with the fact that it is moved out of memory by the operating system, meaning it has to be copied back in next time I request it (note: I have a mechanical hard-drive, not an SSD, so that takes ages).
So my question is this: can I force macOS to leave an application in main memory even if I'm not using it?
macos applications memory
Alfred is great, of course, and I use it all the time. However, if I haven't opened it for a little while it can take a few seconds to open the search-bar UI. Otherwise, it will open in less than a quarter of a second.
I believe this is to do with the fact that it is moved out of memory by the operating system, meaning it has to be copied back in next time I request it (note: I have a mechanical hard-drive, not an SSD, so that takes ages).
So my question is this: can I force macOS to leave an application in main memory even if I'm not using it?
macos applications memory
macos applications memory
asked 2 hours ago
ZacZac
18115
18115
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
MacOS's memory management is quite sophisticated, and it generally does try to keep as much stuff in memory as possible. If Alfred is still running, then it will be in memory.
If you have quit Alfred, then it might still be retained in memory, which is why it is faster to load next time. However, the OS will clear the quit app from memory, if the memory is needed for something else. So you might experience slowness somewhere else if you don't let the OS clear the quit app.
Recommendations for improving speed:
- Leave Alfred running all the time. If it's slow to come to foreground sometimes, even when its been running in the background, then that's not a memory issue, but something else: possibly related the slowness of the HDD.
- Get more RAM, if possible. You don't say what model of Mac and how much RAM.
- Replace the HDD with an SSD.
I have 8GB of RAM, and I tend to be using about 5GB of that most of the time (according to Activity Monitor). I think your first point, about it relating to the slowness of the HDD, is probably right - though unfortunate because SSDs are annoyingly expensive.
– Zac
36 mins ago
@Zac SSDs are pretty cheap these days, particularly SATA ones to replace mechanicals. I can see 128 GB ones for £20, €20, $20. That's big enough for your OS and apps at least, which should make a huge difference.
– benwiggy
10 mins ago
add a comment |
If your goal is to simply keep an application running all the time even when you close it you could use the method described here in this articled titled: Always keep an application open .
In that article they describe using this method for the Stickies application.
Steps
Excerpted here in case it ever gets deleted
For example, to keep Stickies permanently open, remove Stickies from
the login items for your account (if you've placed it there), quit
Stickies, and then create the following plist file in the LaunchAgents
folder of your home Library (~/Library/LaunchAgents
) with the name
user.launchkeep.stickies.plist
:<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>user.launchkeep.stickies</string>
<key>KeepAlive</key>
<true/>
<key>Program</key>
<string>/Applications/Stickies.app/Contents/MacOS/Stickies</string>
</dict>
</plist>
Now load this launchd job by logging out of your account and logging
back in or launch Terminal and enter:$ launchctl load ~/Library/LaunchAgents/user.launchkeep.stickies.plist
Stickies will now effectively be un-removable -- any time it quits,
crashes, or gets forced-quit it will pop right back up. If fact, in
order to quit the app at any time other than logout or shutdown you'll
need to disable the job; In Terminal type:$ launchctl remove user.launchkeep.stickies
Or you can set up a script that does that for you.
Thanks, I'll give that a try
– Zac
43 mins ago
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
MacOS's memory management is quite sophisticated, and it generally does try to keep as much stuff in memory as possible. If Alfred is still running, then it will be in memory.
If you have quit Alfred, then it might still be retained in memory, which is why it is faster to load next time. However, the OS will clear the quit app from memory, if the memory is needed for something else. So you might experience slowness somewhere else if you don't let the OS clear the quit app.
Recommendations for improving speed:
- Leave Alfred running all the time. If it's slow to come to foreground sometimes, even when its been running in the background, then that's not a memory issue, but something else: possibly related the slowness of the HDD.
- Get more RAM, if possible. You don't say what model of Mac and how much RAM.
- Replace the HDD with an SSD.
I have 8GB of RAM, and I tend to be using about 5GB of that most of the time (according to Activity Monitor). I think your first point, about it relating to the slowness of the HDD, is probably right - though unfortunate because SSDs are annoyingly expensive.
– Zac
36 mins ago
@Zac SSDs are pretty cheap these days, particularly SATA ones to replace mechanicals. I can see 128 GB ones for £20, €20, $20. That's big enough for your OS and apps at least, which should make a huge difference.
– benwiggy
10 mins ago
add a comment |
MacOS's memory management is quite sophisticated, and it generally does try to keep as much stuff in memory as possible. If Alfred is still running, then it will be in memory.
If you have quit Alfred, then it might still be retained in memory, which is why it is faster to load next time. However, the OS will clear the quit app from memory, if the memory is needed for something else. So you might experience slowness somewhere else if you don't let the OS clear the quit app.
Recommendations for improving speed:
- Leave Alfred running all the time. If it's slow to come to foreground sometimes, even when its been running in the background, then that's not a memory issue, but something else: possibly related the slowness of the HDD.
- Get more RAM, if possible. You don't say what model of Mac and how much RAM.
- Replace the HDD with an SSD.
I have 8GB of RAM, and I tend to be using about 5GB of that most of the time (according to Activity Monitor). I think your first point, about it relating to the slowness of the HDD, is probably right - though unfortunate because SSDs are annoyingly expensive.
– Zac
36 mins ago
@Zac SSDs are pretty cheap these days, particularly SATA ones to replace mechanicals. I can see 128 GB ones for £20, €20, $20. That's big enough for your OS and apps at least, which should make a huge difference.
– benwiggy
10 mins ago
add a comment |
MacOS's memory management is quite sophisticated, and it generally does try to keep as much stuff in memory as possible. If Alfred is still running, then it will be in memory.
If you have quit Alfred, then it might still be retained in memory, which is why it is faster to load next time. However, the OS will clear the quit app from memory, if the memory is needed for something else. So you might experience slowness somewhere else if you don't let the OS clear the quit app.
Recommendations for improving speed:
- Leave Alfred running all the time. If it's slow to come to foreground sometimes, even when its been running in the background, then that's not a memory issue, but something else: possibly related the slowness of the HDD.
- Get more RAM, if possible. You don't say what model of Mac and how much RAM.
- Replace the HDD with an SSD.
MacOS's memory management is quite sophisticated, and it generally does try to keep as much stuff in memory as possible. If Alfred is still running, then it will be in memory.
If you have quit Alfred, then it might still be retained in memory, which is why it is faster to load next time. However, the OS will clear the quit app from memory, if the memory is needed for something else. So you might experience slowness somewhere else if you don't let the OS clear the quit app.
Recommendations for improving speed:
- Leave Alfred running all the time. If it's slow to come to foreground sometimes, even when its been running in the background, then that's not a memory issue, but something else: possibly related the slowness of the HDD.
- Get more RAM, if possible. You don't say what model of Mac and how much RAM.
- Replace the HDD with an SSD.
answered 1 hour ago
benwiggybenwiggy
1,603312
1,603312
I have 8GB of RAM, and I tend to be using about 5GB of that most of the time (according to Activity Monitor). I think your first point, about it relating to the slowness of the HDD, is probably right - though unfortunate because SSDs are annoyingly expensive.
– Zac
36 mins ago
@Zac SSDs are pretty cheap these days, particularly SATA ones to replace mechanicals. I can see 128 GB ones for £20, €20, $20. That's big enough for your OS and apps at least, which should make a huge difference.
– benwiggy
10 mins ago
add a comment |
I have 8GB of RAM, and I tend to be using about 5GB of that most of the time (according to Activity Monitor). I think your first point, about it relating to the slowness of the HDD, is probably right - though unfortunate because SSDs are annoyingly expensive.
– Zac
36 mins ago
@Zac SSDs are pretty cheap these days, particularly SATA ones to replace mechanicals. I can see 128 GB ones for £20, €20, $20. That's big enough for your OS and apps at least, which should make a huge difference.
– benwiggy
10 mins ago
I have 8GB of RAM, and I tend to be using about 5GB of that most of the time (according to Activity Monitor). I think your first point, about it relating to the slowness of the HDD, is probably right - though unfortunate because SSDs are annoyingly expensive.
– Zac
36 mins ago
I have 8GB of RAM, and I tend to be using about 5GB of that most of the time (according to Activity Monitor). I think your first point, about it relating to the slowness of the HDD, is probably right - though unfortunate because SSDs are annoyingly expensive.
– Zac
36 mins ago
@Zac SSDs are pretty cheap these days, particularly SATA ones to replace mechanicals. I can see 128 GB ones for £20, €20, $20. That's big enough for your OS and apps at least, which should make a huge difference.
– benwiggy
10 mins ago
@Zac SSDs are pretty cheap these days, particularly SATA ones to replace mechanicals. I can see 128 GB ones for £20, €20, $20. That's big enough for your OS and apps at least, which should make a huge difference.
– benwiggy
10 mins ago
add a comment |
If your goal is to simply keep an application running all the time even when you close it you could use the method described here in this articled titled: Always keep an application open .
In that article they describe using this method for the Stickies application.
Steps
Excerpted here in case it ever gets deleted
For example, to keep Stickies permanently open, remove Stickies from
the login items for your account (if you've placed it there), quit
Stickies, and then create the following plist file in the LaunchAgents
folder of your home Library (~/Library/LaunchAgents
) with the name
user.launchkeep.stickies.plist
:<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>user.launchkeep.stickies</string>
<key>KeepAlive</key>
<true/>
<key>Program</key>
<string>/Applications/Stickies.app/Contents/MacOS/Stickies</string>
</dict>
</plist>
Now load this launchd job by logging out of your account and logging
back in or launch Terminal and enter:$ launchctl load ~/Library/LaunchAgents/user.launchkeep.stickies.plist
Stickies will now effectively be un-removable -- any time it quits,
crashes, or gets forced-quit it will pop right back up. If fact, in
order to quit the app at any time other than logout or shutdown you'll
need to disable the job; In Terminal type:$ launchctl remove user.launchkeep.stickies
Or you can set up a script that does that for you.
Thanks, I'll give that a try
– Zac
43 mins ago
add a comment |
If your goal is to simply keep an application running all the time even when you close it you could use the method described here in this articled titled: Always keep an application open .
In that article they describe using this method for the Stickies application.
Steps
Excerpted here in case it ever gets deleted
For example, to keep Stickies permanently open, remove Stickies from
the login items for your account (if you've placed it there), quit
Stickies, and then create the following plist file in the LaunchAgents
folder of your home Library (~/Library/LaunchAgents
) with the name
user.launchkeep.stickies.plist
:<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>user.launchkeep.stickies</string>
<key>KeepAlive</key>
<true/>
<key>Program</key>
<string>/Applications/Stickies.app/Contents/MacOS/Stickies</string>
</dict>
</plist>
Now load this launchd job by logging out of your account and logging
back in or launch Terminal and enter:$ launchctl load ~/Library/LaunchAgents/user.launchkeep.stickies.plist
Stickies will now effectively be un-removable -- any time it quits,
crashes, or gets forced-quit it will pop right back up. If fact, in
order to quit the app at any time other than logout or shutdown you'll
need to disable the job; In Terminal type:$ launchctl remove user.launchkeep.stickies
Or you can set up a script that does that for you.
Thanks, I'll give that a try
– Zac
43 mins ago
add a comment |
If your goal is to simply keep an application running all the time even when you close it you could use the method described here in this articled titled: Always keep an application open .
In that article they describe using this method for the Stickies application.
Steps
Excerpted here in case it ever gets deleted
For example, to keep Stickies permanently open, remove Stickies from
the login items for your account (if you've placed it there), quit
Stickies, and then create the following plist file in the LaunchAgents
folder of your home Library (~/Library/LaunchAgents
) with the name
user.launchkeep.stickies.plist
:<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>user.launchkeep.stickies</string>
<key>KeepAlive</key>
<true/>
<key>Program</key>
<string>/Applications/Stickies.app/Contents/MacOS/Stickies</string>
</dict>
</plist>
Now load this launchd job by logging out of your account and logging
back in or launch Terminal and enter:$ launchctl load ~/Library/LaunchAgents/user.launchkeep.stickies.plist
Stickies will now effectively be un-removable -- any time it quits,
crashes, or gets forced-quit it will pop right back up. If fact, in
order to quit the app at any time other than logout or shutdown you'll
need to disable the job; In Terminal type:$ launchctl remove user.launchkeep.stickies
Or you can set up a script that does that for you.
If your goal is to simply keep an application running all the time even when you close it you could use the method described here in this articled titled: Always keep an application open .
In that article they describe using this method for the Stickies application.
Steps
Excerpted here in case it ever gets deleted
For example, to keep Stickies permanently open, remove Stickies from
the login items for your account (if you've placed it there), quit
Stickies, and then create the following plist file in the LaunchAgents
folder of your home Library (~/Library/LaunchAgents
) with the name
user.launchkeep.stickies.plist
:<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>user.launchkeep.stickies</string>
<key>KeepAlive</key>
<true/>
<key>Program</key>
<string>/Applications/Stickies.app/Contents/MacOS/Stickies</string>
</dict>
</plist>
Now load this launchd job by logging out of your account and logging
back in or launch Terminal and enter:$ launchctl load ~/Library/LaunchAgents/user.launchkeep.stickies.plist
Stickies will now effectively be un-removable -- any time it quits,
crashes, or gets forced-quit it will pop right back up. If fact, in
order to quit the app at any time other than logout or shutdown you'll
need to disable the job; In Terminal type:$ launchctl remove user.launchkeep.stickies
Or you can set up a script that does that for you.
answered 1 hour ago
slmslm
1,237816
1,237816
Thanks, I'll give that a try
– Zac
43 mins ago
add a comment |
Thanks, I'll give that a try
– Zac
43 mins ago
Thanks, I'll give that a try
– Zac
43 mins ago
Thanks, I'll give that a try
– Zac
43 mins ago
add a comment |