From a94cb8c8073c31b911020e8565bbd4bd60b37bad Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Tue, 24 May 2011 16:34:03 +0000
Subject: [PATCH] Fix OPENDJ-40: Upgrade to latest Grizzly
---
opendj3/opendj-ldap-toolkit/src/main/java/com/forgerock/opendj/ldap/tools/Utils.java | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/opendj3/opendj-ldap-toolkit/src/main/java/com/forgerock/opendj/ldap/tools/Utils.java b/opendj3/opendj-ldap-toolkit/src/main/java/com/forgerock/opendj/ldap/tools/Utils.java
index c8223b8..4408651 100644
--- a/opendj3/opendj-ldap-toolkit/src/main/java/com/forgerock/opendj/ldap/tools/Utils.java
+++ b/opendj3/opendj-ldap-toolkit/src/main/java/com/forgerock/opendj/ldap/tools/Utils.java
@@ -514,6 +514,22 @@
/**
+ * Sets default system property settings for the xxxrate performance tools.
+ */
+ static void setDefaultPerfToolProperties()
+ {
+ // Use SameThreadStrategy by default.
+ if (System
+ .getProperty("org.forgerock.opendj.transport.useWorkerThreads") == null)
+ {
+ System.setProperty(
+ "org.forgerock.opendj.transport.useWorkerThreads", "false");
+ }
+ }
+
+
+
+ /**
* Inserts line breaks into the provided buffer to wrap text at no more than
* the specified column width. Wrapping will only be done at space boundaries
* and if there are no spaces within the specified width, then wrapping will
--
Gitblit v1.10.0