Memory usage increases when proxy+ssl+large file
ASK QUESTIONS IN Forums:
- machine 1 with 128M-ram and lighttpd set up, and machine 2
- both machines have debian testing/lenny 4.0 (upgraded 31-07-2007), compiled lighttpd 1.4.16 (not from repository), on machine 1 with ssl support, on both without ipv6, with bzip2; configured and runs and works
- network setup: internet<-eth0->machine 1<-eth1->machine 2
- machine 1 replies to *example.org requests; forwards *test.example.org requests to machine 2
- machine 1 has 2 ports bound, ssl and http, both act for whole example.org; machine 2 only http
- machine 1 hosts big (434M) file at http://ftp.example.org/filez/big.zip, machine2 hosts the fame file at machine 1 hosts big (434M) file http://ftp.test.example.org/filez/big.zip
- if remote host requests file https://ftp.example.org/filez/big.zip (internet<->machine 1), headers and file will be sent
- if remote host requests either http://ftp.example.org/filez/big.zip or http://ftp.test.example.org/filez/big.zip , he will receive headers and file
- if remote host requests file https://ftp.test.example.org/filez/big.zip (internet<->machine 1<->machine 2), lighttpd will use as much RAM as the file size and never release it (seen in
top, memory usage gets bigger and bigger). Because server has much less memory, will occur out-of-memory-error and neither headers nor file will be sent.
I have found similar ticket, but it did not fit as I did not use cgi, but proxy, so posted this ticket.
Attaching my lighttpd.conf
Also available in: Atom