From 06a2720e00f89a73a5617aabc4ee91cbac62fbee Mon Sep 17 00:00:00 2001
From: ludovicp <ludovicp@localhost>
Date: Mon, 05 Jul 2010 12:08:04 +0000
Subject: [PATCH] Fix performance regression in Import, an issue with --append more and an issue with the way the DB config was used during import (Issue #4473). Memory allocation for import is now based on the usable memory for offline mode and configure DB cache size for online. Computation of usable JVM currently only works properly with Sun JVM for ParallelGC and CMSGC.
---
opends/src/server/org/opends/server/backends/jeb/importLDIF/Suffix.java | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/opends/src/server/org/opends/server/backends/jeb/importLDIF/Suffix.java b/opends/src/server/org/opends/server/backends/jeb/importLDIF/Suffix.java
index 5268ce9..077987e 100644
--- a/opends/src/server/org/opends/server/backends/jeb/importLDIF/Suffix.java
+++ b/opends/src/server/org/opends/server/backends/jeb/importLDIF/Suffix.java
@@ -22,7 +22,7 @@
* CDDL HEADER END
*
*
- * Copyright 2009 Sun Microsystems, Inc.
+ * Copyright 2009-2010 Sun Microsystems, Inc.
*/
package org.opends.server.backends.jeb.importLDIF;
@@ -54,7 +54,7 @@
private final EntryContainer srcEntryContainer;
private EntryContainer entryContainer;
private final Object synchObject = new Object();
- private static final int PARENT_ID_SET_SIZE = 16 * KB;
+ private static final int PARENT_ID_SET_SIZE = 16 * 1024;
private ConcurrentHashMap<DN, CountDownLatch> pendingMap =
new ConcurrentHashMap<DN, CountDownLatch>();
private Set<DN> parentSet = new HashSet<DN>(PARENT_ID_SET_SIZE);
--
Gitblit v1.10.0