How to estimate memory usage for the 64-bit TMTM services for Windows
This section describes how to estimate memory usage based on the previously recorded low resolution historic data from the TMTM database for the 64-bit services for Windows before installing Fix Pack D.
TMTM has a builtin function for automatically collecting OS process level high resolution historic data on TMTM services and generating low resolution historic data from the high resolution data. All historic data gets stored in the database. Using a "memory usage estimator" SQL script, as described in the procedure below, we can calculate the maximum of "WindowsPeakPagefileUsage" for each TMTM service, calculate the sum of such maximum values across all TMTM services, and then return the resulting number in gigabytes.
- Copy the Server Fix Pack ZIP file into a new directory.
Use the cd command to go to the new directory, and run one of the following commands (according to your database type, see below) in order to extract the "memory usage estimator" SQL scripts.
DB2unzip FixPack8100.425D_bPost_x64_Server FixPack8100.425D_bPost_x64_Server/windows/SQL/db2.64bit_mem_usage.sql
MS SQL
unzip FixPack8100.425D_bPost_x64_Server FixPack8100.425D_bPost_x64_Server/windows/SQL/mssql.64bit_mem_usage.sql
Oracle
unzip FixPack8100.425D_bPost_x64_Server FixPack8100.425D_bPost_x64_Server/windows/SQL/ora.64bit_mem_usage.sql
- Access FixPack8100.425D_bPost_x64_Server/windows/SQL from the new directory where the "memory usage estimator" SQL scripts were extracted to. Have your TMTM database credentials handy, and run one of the SQL scripts (see below) according to your database type.
- DB2
Connect your DB2 command line processor to your database using the TMTM DB2 credentials:
db2cmd
db2 connect to <database_alias> user <user_name> using <password>- Run the SQL script: db2 -stvf db2.64bit_mem_usage.sql
- Sample output:
TOTAL_64BIT_SIZE_IN_GB
------------------------
+6.33500976562500E+000
- MS SQL
- Run the SQL script: sqlcmd -S <sql_server_host_name> -U <user_id> -P <password> -d <database_name> -i mssql.64bit_mem_usage.sql
Note that SQL Server Management Studio can be used instead of the sqlcmd command line utility. The content of the mssql.64bit_mem_usage.sql script needs to be copied and pasted into an SQL Server Management Studio's query window, and then executed. - Sample output:
total_64bit_size_in_gb
------------------------
6.485919189453126
- Run the SQL script: sqlcmd -S <sql_server_host_name> -U <user_id> -P <password> -d <database_name> -i mssql.64bit_mem_usage.sql
- DB2
- Oracle
- Run the SQL script: sqlplus <user>/<password>@<TNS_name> @ora.64bit_mem_usage.sql
- Sample output:
TOTAL_64BIT_SIZE_IN_GB
----------------------
6.29614258
- Oracle