Limit cassandra memory usage
MODIFY
instrumentation/cassandra/cassandra-3.0/javaagent/src/test/groovy/CassandraClientTest.groovy
instrumentation/cassandra/cassandra-3.0/javaagent/src/test/groovy/CassandraClientTest.groovy
@@ -37,6 +37,8 @@ class CassandraClientTest extends AgentInstrumentationSpecification {
def setupSpec() {
cassandra = new GenericContainer("cassandra:3")
+ // limit memory usage
+ .withEnv("JVM_OPTS", "-Xmx128m -Xms128m")
.withExposedPorts(9042)
.withLogConsumer(new Slf4jLogConsumer(logger))
.withStartupTimeout(Duration.ofSeconds(120))

MODIFY
instrumentation/cassandra/cassandra-4.0/javaagent/src/test/groovy/CassandraClientTest.groovy
instrumentation/cassandra/cassandra-4.0/javaagent/src/test/groovy/CassandraClientTest.groovy
@@ -32,6 +32,8 @@ class CassandraClientTest extends AgentInstrumentationSpecification {
def setupSpec() {
cassandra = new GenericContainer("cassandra:4.0")
+ // limit memory usage
+ .withEnv("JVM_OPTS", "-Xmx128m -Xms128m")
.withExposedPorts(9042)
.withLogConsumer(new Slf4jLogConsumer(logger))
.withStartupTimeout(Duration.ofSeconds(120))

Limit cassandra memory usage (#6068)