I'm running mod_ssl with a thousand virtual hosts.. and I notice that mod_ssl
appears to be a really large memory hog. My binary is statically linked with
DYNAMIC_MODULE_LIMIT=0 and it uses 11.7MB of memory without ssl and 49.9MB
with. It seems to me that this is more than just the overhead required to store
the configuration and keys and certificates? Where is all this memory going?
Here are the relevant memory statistics from my /proc/$PID/status file in
Linux:
without sll:
VmSize: 11792 kB
VmRSS: 10344 kB
VmData: 9440 kB
with ssl:
VmSize: 49960 kB
VmRSS: 48708 kB
VmData: 47608 kB
Here's an example VirtualHost section from my config file.. pretty simple, I
think.
####
<VirtualHost 192.168.30.30:*>
ServerName www.abstraction.tld
ServerAdmin [EMAIL PROTECTED]
DocumentRoot /web/a/b/abstraction/home
<IfDefine SSL>
SSLEngine on
SSlCertificateDB /etc/gather/httpd/certificate.db /web/a/b/abstraction
SSLCertificateKeyDB /etc/gather/httpd/certificate.db /web/a/b/abstraction
SSLOnlyOnPort 443
</IfDefine>
</VirtualHost>
####
Oh, the SSLCertificate{,Key}DB and SSLOnlyOnPort are my directives that I've
patched into the server. They shouldn't really affect memory usage, I don't
think.
Anybody have any insight to where the memory goes?
- David Harris
Principal Engineer, DRH Internet Services
______________________________________________________________________
Apache Interface to OpenSSL (mod_ssl) www.modssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]