跳转到主内容

主机上SnapCenter Linux插件的内存使用量有多高?

Views:
12
Visibility:
Public
Votes:
0
Category:
snapcenter
Specialty:
snapx
Last Updated:

适用场景

  • 适用于Oracle (SCO)的SnapCenter插件4.x
  • 适用于SAP HANA的SnapCenter插件(SCHANA) 4.x
  • 适用于Creator的SnapCenter插件(SCC) 4.x

问题解答

插件进程使用的大部分内存已预先分配给三个Java进程中每个进程的运行空间、
通过-Xmx参数提供给java。例如、"sudo ps aux | grep snap "输出:
 
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root       970  0.1  1.9 3012216 75220 ?       Sl   11:17   0:20 /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.161-2.b14.el7.x86_64/jre/bin/java -Xms128m -Xmx512m -XX:MaxPermSize=256m -XX:ParallelGCThreads=2 -classpath /opt/NetApp/snapcenter/scc/lib/scAgent-2.0-core.jar:/opt/NetApp/snapcenter/scc/lib/common-2.0.jar com.netapp.snapcreator.agent.nextgen.watchdog.external.ExternalWatchdogStarter start
root      1700  0.2  9.9 3645364 386312 ?      Sl   11:18   0:29 /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.161-2.b14.el7.x86_64/jre/bin/java -Xms128m -Xmx1024m -XX:MaxPermSize=256m -XX:ParallelGCThreads=2 -DINSTALL_PATH=/opt/NetApp/snapcenter/scc -classpath /opt/NetApp/snapcenter/scc/lib/scAgent-2.0-core.jar:/opt/NetApp/snapcenter/scc/etc:/opt/NetApp/snapcenter/scc/lib/* com.netapp.snapcreator.agent.nextgen.Starter start
root      2168  0.5 42.8 4777912 1663820 ?     Sl   11:18   1:04 /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.161-2.b14.el7.x86_64/jre/bin/java -Xms256m -Xmx2G -XX:MaxMetaspaceSize=256m -XX:OnOutOfMemoryError=restart_plugin_loader_services.sh -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:ParallelGCThreads=2 -jar spl-main-4.4.jar start -classpath (...)
 
VSZ列表示虚拟内存大小、其中包括可从磁盘读取的库等。
Linux利用按需分页、只有在应用程序尝试使用页面时、才会将页面加载到内存中。
 
在系统上运行该命令时的内存(RAM)使用量是RSS列中显示的值。
另一方面,RSS的值 也包括共享内存,这意味着某些进程之间的实际使用量可能平均更低。
 
pmap 命令还可将使用量在可使用的进程和文件之间进行分隔。
根据pmap的版本、最终输出会进行汇总、例如、其中第二个总数是RSS (内存中)值、而额外的输出甚至会显示共享内存:
Total:           6728544K 1958244K 1945274K 1936032K    180K      0K
2056532K writable-private, 4666328K readonly-private, 5684K shared, and 1958244K referenced
 
注意:SPL服务(端口8145上的主访问点、包括scu和SCO功能)的默认磁盘空间设置为2 GiB、处理SCHANA和SCC Creator插件的SCC服务为1 GiB、SCC监视进程为512 MiB、最大磁盘空间使用量为3.5 GiB RAM。
 
要使用进程查找最高的内存、可以按百分比查看所有进程的内存使用情况、并按最大值进行排序:
ps -o pid,user,%mem,command ax | sort -n -k3

追加信息

根据使用的插件、可以在一定程度上减少内存使用量:
  • 对于SCC、运行空间使用量设置和其他内存参数保留在中的agent_memory.properties/var/opt/snapcenter/scc/etc
  • 对于SPL,它们在/opt/SPL/SPL/bin中的脚本spl/opt/NetApp/snapcenter/spl/binspld 中进行了定义。
  • 如果既不使用SCHANA、也不使用SCC Creator插件、则可以使用完全删除SCC服务和监视程序/opt/NetApp/snapcenter/bin/uninstallServiceLinux
  • 另一方面、如果不使用Oracle、SPL的高可用性空间可能会从2 G减少到1 G、但它需要保持运行才能访问SCC。
  •  由于错误 1542785 (CSNAPC-3408)、在4.9版中SPL的-Xmx参数已从2GiB更改为6GiB
NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.