Updating the maxfiles limit in Mountain Lion?

I've run into a situation where the default maxfiles limit of 256 is causing one of my applications to crash.  I tried following the how-to in this blog post:
http://www.g9labs.com/2012/06/20/updating-max-file-limit-on-osx-lion/
but have had only limited success. The first issue is that as opposed to the large numbers he cites, when I manually set the maxfiles from the command line my system appears to permit a max value of 512. Does anyone have a similar experience?
While I can set my maxlimit to 512 from the command line, and that does stop the affected app from crashing, I am unable to force this limit to stick after a reboot.  I followed the instructions (again, from the above-linked post) and created the /etc/launchctl.conf filewith values set to 512 512 but after reboot the limit still resets to 256. After doing some googling I got the impression this could be set by creating the file /etc/launchd.conf instead, but that just locked up my system so badly that it wouldn't even boot in safe mode and I had to boot from an external backup so I could delete the file.
Can someone please tell me how to configure my system so the 512 limit is the default?
Many thanks in advance!

Well, this may not be the elegant solution but I just updated my ~/.bash_profile to run this line at login:
launchctl limit maxfiles 1024 1024
The 512 limit seems to have been some kind of glitch because after a reboot I could bump it to at least 1024.
Hope this helps someone.

Similar Messages

  • Want to update the operating systems to Mountain Lion version 10.8.2

    Want to update the operating systems to Mountain Lion version 10.8.2 on my Macbook6,1 from Mac OS X Version 10.6.8. Will this affect the performance of my computer in a negative way, and if the benefits outweigh it? Thanks.

    While we all have MacBooks in this forum most of us don’t run Mountain Lion. There's a Mountain Lion Support Community where everybody has Mountain Lion. You should also post this question there to increase your chances of getting an answer. https://discussions.apple.com/community/mac_os/os_x_mountain_lion

  • HT1338 I updated my MacBook Pro with Mountain Lion and now it is starting slow and opening with some of the programs. How can I fix the problem?

    I updated my MacBook Pro with Mountain Lion and now it is slow in starting up and loads a number of probrams. How can I fix the problem?

    Have you tried starting in Safe Mode and see if the slowness still occurs?
    Restart holding the "shift" key.
    (Expect it to take longer to start this way because it runs a directory check first.)
    If this works look in System Preferences > Users & Groups > Login items and delete any third party login items (-), you can always add them back with the (+). Also look in /Library/Startup Items. Nothing is put in that folder by default, so anything in there is yours.
    Reboot normally and test.

  • I have a free agent desk 500GB external hard drive.  Since updating my iMac OS to mountain lion recently, it will no longer backup, stating "an error occurred while creating the backup folder".  Can anyone help me with this?

    I have a free agent desk 500 GB external hard drive.  Since updating my iMac OS to Mountain Lion it no longer backs up through Time Maching like it did in the past.  Now, after completing its work it says, "Unable to complete backup.  An error occurred while creating the backup folder."  I cannot find any sites that help me fix this.  Do I need to purchase a new external hard drive?

    Hi Aaron,
    Have you looked through Pondini's extensive TM help site?
    http://Pondini.org/TM/FAQ.html
    http://pondini.org/TM/Troubleshooting.html
    Can't imaging something not being covered there.

  • HT1338 problem with the mac os x mountain lion update.

    i tried to install the update of mac os x mountain lion for macbook air 1,5 but it keeps saying waiting and i'm not doing anything else or can restart or shut down the mac.what do i do?

    Delete the applications for the rogue account prompting the updates. Delete the following file:
    ~/Library/Preferences/com.apple.appstore.plist
    Triple click the path to select it. Right click (or control + click) the highlighted path and from the dropdown menu select services > reveal.
    Delete the file. Reboot. See if the problem persists.

  • HT5460 I can  not update to the new OS X Mountain Lion. Whenever I do I get a message an error has occurred, timed out 102.W

    I can not update to the new OS x Mountain Lion.  I get an error that  says it has timed out then "102".   WHy can't I get it update??
    Thanks for your help.

    Please read this whole message before doing anything.
    This procedure is a diagnostic test. It’s unlikely to solve your problem. Don’t be disappointed when you find that nothing has changed after you complete it.
    The purpose of the test is to determine whether the problem is caused by third-party software that loads automatically at startup or login, by a peripheral device, or by corruption of certain system caches. 
    Disconnect all wired peripherals except those needed for the test, and remove all aftermarket expansion cards. Boot in safe mode and log in to the account with the problem. Note: If FileVault is enabled on some models, or if a firmware password is set, or if the boot volume is a software RAID, you can’t do this. Ask for further instructions.
    Safe mode is much slower to boot and run than normal, and some things won’t work at all, including sound output and  Wi-Fi on certain models. The next normal boot may also be somewhat slow.
    The login screen appears even if you usually log in automatically. You must know your login password in order to log in. If you’ve forgotten the password, you will need to reset it before you begin. Test while in safe mode. Same problem? After testing, reboot as usual (i.e., not in safe mode) and verify that you still have the problem. Post the results of the test.

  • I updated from Snow Leopard to Mountain Lion and dont like many of the changes. Why won't homepage open in full screen? and why are internet searches slower?

    I updated from Snow Leopard to Mountain
    Lion and homepage wont open in fullscreen.
    web searches are slower to load too.
    what give?

    What homepage are you referring to? The one in in safari? Elsewhere?

  • I bought macbook pro and update my osx, i already have the codes and install mountain lion and its been 2 days now and still downloading mode

    i bought macbook pro and update my osx, i already have the codes and install mountain lion and its been 2 days now and still downloading mode

    Disable anti virus software.
    Apps such as Little Snitch, Net Nanny, and Hands Off can prevent apps from downloading including Mountain Lion as well as third party download managers.
    Keep in mind, for downloading Mountain Lion from the App Store, a high speed (broadband) internet connection is strongly recommended by Apple as noted here > iTUNES STORE - MAC APP STORE - TERMS AND CONDITIONS
    If you need to reinstall OS X or repair the the startup disk using Mountain Lion Recovery, that requires broadband access to the internet via Wi-Fi or an Ethernet connection. OS X is downloaded over the internet form Apple when OS X Recovery is used for reinstallation.

  • Hi I just updated from Snow Leopard to Mountain Lion. I write DVD's using Final Cut Pro, creating a DVD that plays HD and Standard Definition on one disk. My problem is when I used load the disk on my G5 it would ask if you want High Definition or Standar

    Hi I just updated from Snow Leopard to Mountain Lion.
    I write DVD's using Final Cut Pro, creating a DVD that plays HD and Standard Definition on one disk.
    My problem is when I used load the disk on my G5 it would ask if you want High Definition or Standard Definition, now it just defaults to Standard Definition.(I'm using Apple's DVD Player)
    Can I fix this problem?

    Addendum: I read on a post here (http://forums.macrumors.com/showthread.php?t=420169) about removing some kext files in order to trick OSX into thinking that there were no FireWire ports.
    I followed the instructions and removed from /System/Library/Extensions/ the following files:
    IOFireWireSerialBusProtocolTransport.kext
    IOFireWireAVC.kext
    IOFireWireFamily.kext
    IOFireWireIP.kext
    IOFireWireSBP2.kext
    I restarted and BAM...Snow Leopard booted crazy fast and the mouse and keyboard worked instantly.
    The System Profiler says "No FireWire ports were found."
    So this tells me that the FW port is probably the culprit and is messing up the installation.
    So how do I hack the Mountain Lion installer and tell it to ignore the FW port, which is obviously quite dead? Or is there something I can do to the Base system that is similar?

  • Trying to set up a linksys router but the cd says it works with OSX 10.6 and later. I am currently running the newest version of mountain lion.... what is the matter with this OSX   update needed?

    trying to set up a linksys router but the cd says it works with OSX 10.6 and later. I am currently running the newest version of mountain lion.... what is the matter with this OSX   update needed?

    Your install disk must look like this
    and not like this.
    Those gray disks are machine specific and will only work with model of Mac that they shipped with.

  • HT1338 when I updated my mac mini to mountain lion it gave me an icon on my desktop of a hard drive, can I delete this?

    when I updated my mac mini to mountain lion it gave me an icon on my desktop of a hard drive, can I delete this?

    Open the General tab of the Finder's preferences and set it not to be displayed on the desktop. Alternatively, if it's a disk image or external disk, just drag it to the Trash.
    (83576)

  • Can I redeem the $20 after purchasing Mountain Lion for my new Macbook Pro

    Hey there, I purchased a Macbook Pro in late June 2012, reading the redeem page for Mountain Lion 2 weeks ago it stated to come back after making a purchase of Mountain Lion, so I purchased the update and now realised i could of downloaded it for free, is it possible to get a rebate from Apple, or did I just waste $20????

    Apple most likely won't give 20 dollars of store credit....you can always call them but I doubt they will let you redeem...in the end they want your money..

  • Scanning with the preview app in mountain lion

    dear all,
    has anyone encountered any problems when trying to use a scanner (mfp hp laser jet pro 1415) from the preview app in mountain lion?
    in lion it used to work properly and it was pretty quick.  with mountain lion it takes like forever to scan one page.
    is it just me?
    thanks
    aldo

    hi there,
    thanks.  using the hp softwre is an option and to be honest i havent tried i yet.  the reason is that i prefer preview as it is much better.
    i tried image capture, which is very good but still trhe same issue..
    i hope that there is an update soon.
    thanks again
    regards
    aldo

  • This copy of the Install OS X Mountain Lion application can't be verified. It may have been corrupted or tampered with during downloading. Dr Nir Hus

    Downloaded latest OS X and installed on my Mac Book Pro (early 2008).  No problems.
    Then attempted to install on my Mac Mini 2011 and continuously getting the following message:
    "This copy of the Install OS X Mountain Lion application can't be verified. It may have been corrupted or tampered with during downloading."
    I noticed that I am not the only one...
    Anyone with a solution.
    So far all I see are various attempts by people, some successful others not.
    This should not be a frustrating complicated ordeal!!!
    Dr Nir Joseph Hus MD., PhD.
    General Surgery,
    Trauma Surgery Critical Care.

    Yup, the safe mode/repair/redownload/install finally solved it - had to do it after midnight as all the 4gig downloads have already trashed my 60gig internet limit for this month, installed REALLY slowly bugt eventually at 0330 i had working Mountatin Lion on my Macbook.
    This has to be the most tedious upgrade, Mac OR Windows, I've ever done. Takes me back to inserting 15 floppies for sheer inconvenience, and from the numbers reporting this problem, it's more than an occasional glitch. And for some reason the download always fails if left unattended, even if all the sleep modes, etc, are negated.
    3/10 to Apple this time around.

  • Updating from 10.5 to mountain lion

    I am wanting to update my macbook to the latest version of Mountain Lion in hopes that my 4 year old computer will run faster and more efficent.
    Do i need to purchase every single update that has come out in the last 4 years and do one at a time, or is there a way to skip some or all??
    Thanks for your help!!!
    A

    Start by checking if you can run Snow Leopard:
    Requirements for OS X 10.6 'Snow Leopard'
    http://support.apple.com/kb/SP575
    Whilst Apple have withdrawn Snow Leopard from their stores, you can still get it from Apple by calling 1-800-MY-APPLE (if you are in the USA) and they will supply the SL DVD for $20 for a single user, or $30 for a family pack that covers up to 5 Macs.  You can also purchase the code to use to download Lion from the same number (Lion requires an Intel-based Mac with a Core 2 Duo, i3, i5, i7 or Xeon processor and 2GB of RAM, running the latest version of Snow Leopard), or you can purchase Mountain Lion from the App Store - if you can run that:
    http://www.apple.com/osx/specs/
    If you are outside the US call your national Apple Helpline:
    http://support.apple.com/kb/HE57
    If you're in the UK, use this number: 0871 508 4400
    When you have installed it, run Software Update to download and install the latest updates for Snow Leopard.
    To use iCloud you have to upgrade all the way to Mountain Lion:
    http://support.apple.com/kb/HT4759

Maybe you are looking for

  • Relink Error oracle r12 on windows

    error while relink oracle r12 on windows with the following error An error occurred while relinking application programs. Creating import libraries for FND Creating import library APPR60UE.lib on Sun Mar 18 02:03:43 EST 2012 process_begin: CreateProc

  • HINTS in Select Statement

    Hi, Can anybody explain me why HITS keyword is used with SELECT statement, whats the use of if, How to find the HINTS for a particular table. SELECT recn, recnroot, ippers INTO CORRESPONDING FIELDS OF TABLE <ITAB1> FROM CCIHT_IP FOR ALL ENTRIES IN <I

  • MM new topics

    since MM is in saturation stage. please provide me some important new technologies in SAP MM that we need to concenterate. thank you in advance

  • RVS4000 won't get WAN DHCP address

    I just tried replacing a cheap domestic router/switch with an RVS4000 V2 on our work network.  This has a WAN connection to a cable modem for internet access via a dynamic IP address. When I first connected the RVS4000 it got a WAN ip address via DHC

  • Query to get rows betwen x and y + table total row count

    Hi, I try get rows between e.g. 100 and 150 when I sort by some column My query is now like this SELECT  * FROM   (SELECT a.*,     row_number() OVER (ORDER BY OWNER ASC) rn,     COUNT(1) over() mrn   FROM (SELECT * FROM all_objects) a WHERE ROWNUM BE