How to increase ulimit permanantly

I have the following ulimit limits. The number 532 seems to be from kern.maxproc. But I have ~/.launchd.conf that sets maxproc to a larger value.
~$ ulimit -H -a
core file size          (blocks, -c) unlimited
data seg size           (kbytes, -d) unlimited
file size               (blocks, -f) unlimited
max locked memory       (kbytes, -l) unlimited
max memory size         (kbytes, -m) unlimited
open files                      (-n) unlimited
pipe size            (512 bytes, -p) 1
stack size              (kbytes, -s) 65532
cpu time               (seconds, -t) unlimited
max user processes              (-u) 532
virtual memory          (kbytes, -v) unlimited
~$ ulimit -S -a
core file size          (blocks, -c) 0
data seg size           (kbytes, -d) unlimited
file size               (blocks, -f) unlimited
max locked memory       (kbytes, -l) unlimited
max memory size         (kbytes, -m) unlimited
open files                      (-n) 256
pipe size            (512 bytes, -p) 1
stack size              (kbytes, -s) 8192
cpu time               (seconds, -t) unlimited
max user processes              (-u) 266
virtual memory          (kbytes, -v) unlimited
~$ echo $SHELL
/bin/bash
~$ sysctl -a |grep 532
kern.maxproc = 532
kern.maxproc: 532
~$ cat ~/.launchd.conf
limit maxproc 1024 1024
I could run in my bashrc. But I still can not increase the hard limit.
sudo sysctl -w kern.maxproc=1024
sudo sysctl -w kern.maxprocperuid=1024
Does anybody have a solution to this problem?

You're not going to be able to alter system limits from a user-level settings file ;-)
http://support.apple.com/kb/HT3854?locale=en_US
http://support.apple.com/kb/HT4022

