Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Internet > HTTP (WWW)

    meinheld 0.5.4

    Download button

    No screenshots available
    Downloads: 356  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Yutaka Matsubara | More programs
    BSD License / FREE
    June 10th, 2012, 15:27 GMT
    ROOT / Internet / HTTP (WWW)

     Read user reviews (0)  Refer to a friend  Subscribe

    meinheld description

    High performance asynchronous Python WSGI Web Server

    meinheld is yet another asynchronous web server like fapws3, tornado.

    meinheld is a WSGI compliant web server.

    Installation

    Install from pypi:

     easy_install -ZU meinheld

    Install from source:

     python setup.py install

    meinheld support gunicorn .

    To install gunicorn:

     easy_install -ZU gunicorn

    Basic Usage

    simple wsgi app:

    from meinheld import server

    def hello_world(environ, start_response):
     status = '200 OK'
     res = "Hello world!"
     response_headers = [('Content-type','text/plain'),('Content-Length',str(len(res)))]
     start_response(status, response_headers)
     return [res]

    server.listen(("0.0.0.0", 8000))
    server.run(hello_world)


    with gunicorn. user worker class "meinheld.gmeinheld.MeinheldWorker":

    $ gunicorn --workers=2 --worker-class="meinheld.gmeinheld.MeinheldWorker" gunicorn_test:app

    Performance

    meinheld is used high performance http_parser.

    (see http://github.com/ry/http-parser)

    and useing high performance event library picoev.

    (see http://developer.cybozu.co.jp/kazuho/2009/08/picoev-a-tiny-e.html)
    simple benchmark

    simple hello_world bench:

    def hello_world(environ, start_response):
     status = '200 OK'
     res = "Hello world!"
     response_headers = [('Content-type','text/plain'),('Content-Length',str(len(res)))]
     start_response(status, response_headers)
     return [res]


    use apach bench:

    $ ab -c 100 -n 10000 http://127.0.0.1:8000/

    spec

     * CPU : Intel(R) Atom(TM) CPU N270 @ 1.60GHz
     * Memoy : 1G
     * OS: Ubuntu 10.04

    server Requests per second
    meinheld 0.1 2927.62 [#/sec]
    fapws3 0.6 1293.53 [#/sec]

    sendfile

    meinheld use sendfile(2), over wgsi.file_wrapper.


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    web server | WSGI server | WSGI | web | server

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM