From 9ff69f265dae8f0647fb9c204fda070eafe25613 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Wed, 13 Jun 2012 21:05:11 +0000
Subject: [PATCH] Fix OPENDJ-520: Worker threads are too greedy when caching memory used for encoding/decoding entries and protocol messages

---
 opends/src/server/org/opends/server/util/ServerConstants.java |    9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/opends/src/server/org/opends/server/util/ServerConstants.java b/opends/src/server/org/opends/server/util/ServerConstants.java
index c5b9d10..a7c55ce 100644
--- a/opends/src/server/org/opends/server/util/ServerConstants.java
+++ b/opends/src/server/org/opends/server/util/ServerConstants.java
@@ -23,7 +23,7 @@
  *
  *
  *      Copyright 2006-2010 Sun Microsystems, Inc.
- *      Portions Copyright 2010-2011 ForgeRock AS
+ *      Portions Copyright 2010-2012 ForgeRock AS
  */
 package org.opends.server.util;
 
@@ -2039,6 +2039,13 @@
 
 
   /**
+   * Default maximum size for cached protocol/entry encoding buffers.
+   */
+  public static final int DEFAULT_MAX_INTERNAL_BUFFER_SIZE = 32 * 1024;
+
+
+
+  /**
    * The OID for the attribute type that represents the "objectclass" attribute.
    */
   public static final String OBJECTCLASS_ATTRIBUTE_TYPE_OID = "2.5.4.0";

--
Gitblit v1.10.0