11

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
  • 356
  • 1
  • 7
  • 19
  • 3
    Seems https://bugs.launchpad.net/ubuntu/+source/siege/+bug/1317812. Anyway try to increase the maximum amount of opened files with `ulimit -n 10000` or permanently (https://rtcamp.com/tutorials/linux/increase-open-files-limit/). – Federico Sierra Mar 24 '15 at 01:41

4 Answers4

12

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

bradforbes
  • 221
  • 2
  • 4
1

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/

0

Error message is misleading, but there's erorr in your command:

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

After -c you must specify number of consurrent simulated users.

Don't forget to check the rights for log file: by default it's /var/log/siege.log.

Or, specify your own by adding --log=/home/user/siege.log

0

Installing the gcc-multilib helped me with it (Ubuntu 16.04.3 LTS)

sudo apt-get install gcc-multilib

lucidyan
  • 101
  • 1