# OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release

**URL:** <https://discuss.elastic.co/t/openjdk-64-bit-server-vm-warning-option-useconcmarksweepgc-was-deprecated-in-version-9-0-and-will-likely-be-removed-in-a-future-release/304686>\
**Category:** Logstash\
**Created:** [May 13, 2022, 1:27pm UTC](https://discuss.elastic.co/t/openjdk-64-bit-server-vm-warning-option-useconcmarksweepgc-was-deprecated-in-version-9-0-and-will-likely-be-removed-in-a-future-release/304686 "2022-05-13T13:27:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Onsrm](https://avatars.discourse-cdn.com/v4/letter/o/cc9497/32.png) [@Onsrm](https://discuss.elastic.co/u/Onsrm)\
**Post date:** [May 13, 2022, 1:27pm UTC](https://discuss.elastic.co/t/openjdk-64-bit-server-vm-warning-option-useconcmarksweepgc-was-deprecated-in-version-9-0-and-will-likely-be-removed-in-a-future-release/304686/1 "2022-05-13T13:27:55Z")

</div>

hello  
when i use this command bin/logstash -f /etc/logstash/conf.d/apache.conf  
i get this error :  
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.  
WARNING: Could not find logstash.yml which is typically located in $LS\_HOME/config or /etc/logstash. You can specify the path using --path.settings. Continuing using the defaults  
Could not find log4j2 configuration at path /usr/share/logstash/config/log4j2.properties. Using default config which logs errors to the console  
[INFO] 2022-05-13 14:16:54.064 [main] runner - Starting Logstash {"logstash.version"=\>"7.17.3", "jruby.version"=\>"jruby 9.2.20.1 (2.5.8) 2021-11-30 2a2962fbd1 OpenJDK 64-Bit Server VM 11.0.14.1+1 on 11.0.14.1+1 +indy +jit [linux-x86\_64]"}  
[INFO] 2022-05-13 14:16:54.109 [main] runner - JVM bootstrap flags: [-Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djruby.compile.invokedynamic=true, -Djruby.jit.threshold=0, -Djruby.regexp.interruptible=true, -XX:+HeapDumpOnOutOfMemoryError, -Djava.security.egd=file:/dev/urandom, -Dlog4j2.isThreadContextMapInheritable=true]  
Your settings are invalid. Reason: Path "/usr/share/logstash/data" must be a writable directory. It is not writable.  
[FATAL] 2022-05-13 14:16:54.290 [main] Logstash - Logstash stopped processing because of an error: (SystemExit) exit  
org.jruby.exceptions.SystemExit: (SystemExit) exit  
at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:747) ~[jruby-complete-9.2.20.1.jar:?]  
at org.jruby.RubyKernel.exit(org/jruby/RubyKernel.java:710) ~[jruby-complete-9.2.20.1.jar:?]  
at usr.share.logstash.lib.bootstrap.environment.(/usr/share/logstash/lib/bootstrap/environment.rb:94) ~[?:?]

elasticsearch config :  
network.host: 127.0.0.1

# By default Elasticsearch listens for HTTP traffic on the first free port it

# finds starting at 9200. Set a specific HTTP port here:

# 

http.port: 9200

# 

# For more information, consult the network module documentation.

# 

# --------------------------------- Discovery ----------------------------------

# 

# Pass an initial list of hosts to perform discovery when this node is started:

#The default list of hosts is ["192.168.100.200", "[::1]"]

# 

#discovery.seed\_hosts: ["host1", "host2"]  
discovery.type: single-node

# Bootstrap the cluster using an initial set of master-eligible nodes:

kibana config :  
server.port: 5601

# Specifies the address to which the Kibana server will bind. IP addresses and \>

# The default is 'localhost', which usually means remote machines will not be a\>

# To allow connections from remote users, set this parameter to a non-loopback \>

server.host: "0.0.0.0"

# The URLs of the Elasticsearch instances to use for all your queries.

elasticsearch.hosts: ["[http://0.0.0.0:9200](http://0.0.0.0:9200)"]

apache config :  
input {  
file { path =\> "/var/log/apache2/access.log","/var/log/apache2/error.log" }  
type =\>"apache2"  
}  
filter {  
grok {  
match =\> { "message" =\> "%{COMBINEDAPACHELOG}" }  
overwrite=\> ["message"] }

```
date {
    match => ["timestamp", "dd/MMM/yyyy:HH:mm:ss Z"]
}

mutate {
    convert => {
        "response" => "integer"
        "bytes" => "integer"
    }
}

```

}  
output {  
elasticsearch {  
hosts =\> "0.0.0.0:9200"  
index =\> "apache-%{+YYYY.MM.dd}"  
document\_type ==\> "apache\_logs"  
}  
}

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 16, 2022, 12:24am UTC](https://discuss.elastic.co/t/openjdk-64-bit-server-vm-warning-option-useconcmarksweepgc-was-deprecated-in-version-9-0-and-will-likely-be-removed-in-a-future-release/304686/2 "2022-05-16T00:24:18Z")

</div>

Please format your code/logs/config using the `</>` button, or markdown style back ticks. It helps to make things easy to read which helps us help you 🙂

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [May 16, 2022, 2:33am UTC](https://discuss.elastic.co/t/openjdk-64-bit-server-vm-warning-option-useconcmarksweepgc-was-deprecated-in-version-9-0-and-will-likely-be-removed-in-a-future-release/304686/3 "2022-05-16T02:33:23Z")

</div>

> [@Onsrm](#):
>
> Your settings are invalid. Reason: Path "/usr/share/logstash/data" must be a writable directory. It is not writable.

You need to either change path.data in logstash.yml or make sure the user running logstash can write to that directory.

The deprecation warning will need to be addressed in the future, but for now it is just a warning.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 13, 2022, 2:33am UTC](https://discuss.elastic.co/t/openjdk-64-bit-server-vm-warning-option-useconcmarksweepgc-was-deprecated-in-version-9-0-and-will-likely-be-removed-in-a-future-release/304686/4 "2022-06-13T02:33:30Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
