Calculating server memory requirements
It is important to determine the amount of memory that a server requires to run Copy Services Manager for a replication environment.
The Java heap size setting provides the maximum amount of memory that the server is allowed to use from the system memory. You can determine the maximum Java heap size setting by using the following table to calculate the maximum amount of memory that the configuration requires.
| Calculation for estimating the optimal Java heap size Storage System Connection Memory usage (Mb) = Number of Storage Systems Connections * 66 |
| Nonsession processing = 512 MB |
| Non-Safeguarded Copy sessions = 256 MB / 25,000
pairs Note: The number of pairs for a session is the number of copy sets times the number of role
pairs in the session. For more information, see the topic that is titled "Copy
sets" in the online help documentation at https://www.ibm.com/support/knowledgecenter/SSESK4
Copy sets for more
information.
|
| Safeguarded Copy sessions = 0.8 KB * number of volumes * number of backups |
| Total optimal heap size = Nonsession + Non-Safeguarded Copy sessions + Safeguarded Copy sessions + Storage System Connection Memory usage |
- Nonsession processing
- 512 MB Note: All servers need 512 MB for nonsession processing.
- Non-Safeguarded Copy sessions
- A customer has a Global Mirror Failover or Failback DS8000® session with 15,000 copy sets. This session type has 3 role pairs. So, the total number of pairs in the session is 15,000 x 3, or 45,000 pairs. Looking at the table, 256 MB is needed for every 25,000 pairs. Therefore, the customer needs at least 512 MB to cover their 45,000 pairs.
- Safeguarded Copy sessions
- The customer also has a Safeguarded Copy session with 2000 volumes. If the customer wants to keep 250 backups for each of those 2000 volumes, then according to the table, the customer needs 2000 x 250 x 0.8 KB = 400,000 KB = 400 MB.
If more memory is needed than the server's default, modify the maximum heap size by shutting down the Copy Services Manager server, adjusting the -Xmx parameter in the jvm.options file, and then restarting the server.
For distributed systems, the install dir/liberty/wlp/usr/servers/csmServer/jvm.options file holds the maximum heap size for distributed systems, and can be used to configure the session with the -Xmx parameter (for example, -Xmx1280m).
For z/OS systems, the path_prefix/opt/IBM/CSM/wlp/usr/server/csmServer/jvm.options file holds the maximum heap size for z/OS, and can be used to configure the session with the -Xmx parameter (for example, -Xmx1280m).
For Copy Services Manager 6.2.10 and higher running on an HMC, if the HMC is configured with 32 GB, the maximum heap size is automatically set to 4096 MB. If the memory calculation goes above 4096 MB, it is highly advisable that Copy Services Manager runs on an external server instead of the HMC.
If Copy Services Manager is running on a DS8000 10th Generation HMC, the default heap size is set to 8192MB. If the memory calculation goes above 8192 MB, it is highly advisable that Copy Services Manager runs on an external server instead of the HMC.
When Copy Services Manager is running on a DS8000 10th Generation HMC, you can now create connections to as many DS8000 systems as needed, as long as the above calculation stays within the maximum 8192 MB.
Contact support if you have questions on where Copy Services Manager runs, and the heap size setting.
The optimal heap sizes are for ESESizer sessions with DS8000 volumes on microcode level 9.4 or higher, which use a new query that consumes fewer resources than older versions.
| Java heap size DS8000 capacity |
|---|
| 4 GB <= 20 TiB |
| 8 GB <= 60 TiB |
| 16 GB > 60 TiB |
For more information about the maximum heap size, see the information about sizing the Java heap size in the IBM® SDK for Java Tools at https://www.ibm.com/developerworks/java/jdk/howdoi/index.html.
For more information about how to set up the Java heap size, see the WebSphere® Application Server V8.5 Liberty profile technote at http://www.ibm.com/support/docview.wss?uid=swg21596474.