Elasticsearch is not starting when bootstrap.memory_lock is set to true

One last question - Where to set JVM heap size? There are two locations in jvm.options file,

## You should always set the min and max JVM heap
## size to the same value. For example, to set
## the heap to 4 GB, set:
##
-Xms16g
-Xmx16g
##
## See https://www.elastic.co/guide/en/elasticsearch/reference/current/heap-size.html
## for more information
##
################################################################

# Xms represents the initial size of total heap space
# Xmx represents the maximum size of total heap space

-Xms2g
-Xmx2g

Can you please say where I need to set, the top one or the bottom one?