Results 1 to 4 of 4

Thread: Too many open files error while building Firefox source

  1. #1
    Join Date
    Nov 2012
    Beans
    2

    Too many open files error while building Firefox source

    Hi,

    I'm using ubuntuon DellXPS latop.
    my environment:
    XPS-M1330 3.5.0-17-generic #28-Ubuntu SMP Tue Oct 9 19:32:08 UTC 2012 i686 i686 i686 GNU/Linux

    While building firefox browser using source code, I get too many files open error and exits.

    ================================================== ==========
    make -f client.mk build
    /home/jayachandra/Firefox_release/mozilla/build/autoconf/mozconfig2client-mk: 59: /home/jayachandra/Firefox_release/mozilla/build/unix/mozconfig.linux: 1: Too many open files
    /home/jayachandra/Firefox_release/mozilla/build/autoconf/mozconfig2client-mk: 35: .: 1: Too many open files
    /home/jayachandra/Firefox_release/mozilla/.mozconfig.mk:8: *** Fix above errors before continuing.. Stop.
    ================================================== ===========

    some of the posts in "specialised server community post" i found a post discussing similar issue for which solution has been provided in the IBM link http://www-01.ibm.com/support/docvie...id=swg21403391.
    This idea did n't work for me.

    I tried building using 'root' access.
    increased ulimit -n to more than 65536 to 100000 and 300000 still the same error.

    here are the current values of limits in my setup
    # ulimit -n
    65539
    # sysctl -a | grep -i file
    fs.file-max = 308629
    fs.file-nr = 7648 0 308629

    but syslog has some entries like
    Mar 14 08:44:01 jayachandra-XPS-M1330 kernel: [ 1385.638461] VFS: file-max limit 308629 reached
    Mar 14 08:44:03 jayachandra-XPS-M1330 kernel: [ 1388.140514] VFS: file-max limit 308629 reached


    I tried after closed some applications like "calibre" ebook reader.
    only opened chrome browser (20tabs) and few terminal windows,


    even lsof having error in finding open files:
    #lsof | wc -l
    lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/jayachandra/gvfs
    Output information may be incomplete.
    output: 65010 <<<< still to read max limit.

    just a mere opening chrome browser and few terminals should n't consume so many open files

    any help in increasing ulimit beyond system max 308629 and user limit 65540?
    if i increase root user ulimit -n to beyond 65540 then system response will be degraded.

    best regards,
    viswanath






  2. #2
    Join Date
    Nov 2012
    Beans
    2

    Re: Too many open files error while building Firefox source

    I tried this after rebooting with only terminal windows
    set ulimit -n 65536.
    Still I get the same error.

    need help.

    best regards,
    Viswanath

  3. #3
    Join Date
    Oct 2009
    Location
    Reykjavík, Ísland
    Beans
    10,544
    Distro
    Lubuntu 15.04 Vivid Vervet

    Re: Too many open files error while building Firefox source

    Moved to General Help as this is not specific to Dell.

    Why are you building Firefox rather than just installing it from the repository?
    About problems due to upgrading
    Bringing old hardware back to life.
    Please visit Quick Links -> Unanswered Posts

  4. #4
    Join Date
    Dec 2009
    Location
    germany
    Beans
    1,020
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Too many open files error while building Firefox source

    hi
    try: sudo /bin/bash
    then run: for i in `ls -d /proc/[0-9]*/fd`; do echo "----> $i `ls $i | wc -l`"; done | sort -rn --key=3 | more
    to figure out the initiator of the wasted file-descriptors. --> ps -ef | grep PID_OF_THE_FIRST_TASK
    ciao

    p.s.: lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/jayachandra/gvfs this is normal
    Last edited by rnerwein; March 16th, 2013 at 12:26 PM. Reason: warning of lsof i normal
    "What is the robbing of a bank compared to the FOUNDING of a bank?" Berthold Brecht

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •