Limit elasticsearch memory usage (#4892)
This commit is contained in:
parent
a65e9633ba
commit
b1e2c3ced6
|
|
@ -39,6 +39,8 @@ class ElasticsearchRest5Test extends AgentInstrumentationSpecification {
|
|||
} else {
|
||||
elasticsearch = new ElasticsearchContainer("docker.elastic.co/elasticsearch/elasticsearch-oss:6.8.16")
|
||||
}
|
||||
// limit memory usage
|
||||
elasticsearch.withEnv("ES_JAVA_OPTS", "-Xmx256m -Xms256m")
|
||||
elasticsearch.start()
|
||||
|
||||
httpHost = HttpHost.create(elasticsearch.getHttpHostAddress())
|
||||
|
|
|
|||
|
|
@ -33,6 +33,8 @@ class ElasticsearchRest6Test extends AgentInstrumentationSpecification {
|
|||
|
||||
def setupSpec() {
|
||||
elasticsearch = new ElasticsearchContainer("docker.elastic.co/elasticsearch/elasticsearch-oss:6.8.16")
|
||||
// limit memory usage
|
||||
elasticsearch.withEnv("ES_JAVA_OPTS", "-Xmx256m -Xms256m")
|
||||
elasticsearch.start()
|
||||
|
||||
httpHost = HttpHost.create(elasticsearch.getHttpHostAddress())
|
||||
|
|
|
|||
|
|
@ -34,6 +34,8 @@ class ElasticsearchRest7Test extends AgentInstrumentationSpecification {
|
|||
|
||||
def setupSpec() {
|
||||
elasticsearch = new ElasticsearchContainer("docker.elastic.co/elasticsearch/elasticsearch-oss:7.10.2")
|
||||
// limit memory usage
|
||||
elasticsearch.withEnv("ES_JAVA_OPTS", "-Xmx256m -Xms256m")
|
||||
elasticsearch.start()
|
||||
|
||||
httpHost = HttpHost.create(elasticsearch.getHttpHostAddress())
|
||||
|
|
|
|||
Loading…
Reference in New Issue