How can I stop Mountain Lion from writing savedSate?

Hi everyone,
I have an SSD (used as the system disk) in my iMac, and after noticing that its lifespan (according to S.M.A.R.T.) has ticked down a bit, I started looking at what's writing to the system disk, using iostat, iotop, and fs_usage.
What I discovered is that, even though I have Resume turned off (by checking "Close windows when quitting an application"), Mountain Lion is still writing huge amounts of data to the *savedState folders in ~/Library/Saved Application State, for each application I have open. The only difference with Resume turned off is that it removes the *savedState folder for each app when I quit that app.
Since I use this iMac for work, I typically have quite a few applications open for long periods of time. According to iostat, this is causing over 1 gigabyte of data per hour to be written to savedState. That's 10-12GB in a typical day, not including data I actually write to the drive as I work! Needless to say, this is hammering my SSD and is probably what is decreasing its lifetime.
I've spent a couple of hours googling this problem, and though I've found lots of ways to turn off Resume both globally and per-application, none of them prevent Mountain Lion from continuing to write all this Resume data to the *savedData folders. Does anyone know how to completely turn off Resume and stop all this unnecessary disk I/O?
Thanks!

YOu can get it stop by going to ~/Library/Saved Application State/TextEdit (by example) and delete that file…
(note that the User Library is hidden - one way to get there is to go to your Finder "Go" menu hold the option key to choose "Library")
You can also delete all Saved Application State files
Or use Terminal to turn off Resume globally...
chflags uchg ~/Library/"Saved Application State"
Press return
Or
defaults write -g ApplePersistence -bool no

