Job Management Partner 1/Automatic Job Management System 3 System Design (Configuration) Guide
When you use event jobs, the size of the log output depends on the nature of the operation, including the number of event jobs executed and the number of satisfactions of monitoring conditions. As a guide, keep a log for at least 24 hours. You should estimate in advance a rough value for an output log size that will enable you to keep a log for 1 to 3 days, based on considerations like the number of event jobs executed.
Decide the size of the event log together with the number of log files. Define the estimated value using the configuration definition file. Create a text file in the following form as the log setting configuration definition file for event jobs.
[definition-key] "environment-setting-parameter" = definition-details "environment-setting-parameter" = definition-details :We will now explain the environment setting parameters of the log setting configuration definition file for event jobs. Then we will explain the formulae used to calculate rough values for the sizes of the logs set for each process.
For details on the default disk capacity and maximum disk area used, see 1.2.4 List of log files and directories in the manual Job Management Partner 1/Automatic Job Management System 3 Troubleshooting.
For details on the procedure for changing the event job log settings, see the following references.
- For Windows:
- 6.3.1 Changing the settings related to the size of the log for event jobs to match operational requirements in the Job Management Partner 1/Automatic Job Management System 3 Configuration Guide 1
- For UNIX:
- 14.3.1 Changing the settings related to the size of the log for event jobs to match operational requirements in the Job Management Partner 1/Automatic Job Management System 3 Configuration Guide 1
- Organization of this subsection
- (1) Log setting configuration definition parameters for event jobs
- (2) Calculating the log size for each process
- (3) Changing the size of the common log for events and actions
(1) Log setting configuration definition parameters for event jobs
The following table shows the environment setting parameters.
Table 3-10 List of log setting configuration definition parameters for event jobs
Key Environment setting parameter Definition details [JP1_DEFAULT\JP1AJSMANAGER\SCHEDULER\scheduler-service-name\EV\MANAGER\LOG]
or
[logical-host-name\JP1AJSMANAGER\SCHEDULER\scheduler-service-name\EV\MANAGER\LOG]"LogSize"= Log size
(Common to all event job managers)"LogNumFiles"= Number of log files
(Common to all event job managers)"LogSize_jpomanager"= Log size
(Applies to individual event job manager processes)"LogSize_jpomgrsub"= "LogNumFiles_jpomanager"= Number of log files
(Applies to individual event job manager processes)"LogNumFiles_jpomgrsub"= [{JP1_DEFAULT | logical-host-name}\JP1AOMAGENT\LOG] "LogSize"= Log size
(Common to all event job agents)"LogNumFiles"= Number of log files
(Common to all event job agents)"LogSize_jpoagent"= Log size
(Common to all event job agents)"LogSize_jpoagtsub"= "LogSize_jpocwtflMain"= "LogSize_jpoeventwatch"= "LogSize_jpoevsearch"= "LogSize_jpocwttmMain"= "LogSize_jpocwtmlmain"= "LogSize_jpomldsk"= "LogSize_jpomlsrv"= "LogSize_jpomlapisend"= "LogSize_jpomlapisend2"= "LogSize_jpomlapirec"= "LogSize_jpomlapirec2"= "LogSize_jpomailrecv"= "LogNumFiles_jpoagent"= Number of log files
(Applies to individual processes at event job agents)"LogNumFiles_jpoagtsub"= "LogNumFiles_jpocwtflMain"= "LogNumFiles_jpoeventwatch"= "LogNumFiles_jpoevsearch"= "LogNumFiles_jpocwttmMain"= "LogNumFiles_jpocwtmlmain"= "LogNumFiles_jpomldsk"= "LogNumFiles_jpomlsrv"= "LogNumFiles_jpomlapisend"= "LogNumFiles_jpomlapisend2"= "LogNumFiles_jpomlapirec"= "LogNumFiles_jpomlapirec2"= "LogNumFiles_jpomailrecv"= Details on each item in the table are given below.
- "LogSize"=dword:log-size
- Specify the size of one log file in byte units, in hexadecimal. Make the setting within the range 20,000 (128 kilobytes) to 40,000,000 (1 megabyte).
- The value specified here affects all event job manager processes or agent processes.
- "LogNumFiles"=dword:number-of-log-files
- Specify the file count that triggers a log wrap (number of log files) in hexadecimal. Make the setting within the range 2 to 10 (in decimal form, 2 to 16).
- The value specified here affects all event job manager processes or agent processes.
- "LogSize_process name"=dword:log-size
- Specify the size (in bytes, hexadecimal) of one log file when you want to change the log size for any single process at an event manager or agent. Make the setting within the range 20,000 (128 kilobytes) to 40,000,000 (1 megabyte).
- For details on the log sizes (rough values) set for each process, see (2) Calculating the log size for each process below.
- "LogNumFiles_process name"=dword:number-of-log-files
- Specify the number of log files, in hexadecimal, when you want to change this number for any single process at an event manager or agent. Make the setting within the range 2 to 10 (in decimal form, 2 to 16).
When each event job process starts, the log size and number of files are determined according to the following order of priority.
- Specification for each process
Value specified for LogSize_process-name or LogNumFiles_process-name
- Event job common specification
Value specified for LogSize or LogNumFiles
- Default values for each process
Process-specific default values like those shown in the table below
Table 3-11 Default values for event job processes and logs
Type Process name Platform Default values for logs
(values in parentheses are set at JP1/AJS3 installation and setup)Windows UNIX Log size Number of log files Manager jpomanager E E 640 kilobytes
(2,048 kilobytes)8
(6)jpomgrsub E E 640 kilobytes
(2,048 kilobytes)6
(8)Agent jpoagent E E 384 kilobytes
(1,024 kilobytes)8
(8)jpoagtsub E E jpocwtflMain E E 1,280 kilobytes
(2,048 kilobytes)6
(6)jpoeventwatch E E 640 kilobytes
(1,024 kilobytes)4
(8)jpocwttmMain E E 128 kilobytes
(256 kilobytes)2
(6)jpocwtmlmain E E 128 kilobytes
(128 kilobytes)2
(2)jpoevsearch E E jpomldsk E -- jpomlsrv E -- jpomlapisend E -- jpomlapisend2 E -- jpomlapirec E -- jpomlapirec2 E -- jpomailrecv -- E
- Legend:
- E: Process exists
- --: No process
The filenames of event job logs are decided as follows.
process-name[1|2|3|...].log
- The filenames of event job logs are decided as follows.
jpoagent1.log jpoagent2.log : jpoagent8.logLog files for event jobs are stored in the following directory:
- In Windows Server 2008:
- %ALLUSERSPROFILE%\Hitachi\JP1\JP1_DEFAULT\JP1AJS2\log\schedule#
- (By default, %ALLUSERSPROFILE% resides in system-drive\Program Data.)
- In Windows Server 2003:
- JP1/AJS3-installation-folder\log\schedule#
- #
- If configuring multiple scheduler services, replace \log\schedule with \log\schedule\scheduler-service-name.
- In UNIX:
- /var/opt/jp1ajs2/log/schedule#
- #
- If configuring multiple scheduler services, replace /log/schedule with /log/schedule/scheduler-service-name.
For details about log types, see 1.2.4 List of log files and directories in the manual Job Management Partner 1/Automatic Job Management System 3 Troubleshooting.
(2) Calculating the log size for each process
The calculations to determine rough values for the log size to set for each process are shown in the following table.
The values determined with these calculation formulae are for guidance only. They could change depending on the operating environment and other factors.
Table 3-12 Log size (rough values) for each event job process
Process name Calculation formulae (units: bytes) jpomanager See Table 3-13. jpomgrsub See Table 3-13. jpoagent See Table 3-14. jpoagtsub See Table 3-14. jpocwtflMain See Table 3-15. jpoeventwatch
- number-of-executions-of-JP1-event-reception-monitoring-job x 4,000
- number-of-JP1-events-that-occur-on-logical-host-running-JP1/AJS3 x 1,200
- number-of-monitoring-conditions-established-for-JP1-event-reception-monitoring-job x 3,800
- number-of-monitoring-conditions-established-for-JP1-event-reception-monitoring-job x (number-of-macro-variables x (macro-variable-size + macro-variable-data-size (the upper limit is 1,024)))
jpoevsearch number-of-executions-of-a-JP1-event-reception-monitoring-job-using-the-event-search-functionality-before-execution x 700 jpocwttmMain See Table 3-16. jpocwtmlmain
(Windows only)Only created when using mail system linkage for Windows.
number-of-satisfactions-of-email-reception-monitoring-job-monitoring-conditions x 2,800jpocwtmlmain
(UNIX only)Only created when using mail system linkage for UNIX.
number-of-satisfactions-of-email-reception-monitoring-job-monitoring-conditions x 7,400jpomldsk Only created when using mail system linkage (on a desktop) for Windows.
(number-of-executions-of-email-sending-jobs x 200) + (each-mail-monitoring-interval x 400)jpomlsrv Only created when using mail system linkage (at a service) for Windows.
(number-of-satisfactions-of-email-reception-monitoring-job-monitoring-conditions x 400) + (number-of-executions-of-email-sending-jobs x 200)jpomlapisend#1 Only created when using mail system linkage for Windows.
Number-of-executed-email-sending-jobs x 2,800jpomlapisend2#2 Only created when using mail system linkage for Windows.
Number-of-executed-email-sending-jobs x 2,800jpomlapirec#1 Only created when using mail system linkage for Windows.
2,800 (if email reception monitoring jobs are executed, once per monitoring interval)jpomlapirec2#2 Only created when using mail system linkage for Windows.
2,800 (if email reception monitoring jobs are executed, once per monitoring interval)jpomailrecv Only created when using mail system linkage for UNIX.
number-of-mails-that-reach-the-mail-server x 1,200
- #1
- When you select Use on service in Mail linkage function or you select Use on desktop in Mail linkage function and Outlook 2000 or earlier in Mail Client Software when you set up mail system linkage.
- #2
- When you select Use on desktop in Mail linkage function and you select Outlook 2002 or later in Mail Client Software when you set up mail system linkage.
Table 3-13 Manager log output size
Phenomenon
Calculation formula (units: bytes) jpomanager jpomgrsub Event job Registration 3,350 2,300 Occurrence 1,900 1,550 Start condition Registration 1,150 + (2,600 x number-of-events-in-the-start-condition#) 750 + (750 x number-of-events-in-the-start-condition#) Occurrence Start condition not satisfied 3,400 2,250 Start condition satisfied 3,850 2,250
- #
- The number of events in the start condition is the number of event jobs defined within the start condition.
Table 3-14 Agent log output size (per job)
Phenomenon
Calculation formula jpoagent jpoagtsub Event job Registration 2,104 1,285 Occurrence 735 1,356 Start condition Occurrence 2,104 1,285 Start condition satisfaction 735 1,356 Table 3-15 File monitoring log output size (per job)
Phenomenon
Calculation formula (units: bytes) When you specify the full name of the monitored file When you specify a wildcard (*) Event job Registration 3,300 5,000 Event occurrence 4,500 + (macro-variable-size + macro-variable-data-size (the upper limit is 1,024) 4,500 + (macro-variable-size + macro-variable-data-size (the upper limit is 1,024)) Start condition Registration 3,300 5,000 Event occurrence 2,800 + (macro-variable-size + macro-variable-data-size (the upper limit is 1,024) (2,800 + (macro-variable-size + macro-variable-data-size (the upper limit is 1,024)) x number-of-event-occurrences End 1,000 1,000 Table 3-16 Execution interval control log output size (per job)
Phenomenon Calculation formula (units: bytes) Event job Registration 2,600 Event occurrence 2,300 Start condition Registration 2,600 Event occurrence 2,300 x number-of-event-occurrences End 1,000 When a time-out period is specified for an event job# Registration 1,200 Event occurrence 2,300
- #
- If a time-out period is set for each event job including execution interval control jobs, a log of the values indicated above is output to the execution interval control log.
(3) Changing the size of the common log for events and actions
To change the size of the common log for events and actions:
- Create a size specification file (jpocommonerr.dat) for the common log for events and actions.
The save location is as follows:
- For Windows:
- JP1/Base-installation-directory\log\jpocommonerr.dat
- For UNIX:
- /var/opt/jp1base/log/jpocommonerr.dat
- Define the log size in the size specification file (jpocommonerr.dat) for the common log for events and actions.
In the size specification file (jpocommonerr.dat) for the common log for events and actions, specify the log size according to the following format. The specified log size will be applied immediately.
The following is an example for the common log for events and actions, for when the log size is 2,048 kilobytes.
- LogSize: log-size
- Specify the log size, in bytes, in decimal format between 1,048,576 and 1,073,741,824 (1 gigabyte). If an incorrect value is specified, the default (1,048,576) will be used.
LogSize: 2097152
Note that even in a cluster configuration, since the common log for events and actions is output to the log files on the physical hosts, you must set the size on both physical hosts. To revert the size setting to the default (1,024 kilobytes), delete the size specification file (jpocommonerr.dat). The changes will be applied immediately.
The following table shows formulas for estimating the output size of the common log for events and actions.
Table 3-17 Output size of the common log for events and actions (per processing item)
Phenomenon Calculation formula (units: bytes) Event job Registration 1,024 Event occurrence 512 Forced termination 1,024 Start condition Registration (3 + number-of-event-jobs-defined-in-the-start-condition x 2) x 512 Start condition formation
- For AND:
- ( 4 + number-of-event-jobs-defined-in-the-start-condition x 2) x 512
- For OR:
- 4,096
Forced termination 2,048 JP1/AJS3 start and stop Manager host restart (number-of-scheduler-services + number-of-jobnets-with-all-start-conditions-being-registered x 6 + number-of-all-event-jobs-being-registered x 2) x 512 Action job Registration 1,024
- Note
- Even in a cluster configuration, output is performed to the default directory. As a result, for the output size of the common log for events and actions, use the sum of the values above for both the logical host and physical host.
Copyright (C) 2009, 2010, Hitachi, Ltd.
Copyright (C) 2009, 2010, Hitachi Solutions, Ltd.