Giter VIP home page Giter VIP logo

gatling's Introduction

gatling

erlang websocket server

ulimit system limit

ubuntu:
####1.single file max handler:

erlang:system_info (check_io).

{max_fds,1024} shows how many handler you can set at one file.
You can change that like this:

sudo vim /etc/security/limits.conf

add two rows:
* soft nofile 100000
* hard nofile 100000
and restart your computer. It works! ye~ :). ####2.computer max port limit:

erlang:system_info (port_limit).

it shows max port limit of your computer, you can add +Q behind 'erl' like:

erl +Q 100000

to change it. ####3.computer port range: if you don't need stress test then you can skip this step.

su  
echo "1024 65535" > /proc/sys/net/ipv4/ip_local_port_range  
cat /proc/sys/net/ipv4/ip_local_port_range  

how it works


1.Open a terminal and go to gatling direction(my was in ~/Documents/code/gatling/), and type:

rebar compile
erl

2.start application

gatling:start().

3.Open gatling/client/gatling.html in browser

4.you can set port in src/gatling.app.src by the name "port"

5.each websocket server will auto stop when it have not been receive request from client for 1 hour. The time also can be custom set in src/gatling.app.src by the name "stop_time".

then you can see some log in browser's console. I only test in chrome, :).

gatling's People

Contributors

wudixiaotie avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.