Ticket #1265 (new defect)

Opened 1 year ago

Last modified 1 week ago

SSL + file upload = lots of memory

Reported by: mlcreech Assigned to: jan
Priority: normal Milestone: 1.5.0
Component: core Version: 1.4.19
Severity: major Keywords:
Cc: Blocking:
Need Feedback: 1

Description

I'm using lighttpd (1.4.15) in an embedded device, and attempting to upload a file (~6MB). Without SSL enabled, lighttpd doesn't use much more than 6-7MB (lighttpd process grows by <1MB, ~6MB are written to /tmp). With SSL enabled, lighttpd's memory usage quickly jumps to over 26MB (lighttpd process grows to 20+MB, ~6MB are written to /tmp), exhausting all available memory and bringing the device to a grinding halt.

I also noticed that the <1MB of extra size on a non-SSL upload goes away once the upload is complete; in contrast, if I upload a smaller file (900kB) via SSL, the process size grows by ~7MB and stays that large, even after the connection is closed. However, uploading a similarly-sized file again does not cause it to grow any larger, i.e. the memory doesn't seem to be permanently leaked.

I found this ticket:

http://trac.lighttpd.net/trac/ticket/881

which sounds somewhat similar, but no additional information was ever posted about a potential cause. Any ideas? Thanks!

Attachments

04-limit-ssl-mem.patch (1.1 kB) - added by mlcreech on 07/25/2007 05:43:45 PM.
File which fixes this on my system (though it's probably not a "proper" fix)
najdyh-najd-al7oob43.gif (24.6 kB) - added by anonymous on 08/27/2007 05:21:51 PM.

Change History

07/25/2007 05:43:45 PM changed by mlcreech

  • attachment 04-limit-ssl-mem.patch added.

File which fixes this on my system (though it's probably not a "proper" fix)

08/27/2007 05:21:51 PM changed by anonymous

  • attachment najdyh-najd-al7oob43.gif added.

12/13/2007 04:27:00 PM changed by anonymous

Someone should remove the Propaganda: najdyh-najd-al7oob43.gif

(in reply to: ↑ description ) 07/08/2008 11:35:34 PM changed by anonymous

  • version changed from 1.4.15 to 1.4.19.
  • pending set to 1.

I have exactly the same problem. Though, I'm not entirely sure that it's really a bug - if it is, is there going to be a fix for this?


Add/Change #1265 (SSL + file upload = lots of memory)




Change Properties