Skip to content

Commit

Permalink
Extend admin port connection limits (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
vharseko authored Jul 19, 2023
1 parent bffeb78 commit 6b6d725
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ protected TCPNIOTransport newInstance() {
// Enabled by default.
builder.setReuseAddress(Boolean.parseBoolean(reuseAddressStr));
}
builder.setMemoryManager(new PooledMemoryManager(true));
//builder.setMemoryManager(new PooledMemoryManager(true));


final TCPNIOTransport transport = builder.build();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ protected TCPNIOTransport newInstance() {
builder.setReuseAddress(Boolean.parseBoolean(reuseAddressStr));
}
// Force usage of PooledMemoryManager which allows to use grizzly's buffers across threads.
builder.setMemoryManager(new PooledMemoryManager(true));
//builder.setMemoryManager(new PooledMemoryManager(true));

final TCPNIOTransport transport = builder.build();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
import org.opends.server.core.DirectoryServer;
import org.opends.server.core.ServerContext;
import org.opends.server.core.SynchronousStrategy;
import org.opends.server.core.WorkQueueStrategy;
import org.opends.server.types.DirectoryException;
import org.opends.server.types.FilePermission;
import org.opends.server.types.InitializationException;
Expand Down Expand Up @@ -98,7 +99,7 @@ public final class AdministrationConnector implements
/** 5 Mb. */
private static final int ADMIN_MAX_REQUEST_SIZE = 5000000;
private static final int ADMIN_WRITE_BUFFER_SIZE = 4096;
private static final int ADMIN_NUM_REQUEST_HANDLERS = 1;
private static final int ADMIN_NUM_REQUEST_HANDLERS = 4;
private static final boolean ADMIN_SEND_REJECTION_NOTICE = true;
private static final boolean ADMIN_USE_TCP_KEEP_ALIVE = true;
private static final boolean ADMIN_USE_TCP_NO_DELAY = true;
Expand Down Expand Up @@ -132,7 +133,7 @@ public void initializeAdministrationConnector(

// Administration Connector uses the LDAP connection handler implementation
adminConnectionHandler = new LDAPConnectionHandler2(
new SynchronousStrategy(), FRIENDLY_NAME);
new WorkQueueStrategy(), FRIENDLY_NAME);
adminConnectionHandler.initializeConnectionHandler(serverContext, new LDAPConnectionCfgAdapter(config));
adminConnectionHandler.setAdminConnectionHandler();

Expand Down

0 comments on commit 6b6d725

Please sign in to comment.