cancel
Showing results for 
Search instead for 
Did you mean: 

Out of memory error on EP server due to Web Dynpro Application

Former Member
0 Kudos

Hi Frndz...

I did sample Graphics application for demo, initality it was very fine , but todays itz giving "Out of memory error on EP server "

In this applicatio i used Timed Trigger which calls a method for every 2 sec's intervel, and that called method will genrate a grapic images, for this graphic input i taken a Current sec's ,

Date dt = new Date();

int sec = dt.getSeconds();

wdComponentAPI.getMessageManager().reportSuccess("Change rate/2 Secconds..."+ sec);

* int size = wdContext.nodeGnode().size();*

* for(int i=size-1;i>0;i--){*

IPrivateGraphicDemoView.IGnodeElement categoryElement =wdContext.nodeGnode().getGnodeElementAt(i);

  • wdContext.nodeGnode().removeElement(categoryElement);*

  • }*

* IPrivateGraphicDemoView.IGnodeElement categoryElement ;*

* for (int i = 0; i < sec ; i++) {*

* categoryElement = wdContext.createGnodeElement();*

* categoryElement.setText("" + i);*

* categoryElement.setSeries1(i-2.3);*

* categoryElement.setSeries2(2.5 - i);*

* wdContext.nodeGnode().addElement(categoryElement);*

* }*

Let me know that if we use Timed trigger UI ele , does we need to close this UI elemnt , if this is the case than how ??

I did this application 6 days back itz working very fine n i gave a demo also, than y this error is coming now only.

I hope there was some mistake in my code especialy in the FOR (itz going t5o infinet loop)

If anybady have any suggestions plz share with me.

Regards

Rajesh

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member192434
Active Contributor
0 Kudos

Hi

just give a restart to your j2ee server as well as ur NWDS and see it's working or not

Thanks

Former Member
0 Kudos

Hi...

Yes, I restarted the Server n NWDS also but whenever am running this Application am facing same problem.

And i forgot to say one thing that yester day i did one change in this app i.e i insterd Gantt chart in existing application, actualy i don't know how to do this Gantt I just follwoed one blog n i did , after these changes(gantt insert) only am faciing this "Out of Memory Error on Server" .

Regards

Rajesh

former_member192434
Active Contributor
0 Kudos

Hi

i hear is the porblem,

, you are getting second and putting into the loop this loop never gone end and another thing aslo creating node on every increment of the loop,

for (int i = 0; i < sec ; i++) {*

categoryElement = wdContext.createGnodeElement();*

correct this loop

Thanks