Optimizing the Runtime Performance
This section describes several ways to enhance programs in order to obtain the best from your COBOL application.
The most important actions to be performed in order to optimize performance are:
If available, use the -server Java option.
Avoid debug information in programs.
By using debug compiler options, the runtime performance of the Jopaz compiled application is strongly affected. The runtime statistics are then no longer comparable with the COBOL runtimes.
Compiler options under jopaz.compiler.options= that cause a performance drop in this context are -d and -dx. For a more detailed description of what these two options do, please see section Compiler Options.
Avoid logging the runtime activity.
By opening and closing the log file during program execution, significantly more workload is incurred. Therefore, if you are running a performance critical program, it is advisable to disable logging.
In this case, simply remove or comment out the following statements from your runtime definition (RUNOPT) or reduce the trace level:
jopaz.logfile=<path-to-trace>/jopaz.%u.txt
jopaz.tracelevel=63
For more information, see section Runtime Property Definition.