Welcome to Centmin Mod Community
Register Now

Siege command for this new dedicated server

Discussion in 'Other Centmin Mod Installed software' started by pamamolf, Jun 2, 2014.

  1. pamamolf

    pamamolf Well-Known Member

    2,450
    220
    63
    May 31, 2014
    Ratings:
    +377
    Local Time:
    11:37 PM
    Nginx-1.11.x
    MariaDB 10
    Hi :)

    I just got this server:

    Intel Xeon
    2x E5-2650v2
    16c/32t 2,6 GHz+/3,4 GHz+
    128 GB DDR3 ECC 1600MHz

    and i want to benchmark a php info file (does not use sql at all) ....

    What command i must use?

    I mean for how long seconds/minutes and how many concurent?

    Please post the command for that big server ..

    Thank you
     
  2. eva2000

    eva2000 Administrator Staff Member

    27,771
    6,336
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,339
    Local Time:
    6:37 AM
    Nginx 1.13.x
    MariaDB 5.5
    You should check the official manual at http://www.joedog.org/siege-manual/ as well as the readme at http://www.joedog.org/siege-readme/ and faq at http://www.joedog.org/siege-faq/. That should give you the full run down of options and explain configuration etc.

    Also check out benchmarks I did a http://centminmod.com/benchmarks.html for ideas.

    You'll ideally need to run siege from a separate server from the one you're testing.

    Run -h option to see all options too

    Code:
    siege -h
    SIEGE 3.0.6
    Usage: siege [options]
           siege [options] URL
           siege -g URL
    Options:
      -V, --version             VERSION, prints the version number.
      -h, --help                HELP, prints this section.
      -C, --config              CONFIGURATION, show the current config.
      -v, --verbose             VERBOSE, prints notification to screen.
      -q, --quiet               QUIET turns verbose off and suppresses output.
      -g, --get                 GET, pull down HTTP headers and display the
                                transaction. Great for application debugging.
      -c, --concurrent=NUM      CONCURRENT users, default is 10
      -i, --internet            INTERNET user simulation, hits URLs randomly.
      -b, --benchmark           BENCHMARK: no delays between requests.
      -t, --time=NUMm           TIMED testing where "m" is modifier S, M, or H
                                ex: --time=1H, one hour test.
      -r, --reps=NUM            REPS, number of times to run the test.
      -f, --file=FILE           FILE, select a specific URLS FILE.
      -R, --rc=FILE             RC, specify an siegerc file
      -l, --log[=FILE]          LOG to FILE. If FILE is not specified, the
                                default is used: PREFIX/var/siege.log
      -m, --mark="text"         MARK, mark the log file with a string.
      -d, --delay=NUM           Time DELAY, random delay before each requst
                                between 1 and NUM. (NOT COUNTED IN STATS)
      -H, --header="text"       Add a header to request (can be many)
      -A, --user-agent="text"   Sets User-Agent in request
      -T, --content-type="text" Sets Content-Type in request
    
    From FAQ one to pay attention to is How many concurrent users should I use?

     
  3. pamamolf

    pamamolf Well-Known Member

    2,450
    220
    63
    May 31, 2014
    Ratings:
    +377
    Local Time:
    11:37 PM
    Nginx-1.11.x
    MariaDB 10
    Thanks for your reply :)

    I was read the manual and i know what command and the syntax to use but i don't know for example if i will get better results using 30 seconds or a minute....

    What it will be more acurate and also for the concurent if it is better to set it low and run the same command on both servers and compare the results or if it is better to use higher values as the server is super fast as high value of 400 maybe ?

    Or it is the same as long as i do not get any errors?
     
  4. eva2000

    eva2000 Administrator Staff Member

    27,771
    6,336
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +9,339
    Local Time:
    6:37 AM
    Nginx 1.13.x
    MariaDB 5.5
    Trial and error depending on your server and it's specific configuration and target tested web app and yes aim is without errors

    some folks test for 24hr duration some test for number of reps (-r option)