我正在运行ElasticSearch版本6.2.3,并且我正在将config\jvm.options文件的堆大小增加到4GB 。然后重新启动我的ES,如何确保我的ES以修改后的heapsize运行。是否有任何命令可以验证ES的堆大小。我正在Windows计算机上运行我的ES。请找到我的配置详细信息。## JVM configuration################################################################## IMPORTANT: JVM heap size#################################################################### 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:#### -Xms2g## -Xmx2g#### 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-Xms4g-Xmx4g
3 回答
![?](http://img1.sycdn.imooc.com/545864000001644402200220-100-100.jpg)
慕容708150
TA贡献1831条经验 获得超4个赞
您还可以使用以下任一选项来检查用于启动实例的命令行参数:
使用Process Explorer,并将鼠标悬停在的进程名称上
java.exe
(由推出elasticsearch.exe
)。确保从“文件”菜单中选择了“显示所有进程的详细信息”。从提升的命令提示符处运行以下命令:
WMIC PATH win32_process WHERE "caption='java.exe'" GET Commandline
两者都将为您提供用于启动实例的命令行参数。寻找-Xmx
和-Xms
值。
添加回答
举报
0/150
提交
取消