Similar Messages

  • How to increase ulimit max open files, permanently?

    I have a shell script that needs to be able to receive hundreds of incoming socket connections. The default max of open files is 256. Strangely, if I run:
    sudo ulimit -n 800
    ...ulimit -a still shows just 256 max open files. If I become root (sudo su), then I can increase the max files to 800, but that setting only remains while I'm root user.
    Anyone know how to increase the max open files setting for my regular user name, as I run scripts from the Terminal bash shell?
    ...Rene

    Wow, within 2 minutes, I realized what I had to do, so in case anyone else wonders the same, here's the solutions:
    Just edit the .bash_profile file in your home directory (create it if it's not already there), and add the line:
    ulimit -n 1024
    Now, whenever you start terminal, that process will be able to open up to 1024 files or socket connections.
    ...Rene

  • How to increase memory allowed for an application

    Before in OS 9 and below we can expand the quantity of memory for an application, we can't do same in OS X.
    OS X is able to set himself the amount of memory for an application. This seems to work but I think there is a limit sets by OS X.
    My question is how to increase this amount of memory ?
    I tried to increase it in terminal using "ulimit -d unlimited" but this is not working enough.
    I use to do calculation with matrix systems and iterations in Mapple software but on my iMac with 4 GB of RAM memory, when application reaches 450 MB, I get a memory error message. Activity monitor at same time says there is more than 2 GB free !
    Has somebody a solution to free this limit, even for a small time or for only an application ?
    Thanks for your help.

    The full message is :
    "Kernel connection has been lost. The kernel returned the following message :
    Execution stopped : Memory allocation failed.
    Please sea ?alloc for more detail.
    You should save this worksheet and restart Maple
    Executing commands in Mapple requires a connection to the Maple kernel.
    Firewalls have been known to cause problems with kernel connections in Maple. Please ensure that any firewall software is configured to allow Maple to create connections to the kernel. Consul the FAQ for more information."
    I checked the firewalls of OS X, they are shutdown and no restrictions seems to be set for processes.
    We are expecting for a new version of Maple with some modifications due to Snow.

  • How to increase dynamically open_cursors and session_cached_cursors

    how to increase dynamically open_cursors and session_cached_cursors
    for Ex. alter system open_cursors = 500

    instane level:
    alter system set session_cached_cursors=200 scope = spfile; or set init.ora file.
    alter system set open_cursors=400;
    More details about open_cursor and session_cached_cursor, refer the below link
    http://www.orafaq.com/node/758
    Regards
    RajaBaskar

  • How to Increase Number of Images from 500 in a LR3 Flash Gallery

    I noticed people asking (and I myself needed to know) so I thought I would explain how to increase the number of images (from 500) in a Flash gallery in Light Room 3
    1. I exported a Flash gallery from LR3 and it capped the gallery at 500 images.
    2.  Because I had roughly 600 images to put in the gallery, I exported the  remaining 100 as a separate flash gallery. (Going ahead and exporting 2  galleries will save you headache in a later step)
    3. I combined  all the images folders (copying "large" images from one folder to the  "large" folder in the gallery I want to upload to my site, etc.) so that  the files are all in one location.
    4. The next step is to  increase the gallery maximum in the code. Access (from the exported  gallery) GALLERYNAME/resources/mediaGroupData/group.xml and open the group.xml file. The line of code you will be changing is <media totalGallerySize="500"> Change the 500 to the number of photos you want in the gallery.
    5.  This next step isn't too complicated, but it is specific. You know have  to tell that flash file to look for the images you just transferred to  the images folder. The best way to do this is to open the group.xml file  for the second gallery you exported. Copy all the code beginning with <item>  to the bottom of the page. This code tells the gallery to look at your  specific images (Note: you'll notice within each item the names of your  image file)
    6. Return to the (other) group.xml file of the gallery you plan to use (with all your images in it). Scroll to the bottom and erase the lines </media> and </mediagroup> becaue you will repaste them in a moment. Next, paste the copied code there.
    7. Save & check your browser!
    I hope this was clear...please comment back and I'll clarify if needed.
    ro

    500 images in a single gallery is too many - think of the poor viewer!
    But if you must create Flash galeries with more than 500 images, you're better off editing the underlying engine - here's one link showing how to do it

  • How to increase the row height of the table in the smartform

    Hi,
    Can any one say,
    How to increase the row height of the table in the smartform.
    It is presently show the row width very small, i want to increase the row with of the table in the smartform.
    Plase say how can we increase the row height in the smartform.

    Hi Ravi,
         In Smartforms , Select the Table and you can adjust the cell hieghts in OUTPUT OPTIONs TAB.
        Reward points if that Helps.
    Manish

  • How to increase recent call list in i phone 5s

    how to increase recent call list in i phone 5s

    There are apps that can jeep Track of many more  calls. The iPhone native app is limited to 100.  Search for those apps in the App Store.

  • How to increase the number of rows in Status Oveview iView in MSS?

    Hi
    We have implemented MSS and have a question regarding Status overview iview.
    The standard status overview iview of the team workset has 5 rows and we have to scroll using the arrow buttons to select/view a request.
    Now can anyone explain me how to increase the number of rows in this iview? Is this somthing that has to be accoplished through web dynpro customization?
    I checked the options in iView property and do not see any option to increase the number of rows.
    please help
    Thanks
    -Michael

    Hi Micheal,
    Well, I am not really sure, if you could accomplish this using customizing, but I am sure that you can accomplish this using the JDI. Well, you can extract the application's source code using JDI and then change the required display rows property and republish it.
    Am not really sure if this is suggestable method for this requirement,but it can be achieved using this JDI stuff.
    Regards
    <b>Raja Sekhar</b><i></i>

  • How to increase the number of rows to be displayed in BEx Web Analyzer

    hi,
    I am viewing reports using BEx Web analyzer option. It is displaying only 24 rows  of data at a time. How to increase the number of rows? do i need to any kind of settings?
    pls reply.

    Hi,
    I think the standard template in 2004s is named 0ANALYSIS_PATTERN. You can find it in Web Application Designer, open, and search for the technical name. If you want to change the number of rows or columns, you can find this setting near the bottom of the XHTML view of the template:
    <bi:BLOCK_COLUMNS_SIZE value="4" />
    <bi:BLOCK_ROWS_SIZE value="17" />
    Then just save, and ignore the error messages.
    Message was edited by:
            vind Reinsberg

  • How to increase the battery life of your N series ...

    What I am about to post here is valid for any 3G phone or device regardless of model but it is particularly focused towards the N series devices and their power hogging features.
    Your battery life is dependant on many many things. How often you take calls on the device, the condition of your battery, the features you use on the device and so on and on. Therefore it is impossible to say that by following the information in this post you will get x amount of days battery life, but it will get you more time out of the battery than you otherwise would have got.
    So with that out the way, if your looking to increase your battery life then follow these tips and your battery should start looking a lot healthier.
    First of all lets start with THE big one. The one that is going to save you the most juice. Switching 3G off.
    Yep, you heard me right. Just by switching the 3G capability of your phone off you will add hours and hours to your battery life. How is this so? Allow me to explain...
    Due to the rather poor delivery of 3G in the UK by the network operators, it is rare for any 3G phone to maintain a constant 3G signal. Instead you will find that the phone constantly flips between 3G and GSM mode (Keep an eye on your signal one day). Even those of you on Vodafone who probably have the best 3G network coverage will find this is the case.
    Unfortunately, this constant flipping between the two modes sucks power from the battery like a vampire as it alters its reception state for the different modes and the constant flipping is..well...causing it do this constantly! It can sometimes even make your phone unavailable for calls for very brief periods as it trips from GSM to 3G and vice versa.
    If you need to use 3G for video calls or whatever then I'm afraid your just going to have to live with this but if you don't (And lets face it few of us do) then you can switch 3G off and increase your battery life considerably.
    To do this, go into the "Settings" application (Found in the menu somewhere, by default Nokia normally stick it in "Tools"), and then to the "Phone" tab. In there you will see an option that says "Network mode" and you have a choice of "GSM" or "Dual Mode" (I.e. UMTS and GSM). Set it to GSM and your phone will restart. Once it restarts it will be working in GSM with GPRS speeds only but really for most purposes this is fine.
    You have now just extended your battery capability considerably. You can further extend it by going to the "Connection" tab, going into "Packet data" and changing it to "When needed" so it is not constantly checking for a data connection.
    The second big change you can make is to turn your phones wifi scanning capability off. The last time I looked not all Nokia's phones that have wifi capability can have their wifi cards switched off entirely but if you can, turn it off except for when you need to use it. Wifi is a power hog.
    The next big change you can make is to lower the screen brightness settings on your phone. The less bright your screen is the less power is being used to light it up. Nokia by default leave the screen brightness at something like 50%. Lowering this a bit more will conserve more juice. Before you do this though please consider the fact that lowering the brightness setting will have a big impact on your ability to see the screen clearly in sunny conditions although you will be fine in the dark as you can't lower the brightness that far.
    To lower the brightness, go to the settings tool in your phone and into the display option (Hidden in a subcategory called "Personalisation" on the N95). It won't hurt to set the power saving time out to 1 minute and the backlight time out to 10 seconds while your here (Although these are the Nokia default so they should already be set to this).
    Finally in regards to the screen, although they may look pretty, animated screensavers use more battery power than the standard blank screen with time and date so avoid them if you can.
    It also helps to keep Bluetooth switched off until you need it although the power savings are minimal in comparison to the other changes but every little milliamp counts!
    Using the above methods I generally get about 3 to 4 days with about 3 hours talktime on my N95 without using Bluetooth, GPS or anything like that (I might be able to get more but so far I have not paid attention to the battery state before I put it on charge). If I am on a long train journey I can get about 4 hours worth of full screen video and about 2 hours talktime over the period of about 24 hours before it needs a recharge. As I said at the start of the post your mileage will vary greatly depending on how you use your device.
    Hope this helps.
    Useful links: Phone firmware update | Nokia support site

    02-May-200701:14 PM
    bixby wrote:
    no keffa it is a cop out from nokia
    its not unfai as its a premium device with a premium price
    the n95 battery is atrocious
    dont change the post content as the title is 'How to increase the battery life of your N series device'
    your talking about nokia phones specifically
    the networks are not to blame
    they do not make the handsets : Nokia do !!!!!!!!!!
    I'm going to choose my words carefully here...
    I would never deny the battery on the N95 is not really up to the job of powering the N95 with its power hungry features. To put the same battery into a phone that has WiFi, GPS and a large 320x240 screen, the same one that goes into the E65 which has comparatively nothing compared to it is a bit pants.
    However at no point was I criticising them for the band hopping problem. I labelled the post as how to increase the battery life of your N series device because this is a board for the N series devices. It was a simple choice of wording and not intended to be cutting in any way and I did make a remark that the details would be true of any 3G device at the top of the post.
    What I was trying to point out in my second post is that the constant band hopping the phone is being forced to do that is draining its battery so much more quicker than it would if it had a constant signal of one kind or another isn't quite Nokia's fault.
    They build it to conform to a laid out specification for 3G. However if the network operators cannot be bothered to roll out their 3G infrastructure adequately enough that the phone can find and remain locked onto a 3G signal that is usable then what are Nokia to do other than offer you the capability to turn 3G off until you need it (Although note to Nokia: That **bleep** reboot the phone does when you do this is entirely unneeded and you know it).
    Blaming Nokia for this would be like blaming the manufacturer of your radio for failing to pick up radio because the radio station does not have any transmitters within range of your radio's receiver.
    Finally...this band hopping is exhibited by all 3G phones built by Samsung, Nokia, Sony Ericsson, etc, from their most budget 3G model to their priciest piece and is the reason that all phones with 3G capabilities have batteries that do not last for any respectable length of time because these phones are also having to band hop between 3G and GSM.
    Finally the proof is in the pudding. Turn 3G off for a few days. See your battery improve. Then (Although admittedly this will be harder to do...mcuh harder) find an area where you get a fairly decent 3G signal constantly. Again, see your battery improve. Try it with a different 3G phone...different manufacturer even. The same will be true.
    So I stand by my comment, the network operators and their woeful 3G rollout are the villains costing you a fair chunk of your battery and Nokia cannot be expected to mitigate this....but a better battery would be nice all the same...
    Useful links: Phone firmware update | Nokia support site

  • How to increase built-in cisco vpn peer response timer?

    Hi,
    I use OS x in-built cisco vpn client to connect to work VPN.
    The VPN server, or perhaps the radius server, takes a long time to return a response. OS X always try for 10 seconds, then drop the conneciton when no response from the remote peer. When I use cisco vpn client on a windows machine, the vpn client has a setting to allow for 90 seconds remote peer response time. It works fine using cisco vpn client.
    I prefer to use os x as my primary working environment, so I need to fix this problme. My question is how to increase the phase 1 & 2 timer for vpn under 10.6.7. I have tried to change racoon.conf phase 1 & phase 2 timer, but it made no difference. OS X only try for 10 seconds.
    Any ideas? (besides asking work people to fix the server or radius problem)
    Thanks
    jmsherry123

    i have the same problem ... certificate is imported in keychain, but cant select it when setup vpn connection

  • How to increase your battery health - anyone with similar experiences?

    this is my very own self made instruction of "how to increase your battery health"
    it is the procedure how i have done it serverall times on my powerbook g4 12".
    my stats: 374 cycles, health 86% (3790 of 4400mAh)
    age of my mac: 57month (battery bit newer)
    **if you to try this: it is on your own risk!**
    **this may not be suitable for mac newbies**
    **be sure to read this twice before you do it once!**
    you will need:
    -a pocket lamp or comparable light (to see anything on your sreen when it is dark --> light from the back through apple logo)
    -coconutbattery (coconut-flavour.com/coconutbattery) or comparable programm to track your battery information in realtime
    -activity monitor
    -cool enviroment (to ensure your fans don't have to work that much)
    -some time and patience
    the intructions:
    step1: load your mac until the orange light turns green
    step2: disconnect the power adapter
    step3: use your mac until 15-25% battery life (track this information in your menu bar)
    step4: slow down your activities. the order of the following actions depend on your usage of your mac:
    __close programms that use lots of cpu/gpu to ensure the fans slow down to 0rpm (!!)
    __turn off everything that needs battery power: airport / bluetooth / speakers / etc.
    __eject dvd or cd
    __close all programms with important data
    __eject idisk / .dmg files in your finder (this is not only a matter of data security)
    __dissonnected from peripherals such as ethernet / internet / mouse / keyboard
    __use lower brightness level
    __open activity monitor to ensure that your hard drive activity is very low, may be you need to close more active programms, close activity monitor when hard drive activity is very low
    __open system preferences >> energy saver preferences >> choose longest battery life
    when your are ready with those actions go on and ensure you are able to connect to power adapter with your mac quickly (be able to charge - don't do it yet!)
    step5: be patient. now it should take some time until your battery level goes down to 3-5%
    now there should be no programm running.
    do not open any programm now!
    do not have a look at your dashboard!
    now your mac should be really quiet:
    -no fans (0rpm!)
    -nearly no hard drive activity!!
    -->> if this not the case break go on with step 11&12, try again in a week or two
    -->> if you are ready go on with step6
    step6: open coconutbattery und use the lowest brightness level
    play with your trackpad to ensure your screensaver won't start. waste time until you are at 1-2% battery life.
    step7: take your lamp and spot through the transperent apple logo, position your coconut battery window somehow that you can see the current battery charge und the maxium battery charge in the spot of your lamp through the apple logo.
    step8: go from the lowest brightness level to the level under the lowest brightness level (a dark screen)
    step9: watch your current battery charge carefully und keep on playing with your trackpad to ensure your screensaver won't start.
    step10: there is kind of battery buffer made of approximately 1% (once when my "current battery charge" was 3624mAh and this kind of buffer was at 36mAh)
    to empty this kind of battery buffer takes much longer as you might expect!
    when your current battery charge turns under this kind of battery buffer, your maximum battery charge should change. hopefully it is higher or stays the same. when it is lower now: i'm sorry - i have warned you. may be you have to go through this 'how to' more carefully!?
    step11: plug in your power adapter before the battery is cero!
    step12: load until the orange light turns green
    step13: if it was helpful do not repeat it more than once a week, better once a month
    -->webcal://www.apple.com/batteries/images/notebook_icalreminder.ics
    (via: http://www.apple.com/batteries/notebooks.html)
    anyone with similar experiences about increasing battery health!?
    (yes, i'm sorry for my poor english, i've tried my best)

    Me too! My battery lasts for 10 minutes. It is awful and I am on my 4th power adapter since they keep breaking too.
    From coconut battery: Maximum battery charge 310mah, original 4400, age of mac 45 months, 140 cycles.
    From system profile:
    Battery Installed: Yes
    First low level warning: No
    Full Charge Capacity (mAh): 310
    Remaining Capacity (mAh): 213
    Amperage (mA): -1205
    Voltage (mV): 11557
    Cycle Count: 140
    I went to an apple authorized retailer and they said nothing I can do if it is out of warranty.. is this true?

  • How to increase No. of Connections in Oracle DB?

    Hi,
    As my team using more no. of connections, I need to increase the number of connections.
    Kindly guide me to check the current number of connections and how to change / increase that?
    As I don't have knowledge on this, I am looking the detailed input on this.
    Kindly guide me, How to check the no. of connections in DB and how to increase that?
    Thanks in advance,
    Orahar.

    Orahar wrote:
    As my team using more no. of connections, I need to increase the number of connections.For what type of sessions? That determines whether dedicated or shared server sessions on the Oracle server can be used. Shared server scales a lot better than dedicated servers, but requires specific factors to be taken into consideration (e.g. the move of session UGA from the PGA to the SGA, dispatchers required, etc).
    For what server o/s? Windows deal differently with dedicated and shared servers (threads) as Unix/Linux (processes) do.
    And why the increase in connections required by your team? Are they using the Oracle server architecture correctly from the client side?
    Most 64bit Oracle severs can easily support 1000's of connections (shared server) - but the number of connections are secondary to how the clients are using their Oracle sessions.

  • How to increase the row and Column length of Bex query in EP Portal 7.3

    Dear All,
    Please let me know the process  to Increase the Rows and Columns  Size of Bex Query in Enterprise Portal  of SAP  7.3 .
    Please  let settings to increase rows up 10000 and column 100 in one page.
    Thanks
    Regards,
    Sai

    Dear All,
    Please find the attached screen shot.
    The report be open with 4 or 5 columns and 5 or 6 rows.
    So, please  let me know how to increase the length of the table.
    Do the needful for me to over come this issue.
    Thanks
    Regards,
    Sai.

  • How to increase line-size in Function module

    Hi All,
        How to increase line-size in function module..
    I am displaying a list in function module.The output is of width more than 150..
    Regards,
    Srinivas

    Hi Srini,
    U can try by setting the system variable SY-LINSZ = 150.
    or
    Use new page command.
    Vasanth

Maybe you are looking for

  • Creating batch job with 5 classes

    Hi All, I have a requirement in which I have to do five different operations at different time instances. 1.Generate a report at morning 11.00 AM. 2.update a table with more than 6000 rows at night 12.30 AM 3.Generate a second report querying from th

  • How to get ADF authentication and authorization working on server

    I am having an issue with deployment & ADF authentication and authorization. From the below testing results, you can see that I am unable to log in when I have deployed my app to my standalone server with both ADF security authentication and authoriz

  • Form created but saved as pdf.

    I originally created a form using forms central, saved it as a pdf to test knowing I needed to go back and correct typos etc.  Unfortunately it is no longer in the forms central section!  I tried importing it but get the message that it has already b

  • Iphone 3G & MMS

    I love my iPhone 3G with a passion. Everything is near perfect on the phone. . . I don't think i could live without my iPhone. . . BUT WHY CANT THERE BE MMS? THIS ANNOYS THE BLOODY HE!! OUT OF ME!

  • Checks to be printed

    none of the checks on the list of checks to be printed was preselected as usual and it will not allow us to select them. What could be blocking this?