cancel
Showing results for 
Search instead for 
Did you mean: 

Warning Elasticsearch JAVA_HOME Magento 2.3.1

Warning Elasticsearch JAVA_HOME Magento 2.3.1

Can someone help me solve this warning?

Also, is this configuration for elasticsearch correct? "/usr/bin/java -Xms1g -Xmx1g"

My system is Ubuntu 18.04, Nginx and the system has 4GB of RAM

 

    $ sudo systemctl status elasticsearch ● elasticsearch.service - Elasticsearch    Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: enabled)    Active: active (running) since Wed 2019-04-03 07:37:29 UTC; 22min ago
         Docs: http://www.elastic.co  Main PID: 957 (java)
        Tasks: 45 (limit: 4703)    CGroup: /system.slice/elasticsearch.service
               ├─ 957 /usr/bin/java -Xms1g -Xmx1g -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=75 -XX:+UseCMSInitiatingOccupancyOnly -Des.networkaddress.cache.ttl=60 -Des.networkaddress.cache.negative.ttl=10 -XX:+AlwaysPreTouch
               └─1202 /usr/share/elasticsearch/modules/x-pack-ml/platform/linux-x86_64/bin/controller
    
    Apr 03 07:37:29 magento2 systemd[1]: Started Elasticsearch. Apr 03 07:37:29 magento2 elasticsearch[957]: warning: Falling back to java on path. This behavior is deprecated. Specify JAVA_HOME