Discussion:
[bottlepy] 2*bottle + cherrypy + winows = slow
tomasz bandura
2016-04-22 08:01:23 UTC
Permalink
Hello,

My environment:

- python 2.7
- bottle: 0.12.9
- cherrypy: 5.1

My application consists of two services ( frontend and backend) both
deployed on the same server ( cherrypy configuration below ):

config.update({'log.screen': True, 'engine.autoreload.on': True})
d = wsgiserver.WSGIPathInfoDispatcher({'/': frontend,'/service/': backend})
server = wsgiserver.CherryPyWSGIServer(('0.0.0.0', 8080), d, server_name='MYAPP',numthreads=30)



Application flow:


[Web Browser]<->['/']<->['/service/']<->[DB(mysql)]


Under Linux that response time is less than 100ms, but after moving it to
windows (server 2012, also tested on windows 2008), request takes longer
than 1 second.

What is strange, when i try to invoke frontend and backend separately
responses are in range 30-50ms.

So it look the problem is in communication between deployed services (but I
haven't noticed any errors/warning)

Also tested with pypy - unfortunately the same result.



Thank you for any suggestion.

T.
--
--
You are member of the "bottlepy" group at google groups.
See http://groups.google.de/group/bottlepy for mailing list options.
See http://bottlepy.org/ for news and documentation.

---
You received this message because you are subscribed to the Google Groups "bottlepy" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bottlepy+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...