Data Protection Advisor — 如何在将内存添加到 DPA 服务器后检查和调整 DPA 内存配置
Summary: 安装 DPA 后,将自动调整内存。 当需要额外的内存并添加到服务器时,需要调整 DPA,以便它利用添加到服务器的内存。
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Instructions
如果已将内存添加到 DPA 应用程序或数据存储区服务器,则需要调整 Data Protection Advisor (DPA) 内存。内存调整可根据可以使用的服务器/系统内存量配置 DPA 服务/进程。
DPA 应用程序主要是一个基于 Java 的应用程序,它调整到的内存量是软内存限制。在某些情况下,应用程序可以使用超过配置的限制,尽管通常不会大幅增加内存。
DPA 数据存储区主要是一个基于 Postgres 的应用程序。它调整为的内存量是硬限制,但使用任务管理器 (Windows) 或顶部 (Linux) 等应用工具将不容易看到。这是因为 Postgres 通常使用共享内存。
安装 DPA 时,将根据总服务器内存自动调整内存。
要检查 应用程序服务器上的新内存配置,请查看存储在 executive.log 中的配置(例如:<install dir>/emc/dpa/services/logs/executive.log)。从文件末尾开始,然后向后搜索以获取以下参考。在 -XmX 参考之后会看到 RAM 配置量,例如:
Command[3] :-Xmx22937m
上面的值以兆字节 (m) 为单位列出,等于 22.9 GB。
要检查 数据存储区服务器上的新内存配置,请运行以下命令:
<install_path>\emc\dpa\services\bin> dpa ds tune
当 DPA 需要额外的内存并添加到服务器/系统时,需要调整 DPA,以便它利用添加的内存。
例如,假设两个 DPA 服务器上的内存最初都是 16 GB,现在两个服务器上的内存都提升到 32 GB。希望 DPA 利用额外的内存。
在 DPA 应用程序服务器 上,应运行以下命令来配置新内存总计。
Windows: <install dir>\emc\dpa\services\bin> dpa app tune 32GB
Linux: <install dir>/emc/dpa/services/bin> ./dpa.sh app tune 32GB
您将在下面看到输出。示例来自 Linux 服务器:
DPA 会自动将自身配置为使用 命令中指定的内存量的一部分。
DPA 应用程序上的 DPA tune 命令会将应用程序调整到指定内存量的大约 70%。部分原因在于之前提到的 Java 行为,其中内存配置是软限制。这为 Java 提供了超过软限制的缓冲区。
注意:在某些情况下,DPA 应用程序可以调整为使用超过 70%,但应谨慎执行此操作。请咨询戴尔技术支持以获得指导。
在 DPA 数据存储区服务器 上,应运行以下命令来配置新内存总计。
Windows: <install dir>\emc\dpa\services\bin> dpa ds tune 32GB
Linux: <install dir>/emc/dpa/services/bin> ./dpa.sh ds tune 32GB
您将在下面看到输出。示例来自 Linux 服务器:
DPA 数据存储区上的 DPA tune 命令会将其调整为指定内存量的 100%。这是正常的,也是意料之中的。正如本知识库文章前面提到的,Postgres 利用“共享内存”,因此此配置是正确的,不会导致操作系统内存资源消耗或需求的任何问题。
对于 DPA 应用程序和数据存储区,需要重新启动 DPA 服务才能使调整命令生效:
建议的重新启动顺序如下所示:
- 停止应用程序服务器: Linux:./dpa.sh svc stop / Windows: dpa svc stop (or from services.msc)
- 停止数据存储区服务器: Linux:/dpa.sh svc stop / Windows: dpa svc stop (or from services.msc)
- 启动 Datstore 服务器:Linux:./dpa.sh svc stop / Windows: dpa svc stop (or from services.msc)
- 启动应用程序服务器:Linux:./dpa.sh svc start / Windows: dpa svc start (or from services.msc)
DPA 应用程序和数据存储区的新调整内存配置可以验证,如本知识库文章前面所述。
有关更多详细信息或信息,请联系戴尔技术支持。
DPA 应用程序主要是一个基于 Java 的应用程序,它调整到的内存量是软内存限制。在某些情况下,应用程序可以使用超过配置的限制,尽管通常不会大幅增加内存。
DPA 数据存储区主要是一个基于 Postgres 的应用程序。它调整为的内存量是硬限制,但使用任务管理器 (Windows) 或顶部 (Linux) 等应用工具将不容易看到。这是因为 Postgres 通常使用共享内存。
安装 DPA 时,将根据总服务器内存自动调整内存。
检查应用程序和数据存储区服务器上的当前 DPA 内存配置
要检查 应用程序服务器上的新内存配置,请查看存储在 executive.log 中的配置(例如:<install dir>/emc/dpa/services/logs/executive.log)。从文件末尾开始,然后向后搜索以获取以下参考。在 -XmX 参考之后会看到 RAM 配置量,例如:
Command[3] :-Xmx22937m
上面的值以兆字节 (m) 为单位列出,等于 22.9 GB。
要检查 数据存储区服务器上的新内存配置,请运行以下命令:
<install_path>\emc\dpa\services\bin> dpa ds tune
[root@dpads01 bin]# ./dpa.sh ds tune EMC Data Protection Advisor [INFO] Current Datastore Service tuned expecting 16384MB of host memory Command completed successfully.
更改(调整)DPA 应用程序和数据存储区上的当前内存配置
当 DPA 需要额外的内存并添加到服务器/系统时,需要调整 DPA,以便它利用添加的内存。
例如,假设两个 DPA 服务器上的内存最初都是 16 GB,现在两个服务器上的内存都提升到 32 GB。希望 DPA 利用额外的内存。
在 DPA 应用程序服务器 上,应运行以下命令来配置新内存总计。
Windows: <install dir>\emc\dpa\services\bin> dpa app tune 32GB
Linux: <install dir>/emc/dpa/services/bin> ./dpa.sh app tune 32GB
您将在下面看到输出。示例来自 Linux 服务器:
[root@dpapp01 bin]# ./dpa.sh app tune 32GB EMC Data Protection Advisor Set Application service memory usage to 22937MB : Confirm [Y|N] y Application service successfully tuned. Command completed successfully.根据管理指南:
DPA 会自动将自身配置为使用 命令中指定的内存量的一部分。
DPA 应用程序上的 DPA tune 命令会将应用程序调整到指定内存量的大约 70%。部分原因在于之前提到的 Java 行为,其中内存配置是软限制。这为 Java 提供了超过软限制的缓冲区。
注意:在某些情况下,DPA 应用程序可以调整为使用超过 70%,但应谨慎执行此操作。请咨询戴尔技术支持以获得指导。
在 DPA 数据存储区服务器 上,应运行以下命令来配置新内存总计。
Windows: <install dir>\emc\dpa\services\bin> dpa ds tune 32GB
Linux: <install dir>/emc/dpa/services/bin> ./dpa.sh ds tune 32GB
您将在下面看到输出。示例来自 Linux 服务器:
[root@dpads01 bin]# ./dpa.sh ds tune 32GB EMC Data Protection Advisor Set Datastore service memory usage to 32768MB : Confirm [Y|N] y Datastore Service successfully tuned. The new memory utilisation for the datastore will not take effect until the datastore service is restarted. Command completed successfully.
DPA 数据存储区上的 DPA tune 命令会将其调整为指定内存量的 100%。这是正常的,也是意料之中的。正如本知识库文章前面提到的,Postgres 利用“共享内存”,因此此配置是正确的,不会导致操作系统内存资源消耗或需求的任何问题。
对于 DPA 应用程序和数据存储区,需要重新启动 DPA 服务才能使调整命令生效:
建议的重新启动顺序如下所示:
- 停止应用程序服务器: Linux:./dpa.sh svc stop / Windows: dpa svc stop (or from services.msc)
- 停止数据存储区服务器: Linux:/dpa.sh svc stop / Windows: dpa svc stop (or from services.msc)
- 启动 Datstore 服务器:Linux:./dpa.sh svc stop / Windows: dpa svc stop (or from services.msc)
- 启动应用程序服务器:Linux:./dpa.sh svc start / Windows: dpa svc start (or from services.msc)
DPA 应用程序和数据存储区的新调整内存配置可以验证,如本知识库文章前面所述。
有关更多详细信息或信息,请联系戴尔技术支持。
Affected Products
Data Protection AdvisorArticle Properties
Article Number: 000207239
Article Type: How To
Last Modified: 20 Apr 2023
Version: 3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.