On Fri, Feb 05, 1999, Lai Yiu Fai wrote:
> It seems that the ssl_scache dbm file grows indefinitely. Is there a safe
> way to purge it? I try to move both .dir and .pag to other filenames and
> restart the server. The error_log gave a lot of errors stating cannot open
> SSLSessionCache DBM file for reading/writing. Is it only the way to stop
> the server, purge the ssl_scache and start the server again?
Hmmm... in ssl_engine_scache.c, line 375, there is ``if (nExpireCalls++ <
100)'' which means that sessions are expired every 100 HTTPS hits only. You
can reduce the number 100 to 10 or even to 1 to expire more often. This
doesn't shrink the DBM file, but it should prevent it from growing such fast.
Additionally you have to reduce the expire time with SSLSessionCacheTimeout,
because the expiring deletes only entries which were already expired, of
course. Let it me know whether this works for you.
Ralf S. Engelschall
[EMAIL PROTECTED]
www.engelschall.com
______________________________________________________________________
Apache Interface to SSLeay (mod_ssl) www.engelschall.com/sw/mod_ssl/
Official Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]