Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

component controller is consuming lots of memory

Hi All,

I have an WebDynpro application and a component controller (MyCompController) too where I have written most of the business specific code. The basis team informed that the component controller (MyCompController) is consuming lots of memory.

Could anybody suggest me how to takle this problem. I dont have any other details and I am new to handle this kind of activity.

Thanks & Regards,


Former Member

Hi Patana

Your controller can consume lots of memory because of lots of unnecessary data is loaded in advance and do not used actually. Try to analyze the following points:

1. Unnecessary data is loaded into the context nodes in advance. Do not load all the data into the context in wdInit() method (do not fill in all the models too). This is not the right way. Instead try to use supply-functions for each context node with data. Supply-function will be called by Webdynpro automatically only when the data is actually required to be shown on UI.

2. Unnecessary embedded Webdynpro components are created and loaded in memory in advance. Do not create embedded Webdynpro components manually in wdInit() method. Instead try to setup component usages with Create Mode option = OnDemand. Then Webdynpro will create the components automatically when this is really required.

BR, Sergei

0 View this answer in context

Helpful Answer

Not what you were looking for? View more on this topic or Ask a question