Skip to content

Commit

Permalink
Limit cassandra memory usage (#6068)
Browse files Browse the repository at this point in the history
  • Loading branch information
laurit authored May 19, 2022
1 parent f3b25e3 commit a2a8c11
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit a2a8c11

Please sign in to comment.