Tuning Redwood Server
Tuning allows you to customize the behavior of Redwood Server as well as lower the pressure on SAP Systems.
Tuning Redwood Server
Redwood Server Can be customized by modifying the three submit frames of the following built in process definitions:
- System_DeleteJobFiles - delete process logs and output files of deleted processes.
- System_ProcessKeepClauses - delete old processes according to keep clauses.
- System_UpdateJobStatistics - update runtime statistics of processes.
By default, these processes are submitted every 15 minutes, you may increase or decrease this by changing the interval of the submit frame.
More information about submit frames can be found in the user guide.
Tuning SAP connections
SAP RFC connections can be tuned, although the default behavior should be ideal for most, if not all implementations. The RFC library in SAP NetWeaver is limited to 404 concurrent RFC connections by default, this can be changed by setting the jco.cpic_maxconv
Java property, please see the SAP documentation for more information and SAP Note 2124330.
By default, Redwood Server will open as many RFC connections as required to process the load of jobs. Ideally, Redwood Server would use two or less. However, heavy load and multiple concurrent jobs can require more RFC connections, in which case these will be opened; they are closed again after a predefined idle time. If your SAP System is running slow, and the bottleneck has been identified as a high number of open RFC connections, then you can limit the maximum amount of open RFC connections for XBP, XAL and XMW. Note that this can influence the schedule of jobs controlled by Redwood Server.
There is always one reserved RFC connection that the service uses to connect to the SAP System, additionally, there can be one or more RFC connections for every interface. When you tune the RFC connections, bear this extra RFC connection in mind.
RFC connections are mostly used to create and start jobs, like an SAP_AbapRun process, and are closed after an idle time. Import jobs, however, like SAP_ImportCcmsJobs, will use an RFC connection until the process finishes and the idle time has been reached. There is also a pool of RFC connections that is used to monitor jobs and retrieve job output as well as log files; by default, the maximum pool size is set to 10 and RFC connections will be opened as required until the maximum value has been reached.
When Redwood Server is not monitoring, starting jobs or retrieving output, there should only be one RFC connection open after the idle time of the other RFC connections.
Procedure
To edit the submit frame of the process System_UpdateJobStatistics
- Choose "Environment > Submit Frames".
- Choose Refresh to update the list.
- From the context-menu of the
System_UpdateJobStatisticsSubmitFrame
submit frame, choose Edit. - Choose The Elements tab and edit the value after
Every Number of
as well as the unit, if required. - Choose Save & Close.
To edit the maximum numbers of RFC connections of an SAP System connection
- Choose "Environment > SAP".
- Choose the Refresh button to update the list.
- Choose Edit from the context-menu of the SAP System to edit.
- Choose The XBP tab and edit the value after
Max. number of RFC connections
. - Choose Save & Close.
Example
- Choose "Environment > Submit Frames".
- Choose Refresh to update the list.
- From the context-menu of the
System_UpdateJobStatisticsSubmitFrame
submit frame, choose Edit. - Choose The Elements tab and enter the following value in the
Every Number of
field1
, for theUnit
field choose Days. - Choose Save & Close.
To edit the maximum numbers of RFC connections of an SAP System connection
- Choose "Environment > SAP".
- Choose Refresh to update the list.
- From the context-menu, choose Edit.
- Choose The XBP tab and enter the following value after
Max. number of RFC connections
,10
. - Choose the Save & Close button to save changes and leave the editor.
Result of the Example
The process definition System_UpdateJobStatistics is run once a day and no longer every 15 minutes. This has an advantage if you do not need up-to-date process definition statistics. Shortly after the initial deployment it is very handy to monitor process definition statistics to get an idea of the real load on the system as well as other information.
RFC connections
The maximum number of RFC connections has been set to 10
for XBP only. If you are using XAL and/or XMW the RFC connections can still increase, you may limit those connections in similar way, on the XAL or XMW tab of the SAP System.