Commit fa71cf9 1 parent 6ceeacd commit fa71cf9 Copy full SHA for fa71cf9
File tree 1 file changed +4
-1
lines changed
smoke-tests/src/test/java/io/opentelemetry/smoketest
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,10 @@ public abstract class AbstractTestContainerManager implements TestContainerManag
21
21
22
22
protected Map <String , String > getAgentEnvironment (String jvmArgsEnvVarName ) {
23
23
Map <String , String > environment = new HashMap <>();
24
- environment .put (jvmArgsEnvVarName , "-javaagent:/" + TARGET_AGENT_FILENAME );
24
+ // while modern JVMs understand linux container memory limits, they do not understand windows
25
+ // container memory limits yet, so we need to explicitly set max heap in order to prevent the
26
+ // JVM from taking too much memory and hitting the windows container memory limit
27
+ environment .put (jvmArgsEnvVarName , "-Xmx1g -javaagent:/" + TARGET_AGENT_FILENAME );
25
28
environment .put ("OTEL_BSP_MAX_EXPORT_BATCH_SIZE" , "1" );
26
29
environment .put ("OTEL_BSP_SCHEDULE_DELAY" , "10ms" );
27
30
environment .put ("OTEL_IMR_EXPORT_INTERVAL" , "1000" );
You can’t perform that action at this time.
0 commit comments