Siege: descriptor table full sock.c:119: Too many open files

12,314

Solution 1

To solve this problem for myself, I had to adjust the OS "ulimit" setting:

ulimit -a -- Check current setting

ulimit -n 10000 -- Edit setting value

Source: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=595527

Solution 2

Just increase the maximum number of files that can be open by the same user within the same session accordingly.

Source: http://www.cyberciti.biz/faq/linux-increase-the-maximum-number-of-open-files/

Share:
12,314

Related videos on Youtube

shakaran
Author by

shakaran

>>>English:<<< I am a student of Computer Engineering in Spain. I use Ubuntu and I like to support the world of free software. Currently developing a project on an online role-playing game as RPG-based web interfaces and aspirations motor 3D based Blender. The website of the project: www.apogeus.es Other projects: Tivion - A simple player for online TV streaming. www.shakaran.net/blog/tivion Quijost - A really cheap and professional hosting www.quijost.com >>>Spanish<<< Soy un estudiante de Ingeniería Informática en España. Utilizo Ubuntu y me gusta apoyar el mundo del software libre. Actualmente desarrollo un proyecto sobre un juego de rol online como RPG basado en interfaces web y con aspiraciones de motor en 3D basado en Blender. La pagina web del proyecto: www.apogeus.es Otros proyectos: Tivion - Un simple reproductor para canales de TV streaming. www.shakaran.net/blog/tivion Quijost - Un hospedaje realmente barato y profesional www.quijost.com

Updated on September 18, 2022

Comments

  • shakaran
    shakaran almost 2 years

    I am trying to make a stress test in my own server using siege with the following command:

    $ siege -c 500 myweb.com/somefile.php
    

    But I get this error:

    [error] descriptor table full sock.c:119: Too many open files
    

    And I get too this warning:

    libgcc_s.so.1 must be installed for pthread_cancel to work
    

    But I am using Ubuntu 15.04 (Development branch) and I have installed the package libgcc1, so I don't know why it is complaning about that .so shared library.

    How I can solve the too many open files and the libgcc warning?

  • shakaran
    shakaran almost 9 years
    I have the number 500 specified. Your answer is wrong
  • Sergey Grigorchuk
    Sergey Grigorchuk almost 9 years
    Yes, you are right. But check the log file anyway
  • Aleksandar Pavić
    Aleksandar Pavić about 3 years
    Then I got [error] socket: unable to connect sock.c:249: Operation already in progress