Elasticsearch creates directories inside /tmp
. These directories used to execute native code by jna
and libffi
. Most of the time these directories are empty and have the name like elasticsearch.KNoHBn19
. more info here.
When running Elasticsearch for years it filled up /root
directory due to the directories created by Elasticsearch in the /tmp
. To override this, I can point Elasticsearch tmp directory to another disk via setting ES_TMPDIR
. But still have thousands of empty directories.
Is it safe to remove these old empty directories created by Elasticsearch? Or Elasticsearch will use all the empty directories created in tmp.