Languages

Archived - Mac OS X Server: How to change the default BerkeleyDB cache size

In Mac OS X Server 10.3, the default BerkeleyDB cache size is 4 MB. In Mac OS X Server 10.4, the BerkeleyDB cache size depends on the amount of RAM installed on your computer when creating the LDAP master.

If your computer has 256 MB of RAM, the default BerkeleyDB cache size will be 16 MB. If your computer has more than 256 MB of RAM up to 512 MB, the cache size will be 32 MB. If your computer has more than 512 MB of RAM, the default cache size will be 64 MB.

This article has been archived and is no longer updated by Apple.

Changing the cache size

If you've added more RAM to the server, you can manually increase the BerkeleyDB cache size, using the RAM to cache ratios described above as your guideline. This can also help improve LDAP performance.

To change the BerkeleyDB cache size in either Mac OS X Server version 10.3 or 10.4, open the file /var/db/openldap/openldap-data/DB_CONFIG in your preferred text editor, and edit the file by typing one of the corresponding values below:

  • For 4 MB: set_cachesize 0 4194304 1
  • For 16 MB: set_cachesize 0 16777216 1
  • For 32 MB: set_cachesize 0 33554432 1
  • For 64 MB: set_cachesize 0 67108864 1

Save the file, then restart the server to apply your change.

Last Modified: Jul 13, 2012
Helpful?
Yes
No
Not helpful Somewhat helpful Helpful Very helpful Solved my problem
Print this page
  • Last Modified: Jul 13, 2012
  • Article: HT3112
  • Views:

    9955
  • Rating:
    • 60.0

    (495 Responses)

Additional Product Support Information

Start a Discussion
in Apple Support Communities
See all questions on this article See all questions I have asked