There is no way to set vm.max_map_count per process. As for side effect, changing the limit itself has none. It exists only if a process actually allocates a large amount of memory maps. Which might happen with Elasticsearch, that's why increasing the setting is needed. That's one of the reasons, among many others, that it is strongly recommended to not run other services on the same host as Elasticsearch on a production environment.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.