Similar Messages

  • How can I stop Mountain Lion from auto-connecting to AppleTVs in my network?

    Ever since upgrading to Mountain Lion my MacBook Pro automatically tries to connect to any AppleTV in the network I'm on. This is great for at home, but my office has a few different AppleTVs that are constantly sucking my audio through without any type of direction to do so on my end.
    Thank you for your help.

    I don´t know for a fact, but I guess you can have your firewall block the traffic to and from the AppleTV's. You have to find out which ports to block (see: http://bowersandwilkins.custhelp.com/app/answers/detail/a_id/55/~/firewall-ports -utilised-by-airplay ) and also you will need to have different location profiles for your home and work network.
    Just my two cents.

  • How do you stop Mountain Lion from making endless copies and backups of everything?!

    I already have a similar topic on this when I needed to figure out how to stop Mountain Lion from making endless copies of my text edit files and I was going to try the disabling of it that someone in that thread suggested, but I can't find where the Versions backups are being stored.
    Anyway, tonight I cam across a new problem, when I went into "about this Mac" and looked at my Storage, I had almost 1gb of data in the "backups" section. I just happened to have Finder open when I went into the Time Machine in the status bar and when it entered Time Machine, I had dozens of copies of my desktop. Thing is, I don't have my Time Machine hard drive connected and I don't have a Time Capsule router/hard drive. And don't give me this garbage about how "It's not real backups, it's just a snapshot" or whatever, because the ONLY things that I have stored on my computer that I have altered since I got mountain lion is two Text Edit files and the Finder Desktop (and yes, I have checked almost all the programs I use, and of the things that Time Machine will open in, those are the only things that have backups listed that I can access) and almost 1gb is being taken up completely needlessly with the computer backing up things onto itself. Obviously these are more than just snapshots and are obviously the real files because after throwing EVERYTHING on my desktop into a file, that file is only 3.8mb in size, so that almost 1GB in backups is coming from SOMEWHERE.
    The solution I aluded to in my first sentence also depends on going into the Terminal to make each individual app stop auto saving Versions, however, since my desktop is being backed up, there's no program to stop Mountain Lion from doing that.
    Can anyone help me figure out how to make it stop backing up? Seriously, almost 1 gb is being totally wasted on a series of desktop items that are 3.8mb in size, one Text Edit file that is 250kb in size, and another text edit file that is 41kb in size. What person in Apple would possibly have thought this endless backing up of files onto the main hard drive would have been a good idea? So in a year if I did nothing but go on the internet, save one picture to one file on my desktop and did nothing else with my computer, would I have 200 gb of desktop backups that the computer saved onto itself? Are you kidding me? OR failing that, can anyone tell me how to find this damned backup file and delete it? I'm not an idiot, I know how to plug in a hard drive or flash drive and backup my information, I don't need my computer to be making hundreds of copies of every single file on my computer that I change slightly onto itself that not only needlessly eats up it's own space, but if the hard drive died, all those "backups" would be gone too because it wrote the backups to itself.
    I am so frustrated by this totally ridiculous and wasteful "feature" they put in, it does nothing but waste hard drive space with it's hundreds of copies of everything you alter slightly. And I am absolutely not starting any video editing projects until I figure out how to turn this off. If around 4mb of total text and desktop backups add up to almost 1gb in a few weeks, what the heck is a video editing project going to end up in with size? Am I the only one completely flustered by this ridiculousness? Is there any point in writing into Apple to complain or are they just going to say "No, we're brilliant, we think this is an amazing feature so you just have to deal iwth it and when your hardd drive fills up, too bad, jerk!"?? Help! Thanks!

    Well as I pointed out in my post, "Sadly, my Text Edit documents are still all there, every single time I opened them and made a small change, there is another copy stretching all the way back to the day I installed Mountain Lion." so if you can explain to me how July 26 - Aug 16 is a week, I will concede that it is a good idea. Short of that, no I have been capable of making my own backups since I was 16 years old (16 years ago) I don't need my computer to endlessly do it for me in a way I am completely unable to shut off. That's what I have external hard drives, flash drives, a DVD burner, Drop Box, E-mail (as in emailing copies to myself) and icloud for. If I am doing something and I don't have access to a single one of those options, I don't know why I brought my computer with me in the first place. And I don't see how you can say it's an illusory gain in disk space, hundreds of copies of text documents, garageband files, Final Cut files, Motion Files and basically any program that makes files onto my comptuer that I can myself make incremental changes to, those all need to be stored somehow. Again, if you can explain to me how July 26 - Aug 16 is a week, I will agree with you that that is a good thing because IF it only saved for a week, it wouldn't be an issue. Sadly, no matter how many links you post, I still have text edit backups stretching from today back to July 26. They're not going away and I have no reason to beleive any other file I edit is going to go away either since they haven't been. They're all there eating up HD space and this imaginary "week" limit is simply not coming into effect. I hate it and there needs to be a simple way to simply shut it off. I didn't spend hundreds of dollars on external drives just for my main hard drive to be filled up with hundreds un useless, undeletable backups of stuff I already have backed up.

  • How can I buy Mountain Lion from an unsupported laptop? I want to install it on a Mac Pro but it doesn't have an OS to open App Store

    I have a MacBook Classic that is unsupported and my Mac Pro is supported but I can't open App Store from it because there's no OS and I can't purchase from my classic because it's unsupported. Halp

    Buy Snow Leopard for your Mac Pro, update it to 10.6.8, purchase and download Mountain Lion. There is no other solution.

  • Hi...I have this problem, everytime I want to print something out the mac asks me for the computer password...that is really becoming annoying after. That happened since I upgraded to mountain lion. How can I stop the computer from asking me that?

    Hi...I have this problem, everytime I want to print something out the mac asks me for the computer password...that is really becoming annoying after. That happened since I upgraded to mountain lion. How can I stop the computer from asking me that?

    If you are printing via a Windows shared printer and it is the Windows user account that you are being prompted for then you can save this in the Keychain, as shown below.

  • I erased my HD. Now I can't instal mountain lion from my bootable flash drive, and keep getting "installation error. Try again."

    I bought  mountain lion, made a bootable flash drive.
    I booted from it and it went to upgrading right away!
    So I stopped it and went to my former recovery partition I erased my HD because I wanted a clean start.
    Now I can't instal mountain lion from the bootable flash drive, and keep getting "installation error. Try again."
    and there is no 4 choices window.
    I don't know what to do.

    How did you create the USB install thumb drive? If it was with Disk Utility I have run into this problem and have since used THIS program to make the USB install drive.
    As to your problem you only have one option and that is to Reinstall the Original OS X version that came on your computer or if you still have the Lion Recovery Partition use that to reinstall Lion. Or if you system came with Lion and you have No Lion Recovery HD Partition you can boot the system from over the internet and Reinstall Lion.
    At startup hold down the Command+Option+r keys until you saa a spinning Globe in the center of the screen. Once that loads Repartition the drive as One partition and then reinstall Lion.

  • How can i get mountain lion reinstalled if my mac says apple id never purchased? hd failed 2 wks after wty expired, I am the original owner, i have done command-r

    how can i get mountain lion reinstalled if my mac says apple id never purchased? hd failed 2 wks after wty expired, I am the original owner, put another hd in, done command-r & sys reinstalled, but it wanted to update & now am stuck. I don't mind paying for mountain lion; it is too far to get to an apple store. but, i only have one mac, so i cannot download with another mac. lots of other apple, but only one mac.

    You will need to do a network recovery:
    Install Lion/Mountain Lion on a New HDD/SDD
    Be sure you backup your files to an external drive or second internal drive because the following procedure will remove everything from the hard drive.
    Boot to the Internet Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND-OPTION- R keys until a globe appears on the screen. Wait patiently - 15-20 minutes - until the Recovery main menu appears.
    Partition and Format the hard drive:
    1. Select Disk Utility from the main menu and click on the Continue button.
    2. After DU loads select your external hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    3. Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Partition button and wait until the process has completed. Quit DU and return to the main menu.
    Reinstall Lion/Mountain Lion: Select Reinstall Lion/Mountain Lion and click on the Install button. Be sure to select the correct drive to use if you have more than one.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.

  • How can I stop the ringer from  showing up on the screen?

    How can I stop the ringer from  showing up on the screen?

    Use VMware Fusion? But seriously, Fusion does what you want. It just puts a mini VM control menu at the top when running full screen (and that's configurable, too), so the main menu bar doesn't appear at all. Which means that it's up to Parallels to handle this. Are you running Parallels 7, which is designed for Lion? If you are and Parallels still doesn't offer something similar, you need to contact Parallels.

  • All my contact are being copied to my friend's iphone and i also am getting his contacts on my phone,when i delete a contact it also deletes it from his phone,we are sharing the same apple ID. How can i stop our contacts from being shared between us

    All my contact are being copied to my friend's iphone and i also am getting his contacts on my phone,when i delete a contact it also deletes it from his phone,we are sharing the same apple ID. How can i stop our contacts from being shared between us

    Everything that you have checked in your icloud settings will be shared between devices using the same Apple ID.  If you don't want icloud to share that information, then simply turn off that process under settings > icloud

  • How can I stop my iPhone from synching my contacts and groups lists twice?

    How can I stop my iPhone from synching my contacts and groups lists twice....I am using iCloud but am not sure how correct this duplication.

    Go into Settings>Mail, Contacts, Calendars. Is this happening at the bottom in the signature section, or in the header of the mail where your email address is? If it is the signature, then go to the Signature area of the Mail settings. If this is in the header, then go to the account in question and edit your account information to include your name instead of Johnny.

  • When I record an audio track, there is a waveform. When I stop recording, the waveform disappears and becomes a straight line. It also disappears from the track edit window. But the sound is there. How can I stop the waveform from disappearing?

    When I record an audio track using Logic Pro X, there is a visible waveform which appears as I record. When I stop recording, the waveform disappears and becomes a straight line. It also disappears from the track edit window. But the sound is still there. How can I stop the waveform from disappearing? And can I do something to view it after it has disappeared? Anyone know the anser?

    In Logic:
    Preferences/Audio Set Recording Delay to 0 <zero>
    This should always be set to zero unless a specific set of circumstances exist and you're audio drivers do not report position correctly.
    On occasion, usually when importing a Logic 9 project, Logic-X randomly changes this to a negative/positive number.  It's actually a bug in Logic, as it should always display the waveform.

  • I do not have a high speed internet connection. How can I get Mountain Lion on a disk for install?

    I do not have a high speed internet connection. How can I get Mountain Lion on a disk for install on my 24" Imac?

    As long as you use your Apple ID to purchase it, I don't see why they wouldn't let you download the installer on one of their Macs and put it on a pocket drive.
    Or, a friend with a high speed connection?
    I agree with you about the delivery method, just trying to help you get what you want.

  • How can I stop a JFrame from closing when clicking the close button.

    I need to display a dialog when a user attempts to close my app, giving them the option to close, minimize or cancel. How can I stop the form from closing after the user makes his selection? I have the folllowing code, but my form still closes after selecting an option:
    private void formWindowClosing(java.awt.event.WindowEvent evt) {                                  
            //An array of Strings to be used a buttons in a JOptionDialog
            String[] options = {"Close", "Minimize", "Cancel"};
            //Determines what the user wants to do
            int result = JOptionPane.showOptionDialog(null, "What to you want to do?  Close the application, minimize or cancel?", "Please select an option...", 0, JOptionPane.QUESTION_MESSAGE, null, options, options[0]);
           //Determines what to do, depending on the user's choice
            if (result == 0) {
                //Close the application
                System.exit(0);
            } else if (result == 1) {
                //Minimize the application
                this.setState(Frame.ICONIFIED);
        }Any help would be much appreciated!

    import java.awt.event.*;
    import javax.swing.*;
    public class test extends JFrame {
         public static void main( String[] args ) {
              new test();
         public test() {
              setSize( 200, 200 );
              //the next line makes the JFrame not close
              setDefaultCloseOperation( JFrame.DO_NOTHING_ON_CLOSE );
              //now add a listener that does the trick
              addWindowListener( new WindowAdapter() {
                        public void windowClosing( WindowEvent e ) {
                             //ask the user and do whatever you wish
              setVisible( true );
    }

  • How can i stop my phone from vibrating in my ear when i am on the call?

    How can i stop my phone from vibrating in my ear when i am on the call? I usually keeps my phone on vibration mode so i get notified when there is a new mail or message? However, when i am on the call, then also, it vibrates in my ear everytime a mail comes. Very irritating. I use my business phone and mails keep coming every 2-5 mins.
    Please help.

    very impractical . specially when you call A LOT and receive notifications constantly!

  • How can i stop internet media from flooding elements 6?

    how can I stop elements 6 from constantly importing internet photos and flooding my memory?

    PSE isn't importing photos off the internet, but it could be importing photos from your hard drive that are being placed there as you browse the internet.
    It's likely that you've told PSE to import all new photos on your hard drive using the Watched Folders mechanism.
    In the Organizer, go to File > Watch Folders...
    See the list of folders PSE is currently watching.
    Check the setting near the bottom of the dialog as to what PSE should do when it finds new images in the folders it is watching.
    Make any necessary changes to have it do what you want it to do.
    Cheers
    Bob

Maybe you are looking for