Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #21278
| From | Dennis Lee Bieber <wlfraed@ix.netcom.com> |
|---|---|
| Subject | Re: python simple web server |
| Date | 2012-03-06 14:07 -0500 |
| Organization | > Bestiaria Support Staff < |
| References | <1331047957.90396.YahooMailClassic@web162001.mail.bf1.yahoo.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.438.1331060879.3037.python-list@python.org> (permalink) |
On Tue, 6 Mar 2012 07:32:37 -0800 (PST), queency jones
<queency3@yahoo.com> declaimed the following in
gmane.comp.python.general:
> hello pythonist
>
> i'm developing using the simple / basic http server
> i got very bad performance regarding to request time .
> 9 sec for each request replay.
>
> i tried to test this with this:
> python -m SimpleHTTPServer 8080
> but no better.
>
> any sugestions ? that i can use ?
> my final goal is to serv 5 people on the lan network only .
> can't i stick with the python server ?
Bottom up...
I'd consider SimpleHTTPServer (and kin) most useful as development
servers (if that, since it appears they only handle GET type requests).
What OS? And are there any firewall/proxy systems in the way?
I've got a backup processing running; it's on a different hard drive
than the following but still has some slow-down of my ancient system.
E:\Bestiaria\Bestiaria CP\static>python -m SimpleHTTPServer 8080
Serving HTTP on 0.0.0.0 port 8080 ...
localhost - - [06/Mar/2012 13:56:33] "GET /index.html HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:56:34] "GET /images/NavBar2_01.jpg
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:56:34] "GET /images/NavBar2_05.jpg
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:56:34] "GET /images/NavBar2_04.jpg
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:56:34] "GET /images/NavBar2_03.jpg
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:56:34] "GET /images/NavBar2_02.jpg
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:56:36] "GET /images/copylogosm2.gif
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:56:37] "GET
/images/beastie-market_small.gif HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:56:38] "GET /images/fr3dblog.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:56:39] "GET /images/bulletpaw.gif
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:56:40] "GET /images/muckrake.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:56:41] "GET /images/artlinks.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:56:42] "GET /images/references.gif
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:56:43] "GET /images/sorclink.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:56:44] "GET /images/hoard.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:56:45] "GET /images/PayPal.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:56:45] "GET /images/bst_tgr.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:56:45] "GET /images/NavBar2_07.jpg
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:56:45] "GET /images/NavBar2_06.jpg
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:56:46] "GET /images/NavBar2_08.jpg
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:56:46] "GET /images/b_banner.jpg HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:56:47] code 404, message File not found
localhost - - [06/Mar/2012 13:56:47] "GET /favicon.ico HTTP/1.1" 404 -
localhost - - [06/Mar/2012 13:56:50] code 404, message File not found
localhost - - [06/Mar/2012 13:56:50] "GET /favicon.ico HTTP/1.1" 404 -
localhost - - [06/Mar/2012 13:57:10] "GET /b_conventions.html HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:20] "GET /b_comics.html HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:57:21] "GET /images/doemainofourown.gif
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:57:22] "GET /images/BoomerButton.gif
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:57:23] "GET /images/BDBanner.jpg HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:23] "GET /images/cybantop.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:23] "GET /images/accidental.jpg
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:57:23] "GET /images/carry-on.jpg HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:24] "GET /images/tcwpaper.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:25] "GET /images/cigvtop.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:25] "GET /images/coyoteville.gif
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:57:25] "GET /images/comkitty.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:25] "GET /images/delanow.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:25] "GET /images/cmlink.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:25] "GET /images/deobanner1.gif
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:57:26] "GET /images/fauxpas.jpg HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:26] "GET /images/fflogo.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:26] "GET /images/gcatlow.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:26] "GET /images/gobhol.jpg HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:26] "GET /images/kkile.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:26] "GET /images/Kay-banner1.jpg
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:57:27] "GET /images/limpiditylogo2.gif
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:57:27] "GET /images/newshnlg.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:27] "GET /images/niptuck.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:27] "GET /images/ombutton.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:27] "GET /images/rfomtitle.jpg
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:57:28] "GET /images/roomies.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:28] "GET /images/PMLink.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:28] "GET /images/sftiny-b.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:29] "GET /images/smt.jpg HTTP/1.1" 200
-
localhost - - [06/Mar/2012 13:57:29] "GET /images/snlnow.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:29] "GET /images/questor.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:29] "GET /images/um1.gif HTTP/1.1" 200
-
localhost - - [06/Mar/2012 13:57:29] "GET /images/tallyho.png HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:29] "GET /images/vinciarty.png
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:57:30] "GET /images/wcotp.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:30] "GET /images/twblink.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:41] "GET /b_art.html HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:57:42] "GET /images/bst_btln.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:43] "GET /images/swplogo.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:43] "GET /images/furnation.gif
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:57:43] "GET /images/artspots-logo.jpg
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:57:43] "GET /images/consbar.gif HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:43] "GET /images/twospotz.jpg HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:44] "GET /images/icon2.jpg HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:44] "GET /images/direbanner.jpg
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:57:44] "GET /images/kemonet_m.gif
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:57:44] "GET /images/kyoht1.jpg HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:44] "GET /images/sidian_banner.jpg
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:57:44] "GET /images/mgiles.jpg HTTP/1.1"
200 -
localhost - - [06/Mar/2012 13:57:45] "GET /images/summer_fly.jpg
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:57:45] "GET /images/button_sheep.jpg
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:57:45] "GET /images/aspects_of_art.jpg
HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:57:55] "GET /b_mucks.html HTTP/1.1" 200 -
localhost - - [06/Mar/2012 13:57:56] "GET /images/bst_owl.gif HTTP/1.1"
200 -
One thing to take into account: SimpleHTTPServer is likely single
threaded -- a real webserver can be returning half a dozen images in
parallel to fill the page.
If you are running one Windows, see what it takes to activate IIS
and configure it to serve your static pages (it may even handle POST
requests)
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: python simple web server Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2012-03-06 14:07 -0500
csiph-web