how to measure consumed memory?

Posted by ecsousa on 17-Mar-2015 11:31

I am developing an application, using OOP but the memory grows up a lot .. I don´t know why. I am trying to get informations using PROFILER, but I only got time information...  What can I use to get memory information of my application? 

Thank you,

All Replies

Posted by Brian K. Maher on 17-Mar-2015 11:36

 
Use the following startup parameters then look at the log file:
 
-clientlog client.log
-logginglevel 3 (or 4 if needed)
-logentrytypes 4GLTrace,DynObjects.* (or just DynObjects.Class if you only want to log classes and not dynamic queries, buffers, temp-table, etc)
 
Brian
 
 

Posted by Brian K. Maher on 17-Mar-2015 11:39

 
Forgot to say that this won't give you values for consumed memory but will show you what objects you are creating and deleting.  Look for instances of object creation with no corresponding deletion (for starters).
 
 

Posted by Thomas Mercer-Hursh on 17-Mar-2015 11:50

Creating lots of objects can use up significant memory.  Are you doing things like creating objects for very simple entities like a Java String or reading in lots of data and creating an object per row?

This thread is closed