Skip navigation
cris1506
Currently Being Moderated

valueObjects memory - How can destroy when unload module

Jun 1, 2012 9:20 AM

Tags: #memory #valueobjects

The problem is when the app load and unload the same module, the data from callresponder is add to class R5objects. The ask is how can drop, delete, destroy,clean,..... this objects from memory when i unload the module. I try with System.gc () but i don't see change in memory.

 

If i load and unload the same module many times the application take a lot of memory, the query to database take 500 rows and 10 fields

 

Thanks

 

Tmemory_flex.png

 
Replies
  • Currently Being Moderated
    Jun 1, 2012 1:12 PM   in reply to cris1506

    I don’t know what R5objects is, but you should have it support some way of cleaning up.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 1, 2012 8:49 PM   in reply to cris1506

    Once the valueObjects are no longer referenced, the will not pin the callResponder data in memory,.  Why are valueObjects still being referenced?

     

    -Alex

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 3, 2012 11:45 PM   in reply to cris1506

    Use the profiler to see what is holding onto the valueObjects.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 9, 2012 8:28 AM   in reply to cris1506

    I am facing the same problem.

    Did you find a solution?

     

    Thanks

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 13, 2012 4:03 PM   in reply to gfbaggio9

    You may need to call disconnect() on the RemoteObject and null it out, or its loaded data may stick around longer than desired.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points