# Beginners issue - improperly formatted jvm option

**URL:** <https://forum.opensearch.org/t/beginners-issue-improperly-formatted-jvm-option/17192>\
**Category:** OpenSearch\
**Created:** [December 20, 2023, 3:19pm UTC](https://forum.opensearch.org/t/beginners-issue-improperly-formatted-jvm-option/17192 "2023-12-20T15:19:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![captainoutrageous](https://avatars.discourse-cdn.com/v4/letter/c/a183cd/32.png) [@captainoutrageous](https://forum.opensearch.org/u/captainoutrageous)\
**Post date:** [December 20, 2023, 3:19pm UTC](https://forum.opensearch.org/t/beginners-issue-improperly-formatted-jvm-option/17192/1 "2023-12-20T15:19:13Z")

</div>

**Versions** (relevant - OpenSearch/Dashboard/Server OS/Browser):  
latest

**Describe the issue** :

setting up my first greylog server on ubuntu 22.04, this is all new to me, so I apologize if this is something that should be simple.

when running sudo systemctl status opensearch.service

I get the error:  
Dec 20 14:19:26 greylog1 systemd-entrypoint[19181]: [1]: encountered improperly formatted JVM option in [/etc/opensearch/jvm.options] on line number [94]: [sudo nano /etc/opensearch/jvm.options]  
Dec 20 14:19:26 greylog systemd[1]: opensearch.service: Main process exited, code=exited, status=1/FAILURE  
Dec 20 14:19:26 greylog systemd[1]: opensearch.service: Failed with result ‘exit-code’.  
Dec 20 14:19:26 greylog systemd[1]: Failed to start OpenSearch.  
Dec 20 14:19:26 greylog systemd[1]: opensearch.service: Consumed 1.710s CPU time.

I then do : sudo nano /etc/opensearch/jvm.options  
and on line 94 I find:

(94)-Djava.security.policy=file:///etc/opensearch/opensearch-performance-analyzer/opensearch\_security.policy  
–add-opens=jdk.attach/sun.tools.attach=ALL-UNNAMED  
-Xms1g  
-Xmx1g

does anyone see the actual issue, or can translate it for me?

**Configuration** :

**Relevant Logs or Screenshots** :

---

<div class="post-metadata">

**Author:** ![radu.gheorghe](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/radu.gheorghe/32/3516_2.png) [@radu.gheorghe](https://forum.opensearch.org/u/radu.gheorghe)\
**Post date:** [December 21, 2023, 4:55pm UTC](https://forum.opensearch.org/t/beginners-issue-improperly-formatted-jvm-option/17192/2 "2023-12-21T16:55:40Z")

</div>

Thish should be your [Java Security Manager policy file](https://docs.oracle.com/javase/8/docs/technotes/guides/security/PolicyFiles.html). Can you check if the file exists and if it does, maybe remove the `file://` part? Although it looks completely legal as far as I can tell.

In my docker OpenSearch I see this in my `jvm.options` file:

```auto
-Djava.security.policy=/usr/share/opensearch/config/opensearch-performance-analyzer/opensearch_security.policy

```
