# Java HotSpot(TM) 64-Bit Server VM warning: Cannot open file logs/gc.log due to Permission denied

**URL:** https://discuss.elastic.co/t/java-hotspot-tm-64-bit-server-vm-warning-cannot-open-file-logs-gc-log-due-to-permission-denied/177780
**Category:** Elasticsearch
**Created:** [April 22, 2019, 12:53am UTC](https://discuss.elastic.co/t/java-hotspot-tm-64-bit-server-vm-warning-cannot-open-file-logs-gc-log-due-to-permission-denied/177780 "2019-04-22T00:53:56Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Maesuri\_Fauziah](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maesuri_fauziah/32/44504_2.png) [@Maesuri\_Fauziah](https://discuss.elastic.co/u/Maesuri_Fauziah)
#### Post date: [April 22, 2019, 12:53am UTC](https://discuss.elastic.co/t/java-hotspot-tm-64-bit-server-vm-warning-cannot-open-file-logs-gc-log-due-to-permission-denied/177780/1 "2019-04-22T00:53:56Z")

</div>

I just learned about elasticsearch, and I was confused how to overcome the problems that I am currently experiencing. may I ask for help:menangis::berdoa:

 ![Capture3](https://us1.discourse-cdn.com/elastic/original/3X/4/1/413a15bb6574ee27e240cfed34df7ccfc774b225.png)

---

<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: [April 22, 2019, 2:04am UTC](https://discuss.elastic.co/t/java-hotspot-tm-64-bit-server-vm-warning-cannot-open-file-logs-gc-log-due-to-permission-denied/177780/2 "2019-04-22T02:04:24Z")

</div>

Welcome!

A quick suggestion is to not post pictures of text, they are difficult to read and some people may not be even able to see them 🙂

Can you copy and paste the text directly? 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: ![Maesuri\_Fauziah](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maesuri_fauziah/32/44504_2.png) [@Maesuri\_Fauziah](https://discuss.elastic.co/u/Maesuri_Fauziah)
#### Post date: [April 22, 2019, 2:28am UTC](https://discuss.elastic.co/t/java-hotspot-tm-64-bit-server-vm-warning-cannot-open-file-logs-gc-log-due-to-permission-denied/177780/3 "2019-04-22T02:28:21Z")

</div>

Okey thank you😊

Pada tanggal Sen, 22 Apr 2019 09:14, Mark Walkom via Discuss the Elastic Stack [elastic@discoursemail.com](mailto:elastic@discoursemail.com) menulis:

---

<div class="post-metadata">

### Author: ![Maesuri\_Fauziah](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maesuri_fauziah/32/44504_2.png) [@Maesuri\_Fauziah](https://discuss.elastic.co/u/Maesuri_Fauziah)
#### Post date: [April 22, 2019, 4:13am UTC](https://discuss.elastic.co/t/java-hotspot-tm-64-bit-server-vm-warning-cannot-open-file-logs-gc-log-due-to-permission-denied/177780/4 "2019-04-22T04:13:58Z")

</div>

```
Microsoft Windows [Version 10.0.17134.523]
(c) 2018 Microsoft Corporation. All rights reserved.

C:\Users\ASUS>cd C:\Program Files\Elastic\Elasticsearch\7.0.0\bin

C:\Program Files\Elastic\Elasticsearch\7.0.0\bin>elasticsearch
[2019-04-22T11:06:12,909][INFO][o.e.e.NodeEnvironment] [LAPTOP-IH21NM4U] using [1] data paths, mounts [[OS (C:)]], net usable_space [172.2gb], net total_space [235.6gb], types [NTFS]
[2019-04-22T11:06:13,018][INFO][o.e.e.NodeEnvironment] [LAPTOP-IH21NM4U] heap size [1.8gb], compressed ordinary object pointers [true]
[2019-04-22T11:06:14,370][INFO][o.e.n.Node] [LAPTOP-IH21NM4U] node name [LAPTOP-IH21NM4U], node ID [P7otjqXgTIOrUiCuCr1xJg]
[2019-04-22T11:06:14,371][INFO][o.e.n.Node] [LAPTOP-IH21NM4U] version[7.0.0], pid[12272], build[unknown/unknown/b7e28a7/2019-04-05T22:55:32.697037Z], OS[Windows 10/10.0/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_201/25.201-b09]
[2019-04-22T11:06:14,371][INFO][o.e.n.Node] [LAPTOP-IH21NM4U] JVM home [C:\Program Files\Java\jdk1.8.0_201\jre]
[2019-04-22T11:06:14,372][INFO][o.e.n.Node] [LAPTOP-IH21NM4U] JVM arguments [-XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=C:\Users\ASUS\AppData\Local\Temp\elasticsearch, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -XX:+PrintGCDetails, -XX:+PrintGCDateStamps, -XX:+PrintTenuringDistribution, -XX:+PrintGCApplicationStoppedTime, -Xloggc:logs/gc.log, -XX:+UseGCLogFileRotation, -XX:NumberOfGCLogFiles=32, -XX:GCLogFileSize=64m, -Xmx1959m, -Xms1959m, -Dio.netty.allocator.type=pooled, -Delasticsearch, -Des.path.home=C:\Program Files\Elastic\Elasticsearch\7.0.0, -Des.path.conf=C:\ProgramData\Elastic\Elasticsearch\config]
Java HotSpot(TM) 64-Bit Server VM warning: Cannot open file logs/gc.log due to Permission denied

[2019-04-22T11:07:21,466][INFO][o.e.p.PluginsService] [LAPTOP-IH21NM4U] loaded module [aggs-matrix-stats]
[2019-04-22T11:07:21,467][INFO][o.e.p.PluginsService] [LAPTOP-IH21NM4U] loaded module [analysis-common]
[2019-04-22T11:07:21,467][INFO][o.e.p.PluginsService] [LAPTOP-IH21NM4U] loaded module [ingest-common]
[2019-04-22T11:07:21,469][INFO][o.e.p.PluginsService] [LAPTOP-IH21NM4U] loaded module [ingest-geoip]
[2019-04-22T11:07:21,469][INFO][o.e.p.PluginsService] [LAPTOP-IH21NM4U] loaded module [ingest-user-agent]
[2019-04-22T11:07:21,469][INFO][o.e.p.PluginsService] [LAPTOP-IH21NM4U] loaded module [lang-expression]
[2019-04-22T11:07:21,470][INFO][o.e.p.PluginsService] [LAPTOP-IH21NM4U] loaded module [lang-mustache]
[2019-04-22T11:07:21,470][INFO][o.e.p.PluginsService] [LAPTOP-IH21NM4U] loaded module [lang-painless]
[2019-04-22T11:07:21,471][INFO][o.e.p.PluginsService] [LAPTOP-IH21NM4U] loaded module [mapper-extras]
[2019-04-22T11:07:21,472][INFO][o.e.p.PluginsService] [LAPTOP-IH21NM4U] loaded module [parent-join]
[2019-04-22T11:07:21,472][INFO][o.e.p.PluginsService] [LAPTOP-IH21NM4U] loaded module [percolator]
[2019-04-22T11:07:21,473][INFO][o.e.p.PluginsService] [LAPTOP-IH21NM4U] loaded module [rank-eval]
[2019-04-22T11:07:21,473][INFO][o.e.p.PluginsService] [LAPTOP-IH21NM4U] loaded module [reindex]
[2019-04-22T11:07:21,474][INFO][o.e.p.PluginsService] [LAPTOP-IH21NM4U] loaded module [repository-url]
[2019-04-22T11:07:21,474][INFO][o.e.p.PluginsService] [LAPTOP-IH21NM4U] loaded module [transport-netty4]
[2019-04-22T11:07:21,475][INFO][o.e.p.PluginsService] [LAPTOP-IH21NM4U] loaded module [x-pack-ccr]
[2019-04-22T11:07:21,477][INFO][o.e.p.PluginsService] [LAPTOP-IH21NM4U] loaded module [x-pack-core]
[2019-04-22T11:07:21,477][INFO][o.e.p.PluginsService] [LAPTOP-IH21NM4U] loaded module [x-pack-deprecation]
[2019-04-22T11:07:21,477][INFO][o.e.p.PluginsService] [LAPTOP-IH21NM4U] loaded module [x-pack-graph]
[2019-04-22T11:07:21,478][INFO][o.e.p.PluginsService] [LAPTOP-IH21NM4U] loaded module [x-pack-ilm]
[2019-04-22T11:07:21,478][INFO][o.e.p.PluginsService] [LAPTOP-IH21NM4U] loaded module [x-pack-logstash]
[2019-04-22T11:07:21,478][INFO][o.e.p.PluginsService] [LAPTOP-IH21NM4U] loaded module [x-pack-ml]
[2019-04-22T11:07:21,479][INFO][o.e.p.PluginsService] [LAPTOP-IH21NM4U] loaded module [x-pack-monitoring]
[2019-04-22T11:07:21,479][INFO][o.e.p.PluginsService] [LAPTOP-IH21NM4U] loaded module [x-pack-rollup]
[2019-04-22T11:07:21,479][INFO][o.e.p.PluginsService] [LAPTOP-IH21NM4U] loaded module [x-pack-security]
[2019-04-22T11:07:21,480][INFO][o.e.p.PluginsService] [LAPTOP-IH21NM4U] loaded module [x-pack-sql]
[2019-04-22T11:07:21,480][INFO][o.e.p.PluginsService] [LAPTOP-IH21NM4U] loaded module [x-pack-watcher]
[2019-04-22T11:07:21,484][INFO][o.e.p.PluginsService] [LAPTOP-IH21NM4U] no plugins loaded
```

---

<div class="post-metadata">

### Author: ![Maesuri\_Fauziah](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/maesuri_fauziah/32/44504_2.png) [@Maesuri\_Fauziah](https://discuss.elastic.co/u/Maesuri_Fauziah)
#### Post date: [April 22, 2019, 4:25am UTC](https://discuss.elastic.co/t/java-hotspot-tm-64-bit-server-vm-warning-cannot-open-file-logs-gc-log-due-to-permission-denied/177780/5 "2019-04-22T04:25:15Z")

</div>

can help me?  
what is the solution?

---

<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: [May 20, 2019, 4:25am UTC](https://discuss.elastic.co/t/java-hotspot-tm-64-bit-server-vm-warning-cannot-open-file-logs-gc-log-due-to-permission-denied/177780/6 "2019-05-20T04:25:27Z")

</div>

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