Why does the CTM planning fail and terminate with an error related to memory consumption (like TSV_TNEW_PAGE_ALLOC_FAILED) ?
This might happen when the model is too big. If you check the trace file of the CTM run and its size exceeds 500 MB then you can face a memory problem during the run. In order to avoid this problem you have to split the model into separate independent parts. Notice that the CTM run generates a trace file. This trace file is recorded if you have previously set in the customizing (Optimization Server Master Data) the status of the CTM engine as L Active(Logging Switched On) and you have entered a log directory. Transaction SPRO : mySAP SCM -> APO -> Basis Settings -> Optimization -> Basic Functions – > Maintain Master for Optimization Server A memory consumption problem might also happen when the CTM engine takes a long time to compute a solution for some demands. In this case you should run CTM with a Maximum Scheduling Time value.