I will try reproduce and let you know. On Friday, 12 October 2012 11:59:01 UTC-5, David Marko wrote: > > Its interal app so I cant provide the source. But I realised the app still > contains 'local_import' so I have replaced with 'import' but no effect. > Then I benchmarked both compiled and non compiled version ... each 2x and > non-compiled is fine, but compiled leaks memory ... > > a) non-compiled version: web2py started at 37MB, increased to 56MB and > oscilated +-2MB during the test with no significant increase at the end > b) compiled version: web2py started at 37MB and memory was increasing > during entire test up to 95MB > > ### ab -n 10000 -c 6 > (app is using lazy tables/models, migration off) > > > David > > BTW: I have also encoutered this Rocket failure and web2py hanging (never > seen before) > > 2012-10-12 18:34:30,088 - Rocket.Errors.Thread-27 - ERROR - Unhandled > Error when serving connection: > Traceback (most recent call last): > > File "c:\java\web2py\gluon\rocket.py", line 1303, in run > self.run_app(conn) > > File "c:\java\web2py\gluon\rocket.py", line 1789, in run_app > self.environ = environ = self.build_environ(sock_file, conn) > > File "c:\java\web2py\gluon\rocket.py", line 1611, in build_environ > request = self.read_request_line(sock_file) > > File "c:\java\web2py\gluon\rocket.py", line 1370, in read_request_line > d = sock_file.readline() > > File "c:\python27\lib\socket.py", line 447, in readline > data = self._sock.recv(self._rbufsize) > > File "c:\python27\lib\socket.py", line 170, in _dummy > raise error(EBADF, 'Bad file descriptor') > > error: [Errno 9] Bad file descriptor > > > > >
--