When using "free" or "top" to check what is actually using memory on the MBWE, the biggest consumer (~12MB total, ~8MB resident - out of 32MB!) is the MBWE's Perl-based web interface.
I'd prefer not to disable this altogether, but rather find a way to have it loaded "on demand" instead of it being resident all the time. I'll be happy to accept a slight delay in accessing the web interface if I can put the 8MB to good use for other stuff ;-)
So at this point I have 2 ideas that I'd like feedback on:
- change lighttpd setup so that is is started by inetd whenever a connection is made on port 80, instead of permanently running as a daemon. This way, both lighttpd and perl are only loaded when needed. What are the downsides or this approach?
- if keeping lighttpd resident at all time, change the lighttpd config to not preload the perl stuff (btw, not knowing lighttpd, I could use tips on how to do this ;-). Downsides for this option?
Any feedback appreciated - thanks!