3 Enabling Multi Thread Process

The DGS ResOnline Multi Thread Process is an enhanced feature that manages performance. Below are the setup steps.

Setting Up OHCSettings.Par

In addition to setting the parameters in DGS ResOnline application, additional parameters are added to further manage the performance process. You must manually insert these settings at the beginning of the OHCSettings.Par file.

Table 3-1 OHCSettings.Par

Parameter Description
[#Res Online Data Import.Parameter.LogLevel=3#]
  • Define the type of information to show on screen as well as in DGS log file.

0: No logs. Does not log in into the database at application tier as well as database tier and nothing appears in UI.

1: Error on critical information only

2: Critical and important information - error and processing status only.

3: All information

[#Res Online Data Import.Parameter.ThreadCount=4#]
  • Define the number of threads to process DGS records

[#Res Online Data Import.Parameter.MemoryLimit=1000000#]
  • Define the memory usage limit and value is in Kilobyte;

  • The default value is 1000000 if parameter does not exist in OHCSettings.par.

  • The minimum value is 500000.

[#Res Online Data Import.Parameter.LogCommitCount=100#]
  • Define the log commit count allowed.

  • Default is 100 if parameter does not exist in OHCSettings.par.

  • The minimum value is 100.

  • The bigger the value, the faster the commit process, but performance is slower and uses less memory.

Validating the Parameter Value

Based on the value defined in the above parameters, result returned by the system are shown in the following example:

ThreadCount = 4

Under the Action and Description column, records in process are shown in thread No 8, 9, 10 and 11 per the number of threads indicated.

Figure 3-1 Process Record Thread


This figure shows the number of process record thread count according to the value defined.

Memory Limit

The DGS program is coded to restart with a 500MB memory, and when the default memory limit in the parameter is 1000000. The application restarts automatically when the memory reaches 1.5GB, or at value defined (500MB + limit defined). For example, if the defined memory limit is 500000, the application restarts when memory reaches 1.0GB.

The total memory used is also shown in the description column of the figure below:

Figure 3-2 Utilization Memory Limit


This figure shows the memory used in by each record entry .

The system launches a Command Prompt window when the application restarts and closes the window after the application restart completes.

Figure 3-3 Program Restart Prompt


This figure shows the Command Prompt screen whenever the program restarts.

Process Log

In the Message tab, only the runtime errors are shown. All other log entries are viewable from C:\Program Files (x86)\Oracle Hospitality Cruise\ResOnlineDataImport_yyyymmdd.txt.