Elasticsearch 7.6.1 service won't start in Ubuntu server 18.04

Even when only Elasticsearch will be running on this PC, is it mandatory to configure variables "Xms1g" and "Xmx1g" in the jvm.options file, or the app will use all available memory if no limit is established?