Skip to Content
author's profile photo Former Member
Former Member

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

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Dec 18, 2008 at 07:35 AM

    Hi

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

    Thanks

    Add a comment
    10|10000 characters needed characters exceeded

    • 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

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.