IBM Support

Rhapsody Code Generation with dependencies takes longer on single processor

Troubleshooting


Problem

Attempts to run code generation with dependencies against the same model from same environment using IBM Rationa Rhapsody version 8.0 or above might result in taking much longer time than previous version.

Cause

This phenomenon is related to a new feature, Parallel Code Generation, which was introduced on Rhapsody version 8.0.

By default, property CG::General::ParallelCodeGeneration is set as BasedOnNumberOfCores.
If your model is using default settings and your environment has multiple processors, the tool would launch multiple rhapsodyCL.exe processes to generate code parallelly.

NOTE:
Parallel Code Generation distributes the whole work into several processes, each re-loading the relevant part of the model. Because of this behaviour, enabling parallel code generation feature would probably worsen the tool performance if your environment only has one processor.

Environment

Rhapsody version 8.0 or higher

Resolving The Problem

To avoid the performance issue, you need to disable Parallel Code Generation feature by setting the value of CG::General::ParallelCodeGeneration to Disabled.

Alternatively you can try another setting UserDefinedNumberOfProcesses combining with property CG::Geneal::UserDefinedParallelProcesses to intentionally request the tool launching multiple rhapsodyCL.exe processes regardless only one physical processor is available.

[{"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF033","label":"Windows"}],"Version":"8.0;8.0.1;8.0.2;8.0.3;8.0.4;8.0.5;8.0.6;8.1","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Product Synonym

Rational Rhapsody

Document Information

Modified date:
27 May 2022

UID

swg21677491