Problems changing the max open files attribute (ulimit)

I realised that I posted this message in the wrong section
(newbie corner) but there is no way to delete a message
so this was a duplicate of the one in Kernel & Hardware
Issues
Last edited by Rehto (2009-04-06 08:53:52)

Rehto wrote:
I'm trying to change the max open files by
putting this line to /etc/security/limits.conf
<username> hard nofile 4096
but nothing changes ('ulimit -n' spits as 1024 as an answer).
I did try to logout and log back in and reboot the
system but no go
set the soft limits first. smth like:
<your_name> soft nofile 4096
<your_name> hard nofile 4096
ulimit always uses the soft resource limit first. hard limits kills the application then, if it goes mad.
vlad
ps: logout then login again...
Last edited by DonVla (2009-04-06 11:25:56)

Similar Messages

  • [SOLVED] Problems changing the max open files attribute (ulimit)

    I'm trying to change the max open files by
    putting this line to /etc/security/limits.conf
    <username> hard nofile 4096
    but nothing changes ('ulimit -n' spits as 1024 as an answer).
    I did try to logout and log back in and reboot the
    system but no go
    P.S. I also tried adding 'ulimit -n 4096' to ~/.bashrc
    but then I get:
    bash: ulimit: open files: cannot modify limit: Operation not permitted
    so should I add it to the global profile file
    (etc/profile right?) or to /root/.bashrc or what?
    Last edited by Rehto (2009-04-06 12:08:32)

    Rehto wrote:
    I'm trying to change the max open files by
    putting this line to /etc/security/limits.conf
    <username> hard nofile 4096
    but nothing changes ('ulimit -n' spits as 1024 as an answer).
    I did try to logout and log back in and reboot the
    system but no go
    set the soft limits first. smth like:
    <your_name> soft nofile 4096
    <your_name> hard nofile 4096
    ulimit always uses the soft resource limit first. hard limits kills the application then, if it goes mad.
    vlad
    ps: logout then login again...
    Last edited by DonVla (2009-04-06 11:25:56)

  • Problem to increaase max open files to more than 1024

    Hello,
    I tried to increase the max open files to more than 1024 in the following way
    $ sudo nano /etc/security/limits.conf
    mysql hard nofile 8192
    mysql soft nofile 1200
    However, after reboot I am still not able to start MariaDB:
    $ sudo systemctl start mysqld
    Job for mysqld.service failed. See 'systemctl status mysqld.service' and 'journalctl -xn' for details.
    $ sudo systemctl status mysqld
    ● mysqld.service - MariaDB database server
    Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled)
    Active: activating (start-post) since Tue 2014-09-02 13:08:20 EST; 53s ago
    Main PID: 6504 (mysqld); : 6505 (mysqld-post)
    CGroup: /system.slice/mysqld.service
    ├─6504 /usr/bin/mysqld --pid-file=/run/mysqld/mysqld.pid
    └─control
    ├─6505 /bin/sh /usr/bin/mysqld-post
    └─6953 sleep 1
    Sep 02 13:08:20 acpfg mysqld[6504]: 140902 13:08:20 [Warning] Could not increase number of max_open_files to more than 1024 (request: 4607)
    I am using the following /etc/mysql/my.cnf
    [mysql]
    # CLIENT #
    port = 3306
    socket = /home/u/tmp/mysql/mysql.sock
    [mysqld]
    # GENERAL #
    user = mysql
    default-storage-engine = InnoDB
    socket = /home/u/tmp/mysql/mysql.sock
    pid-file = /home/u/tmp/mysql/mysql.pid
    # MyISAM #
    key-buffer-size = 32M
    myisam-recover = FORCE,BACKUP
    # SAFETY #
    max-allowed-packet = 16M
    max-connect-errors = 1000000
    skip-name-resolve
    sql-mode = STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_AUTO_VALUE_ON_ZERO,NO_ENGINE_SUBSTITUTION,NO_ZERO_DATE,NO_ZERO_IN_DATE,ONLY_FULL_GROUP_BY
    sysdate-is-now = 1
    innodb = FORCE
    innodb-strict-mode = 1
    # DATA STORAGE #
    datadir = /home/u/tmp/mysql/
    # BINARY LOGGING #
    log-bin = /home/u/tmp/mysql/mysql-bin
    expire-logs-days = 14
    sync-binlog = 1
    # CACHES AND LIMITS #
    tmp-table-size = 32M
    max-heap-table-size = 32M
    query-cache-type = 0
    query-cache-size = 0
    max-connections = 500
    thread-cache-size = 50
    open-files-limit = 65535
    table-definition-cache = 1024
    table-open-cache = 2048
    # INNODB #
    innodb-flush-method = O_DIRECT
    innodb-log-files-in-group = 2
    innodb-log-file-size = 128M
    innodb-flush-log-at-trx-commit = 1
    innodb-file-per-table = 1
    innodb-buffer-pool-size = 2G
    # LOGGING #
    log-error = /home/u/tmp/mysql/mysql-error.log
    log-queries-not-using-indexes = 1
    slow-query-log = 1
    slow-query-log-file = /home/u/tmp/mysql/mysql-slow.log
    How is it possible to increase the number?
    Thank you in advance.

    Change/add in the my.ini file, under [mysqld]:
    max_allowed_packet=2048M
    Reference:
    * http://dev.mysql.com/doc/refman/5.5/en/ … wed_packet

  • 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 do I change the size of file menu's and tool icons in Photoshop' opening page.

    How do I increase or change the size of file menu's and tool icons on the opening page/worksheet of Photoshop? The File Menu drop down commands read properly at a comfortable size. I am not sure how I accomplished this, but everything I have tried has no effect on the other page items.

    Hello, you can change most of Photoshop's interface text by going to preferences>interface>UI font size.
    For the size of the top menus and the whole interface, there is no function to do that for the moment. I suggest to vote on this thread: http://feedback.photoshop.com/photoshop_family/topics/problem_with_hi_res_monitors

  • Probleme changing the value of a variable in movieclip from my scene

    Hello,
    i have a probleme changing the value of a variable in movieclip from my scene. i explain: I have combobox on my scene containing categories, and in the scene i load an xml file containing links to php files that work with the combobox.
    Also on the scene i have a movieclip "filmstrip", inside this movieclip on the first frame i have a script loading the php file selected in the scene . i use a load() function with a variable "theUrl" inside like this : T.load(theUrl);.
    In my scene i want to change the value of "theUrl" inside the movieClip filmstrip. I tried filmstrip.theUrl = url; But it doesnt work
    the xml file
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <slideshow>
    <area title1="10 Last updated" link1="link1.php"/>
    <area title1="special" link1="link2.php"/>
    </slideshow>
    here is the code on my scene:
    var link1:Array = new Array();
    var LINK:String;
    var url:String;
    var whoOn:Number;
    whoOn=0;
    var x:XML = new XML();
    x.ignoreWhite = true;
    x.onLoad = function(success) {
    var photos:Array = this.firstChild.childNodes;
    for (i=0; i<photos.length; i++) {
    _root.link1.push(photos[i].attributes.link1);
    url=link1[whoOn];
    filmstrip.theUrl=url;//<<--HERE
    x.load("category.xml");
    var cbListener:Object = new Object();
    cbListener.change = function(event_obj:Object) {
    trace(select.selectedItem.label);
    if (select.selectedItem.label == "Last updated") {
    whoOn=0;
    } else if (select.selectedItem.label == "Special") {
    whoOn=1;
    url=link1[whoOn];
    filmstrip.theUrl=url; //<<-----HERE  
    select.addEventListener("change",cbListener);
    here is the code inside the movie clip "filmstrip"
    var T:XML = new XML();
    T.ignoreWhite = true;
    T.onLoad = function(xml) {
    etc etc etc }
    T.load(theUrl);    //<<---HERE it still undefined

    YESSSS . Thanks you very much Kglad it wotk i put all in a function inside the filmstrip function Tload(theUrl){etc ect}and in the root i call it like this filmstrip.Tload(theUrl);   and it works
    code in the root var link1:Array = new Array();
    var LINK:String;
    var url:String;
    var whoOn:Number;
    whoOn=0;
    var x:XML = new XML();
    x.ignoreWhite = true;
    x.onLoad = function(success) {
    var photos:Array = this.firstChild.childNodes;
    for (i=0; i<photos.length; i++) {
    _root.link1.push(photos[i].attributes.link1);
    url=link1[whoOn];
    theUrl=url;
    filmstrip.Tload(theUrl);//<<--HERE
    x.load("category.xml");
    var cbListener:Object = new Object();
    cbListener.change = function(event_obj:Object) {
    trace(select.selectedItem.label);
    if (select.selectedItem.label == "Last updated") {
    whoOn=0;
    } else if (select.selectedItem.label == "Special") {
    whoOn=1;
    url=link1[whoOn];
    theUrl=url;
    filmstrip.Tload(theUrl);//<<-----HERE
    select.addEventListener("change",cbListener);

  • How do you change the max data when creating a DVD?

    I recently filmed a show and am making DVD copies. The show runs 1hour 45mins and is about 79gb in HD. I'm using compressor 4.1 to create the DVDs so it fits on one disc. I've made a few test copies but so far every DVD freezes at around 43 mins when I play it in another computer or dvd player. I heard in a blog that reducing the max data should solve the problem. This is my first time using compressor and I wanted to know where do you go to change the max data and how will that affect the video quality? Also, what is the suggested range of data limits for a project of this size?
    Thanks

    Duplicate the Create DVD preset from the Settings pane and name it.
    Select the MPEG setting in the batch window.
    Open the Inspector and click the Video tab.
    Choose your "Encoding Mode" (CBR, etc.).
    Uncheck Automatically Select Bit Rate.
    You can then move the slider: somewhere around 4 Mb per second should be about right.
    Just to add that you might also have a problem with the physical media. Try another brand to see whether that makes a difference.
    Russ

  • Changing the default opener in Bridge

    My Bridge has decided to change the default opener from Photoshop CS4 to either Quicktime , Paint or Dreamweaver.
    So now I cannot preview a picture in Bridge and then open it in Photoshop
    Can anyone tell me how to change the default back to Photoshop.

    I feel like we are not having the same discussion as I am repeating myself.  Either I am misinterpreting your problem, or you are misinterpreting the suggestions.
    Have you opened Windows Explorer and click one Tools? Should be a tab that says File Type.  Look what the default "opens with" setting is for jpeg files.  You want it to be CS4.  Bridge is not a separate program, but subprogram of photoshop.
    Also, did you go to Bridge and click on edit/preferences/file type associations?  Is CS4 shown there a program for jpeg?

  • How to change the default "Safe" files in Safari?

    I would really appreciate if anybody could teach me how to change the default "Safe" files using AppleScripts, Folder Actions or .plist files. I really would like to have some files to open automatically after download, specially .pps files, and safari doesn't recognize such files as "safe". I tried to find out reading the help files but got lost.
    I posted a reply in an old topic for somebody who seemed to know, but it was not related to that topic, so I decided to open a new one.
    I'll be gratefull for any help. Thanks.

    Hi MDRC,
    Have a read of [this topic|http://discussions.apple.com/thread.jspa?threadID=1237961] to see if that helps.

  • Programaticly changing the (suggested only) file name in the save prompt when signing a document?

    When you sign a document in Adobe X (or XI), the system says it needs to save the file first.   Is there some way to change the (suggested only) file name to a different value for that save?
    Right now, people open a blank form - lets call it formX.pdf.   They fill it in and sign it.  The suggested file name for the save is FormX.pdf.   I can generate a unique file name which i'd like to put in place of the suggested default...

    AFAIK, you can't do it with code. Your best option might be to use a form field to show a message to the user when they sign the document with that information.

  • The recently open files are greyed out.

    The recently open files are greyed out.
    I am using Word Excel 2003 and Windows 8.1
    I have uninstalled and re installed to no effect.
    Any suggestions welcome.

    Hi,
    Please try the following 2 methods:
    1.Click to select the Add new documents to Documents on Start Menu check box on the
    IE tab of Tweak UI. To do this, follow these steps.
    Note To perform the following steps, you must be logged on as a member of the local Administrators group.     
    In Control Panel, double-click Tweak UI.
    Click the IE tab.
    Click to select the Add new documents to Documents on Start Menu check box, and then click
    OK.
    http://support.microsoft.com/default.aspx?kbid=284896
    2.Go to Start—>Run—>Type regedit click ok
    Now you need to navigate the following key from left pane
    HKEY_CURRENT_USER\SOFTWARE\MICROSOFT\WINDOWS\CURRENTVERSION\POLICIES\EXPLORER
    Now you need to select the following key and delete from right pane
    NoRecentDocsHistory
    Exit your registry editor
    Now you need to go open MS office application click on Tools—>Options
    Click on General Tab, Check the Recently used file list checkbox and use the designated dropdown to select the desired number of entries and click ok
    Note Please backup your Registry before modifiying.
    http://www.windowsreference.com/ms-office/fix-for-ms-office-2003xp2000-recently-used-file-list-is-grayed-out/
    Please Note: Since the web site is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Regards,
    George Zhao
    TechNet Community Support

  • How do you change the last opened date in Lion?

    In many screens the files are organized automatically by last opened date.  This information is not available when you click command info on the individual file, however, if you list out the files and click on the option to show last opened on the row on the top you will see this information.
    From time to time it is useful to change the creation and modification dates to move where files are displayed in various windows.  While there are utilities and articles about changing the creation and last modified date using third party software or the terminal, I have not been able to find any way to change the last opened date.  This is useful if you wish to hide a file you recently opened so that another user can't just find it as one of the last opened files. 
    When I googled this question all the solutions using terminal either with touch -t or touch -mt commands changed the creation and modification dates, but did not affect the last opened date.
    Anyone have a solution to this?

    Thank you MacNix!!!!!

  • In iTunes I'm having problems changing the "Media Kind" with a number of playlists in the OPTIONS menu from "music" to "audiobook". After going through the steps, the next time I check the items have reverted back to "music". What step am I missing?

    In iTunes I'm having problems changing the "Media Kind" in the OPTIONS menu from "Music" to "Audiobook". After going through the steps, the next time I check, the items have reverted back to "Music". What must I do to save it as an "Audiobook"?

    After more digging in the Support section here and some Google work, I turned off iTunes Match and lo and behold!  I can change the media kind to Audiobook!  So, it looks like iTunes Match locked the files up somehow and for some reason.
    I went into iTunes Store > iTunes Match > "No, Thanks" to disable it on the local PC.

  • Changing the default open folder

    Does anyone know how I can change the default open folder in Illustrator? It keeps going to the Documents folder when I try to open a file and I'd like to change it to another folder.

    Cohek wrote:
    Does anyone know how I can change the default open folder in Illustrator? It keeps going to the Documents folder when I try to open a file and I'd like to change it to another folder.
    Illy defaults to / recognises the *last* opened folder unless that's been shifted or some kind of housekeeping (such as clear all history) has been undertaken. In which case, and on first opening, it will open the default folder which will be 'My Documents' .

  • I am trying to open CR2 files from a Cannon EOS 1DX camera in Photoshop CS6 and I have already updated the Camera Raw Plug in but Photoshop is still giving me the cannot open files dialog box? Help?

    I am trying to open CR2 files from a Cannon EOS 1DX camera in Photoshop CS6 and I have already updated the Camera Raw Plug in but Photoshop is still giving me the cannot open files dialog box? Help?

    Canon 1DX support was added to ACR in version 6.7, 7.1.  An updated CS6 should be at level ACR 8.6.  If your ACR is not at level 8.6 try using CS6 menu Help>Updates.  If that does not install ACR 8.6 try downloading the ACR and DNG 8.6 converter and see if ACR 8.6 will install into your CS6.
    Adobe - Adobe Camera Raw and DNG Converter : For Windows
    Adobe - Adobe Camera Raw and DNG Converter : For Macintosh

Maybe you are looking for