Unable to set heap size via LS_HEAP_SIZE on logstash 5.1.1

together with --allow-env option

--allow-env has nothing to do with the JVM options.

I am able to change the heap by editing config/jvm.options file, but this has the inconvenience that the value contained in that file is used for each started instance.

Perhaps this thread is useful: