--- org/gudy/azureus2/core3/config/COConfigurationManager.java.~1.34.~ 2006-01-19 21:27:18.000000000 -0500
+++ org/gudy/azureus2/core3/config/COConfigurationManager.java 2006-02-09 00:01:46.000000000 -0500
@@ -39,7 +39,7 @@
public static final int CONFIG_CACHE_SIZE_MAX_MB;
static{
- long max_mem_bytes = Runtime.getRuntime().maxMemory();
+ long max_mem_bytes = Math.min (Runtime.getRuntime().maxMemory(), 64*1024*1024);
long mb_1 = 1*1024*1024;
long mb_32 = 32*mb_1;
CONFIG_CACHE_SIZE_MAX_MB = (int)(( max_mem_bytes - mb_32 )/mb_1);