Set smoke tests xmx to 512m and backend to 128m
MODIFY
smoke-tests/src/test/java/io/opentelemetry/smoketest/AbstractTestContainerManager.java
smoke-tests/src/test/java/io/opentelemetry/smoketest/AbstractTestContainerManager.java
@@ -22,7 +22,7 @@ public abstract class AbstractTestContainerManager implements TestContainerManag
// while modern JVMs understand linux container memory limits, they do not understand windows
// container memory limits yet, so we need to explicitly set max heap in order to prevent the
// JVM from taking too much memory and hitting the windows container memory limit
- environment.put(jvmArgsEnvVarName, "-Xmx1g -javaagent:/" + TARGET_AGENT_FILENAME);
+ environment.put(jvmArgsEnvVarName, "-Xmx512m -javaagent:/" + TARGET_AGENT_FILENAME);
environment.put("OTEL_BSP_MAX_EXPORT_BATCH_SIZE", "1");
environment.put("OTEL_BSP_SCHEDULE_DELAY", "10ms");
environment.put("OTEL_METRIC_EXPORT_INTERVAL", "1000");

MODIFY
smoke-tests/src/test/java/io/opentelemetry/smoketest/LinuxTestContainerManager.java
smoke-tests/src/test/java/io/opentelemetry/smoketest/LinuxTestContainerManager.java
@@ -88,6 +88,7 @@ public class LinuxTestContainerManager extends AbstractTestContainerManager {
new GenericContainer<>(DockerImageName.parse(targetImageName))
.withStartupTimeout(Duration.ofMinutes(5))
.withExposedPorts(ports.toArray(new Integer[0]))
+ .withEnv("JAVA_TOOL_OPTIONS", "-Xmx128m")
.withNetwork(network)
.withLogConsumer(output)
.withLogConsumer(new Slf4jLogConsumer(appLogger))

MODIFY
smoke-tests/src/test/java/io/opentelemetry/smoketest/windows/WindowsTestContainerManager.java
smoke-tests/src/test/java/io/opentelemetry/smoketest/windows/WindowsTestContainerManager.java
@@ -89,6 +89,7 @@ public class WindowsTestContainerManager extends AbstractTestContainerManager {
command
.withAliases(BACKEND_ALIAS)
.withExposedPorts(ExposedPort.tcp(BACKEND_PORT))
+ .withEnv("JAVA_TOOL_OPTIONS=-Xmx128m")
.withHostConfig(
HostConfig.newHostConfig()
.withAutoRemove(true)

Set smoke tests xmx to 512m and backend to 128m (#5772)