@@ -71,6 +71,7 @@ class BasicExternalCluster extends Cluster {
71
71
private final Properties tcProperties = new Properties ();
72
72
private final Properties systemProperties = new Properties ();
73
73
private final String logConfigExt ;
74
+ private final int serverHeapSize ;
74
75
private final Supplier <StartupCommandBuilder > startupBuilder ;
75
76
76
77
private String displayName ;
@@ -87,7 +88,7 @@ class BasicExternalCluster extends Cluster {
87
88
88
89
BasicExternalCluster (Path clusterDirectory , int stripeSize , Set <Path > serverJars , String namespaceFragment ,
89
90
String serviceFragment , int clientReconnectWindow , int voterCount , boolean consistentStart , Properties tcProperties ,
90
- Properties systemProperties , String logConfigExt , Supplier <StartupCommandBuilder > startupBuilder ) {
91
+ Properties systemProperties , String logConfigExt , int serverHeapSize , Supplier <StartupCommandBuilder > startupBuilder ) {
91
92
if (Files .exists (clusterDirectory )) {
92
93
if (Files .isRegularFile (clusterDirectory )) {
93
94
throw new IllegalArgumentException ("Cluster directory is a file: " + clusterDirectory );
@@ -110,6 +111,7 @@ class BasicExternalCluster extends Cluster {
110
111
this .tcProperties .putAll (tcProperties );
111
112
this .systemProperties .putAll (systemProperties );
112
113
this .logConfigExt = logConfigExt ;
114
+ this .serverHeapSize = serverHeapSize ;
113
115
this .startupBuilder = startupBuilder ;
114
116
this .clientThread = Thread .currentThread ();
115
117
}
@@ -184,7 +186,7 @@ private void internalStart() throws Throwable {
184
186
Path kitLocation = installKit (stripeVerboseManager , kitDir , serverJars , stripeInstallationDir );
185
187
186
188
StripeConfiguration stripeConfig = new StripeConfiguration (serverDebugPorts , serverPorts , serverGroupPorts , serverNames ,
187
- stripeName , DEFAULT_SERVER_HEAP_MB , logConfigExt , systemProperties );
189
+ stripeName , serverHeapSize , logConfigExt , systemProperties );
188
190
StripeInstaller stripeInstaller = new StripeInstaller (interlock , stateManager , stripeVerboseManager , stripeConfig );
189
191
// Configure and install each server in the stripe.
190
192
for (int i = 0 ; i < stripeSize ; ++i ) {
0 commit comments