← Back to team overview

c2c-oerpscenario team mailing list archive

Re: [Bug 522230] Re: ftp_server memory error

 

On Friday 31 December 2010, you wrote:
> Can you please write the steps to reproduce the error. So i can proceed
> further in this bug. Hope you will cooperate with this.
> 
> Thanks.

Note: if that's a MemoryError[1], it may be caused by *any* memory leaks 
within the python process (the server). And then, the memory error will just 
appear at a random trace. In the code you mentioned, the "e" variable should 
just need a few bytes, so it's highly unlikely that the poll() function 
received bad arguments.

Although, I believe that FTP (in the v5.x series) suffers from heavy memory 
usage itself, because it tries to load the whole data chunk in memory before 
sending it. That, /may/ be linked to the MemoryError, but we cannot be sure it 
is the real cause.
This has been improved in v6.0, for FTP and WebDAV (still, not for RPC 
transfers of files). It is an API design issue so it _cannot_ be backported to 
v5.0 .


[1] 
http://docs.python.org/library/exceptions.html?highlight=memoryerror#exceptions.MemoryError

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/522230

Title:
  ftp_server memory error

Status in OpenObject Addons Modules:
  Incomplete

Bug description:
  branch-server 1902
branch-addons official 2580

although this service is actually NOT accessed by anyone this error occured - restart necesary

Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib64/python2.5/threading.py", line 486, in __bootstrap_inner
    self.run()
  File "/home/terp/OpenERP/branch/server/5.0/bin/addons/document/ftpserver/__init__.py", line 93, in run
    ftpd.serve_forever()
  File "/home/terp/OpenERP/branch/server/5.0/bin/addons/document/ftpserver/ftpserver.py", line 3001, in serve_forever
    asyncore.loop(timeout=1.0, use_poll=False)
  File "/usr/lib64/python2.5/asyncore.py", line 191, in loop
    poll_fun(timeout, map)
  File "/usr/lib64/python2.5/asyncore.py", line 116, in poll
    e.append(fd)
MemoryError





References