If you're developing a homemade application (c++ class which derive from otb::Application class) you need to add a call to the method AddRAMParameters() in the DoInit method and it will automatically add the "ram" parameter which will allow to set memory usage by the application.

Example of call to AddRAMParameters in OTB source:

https://github.com/orfeotoolbox/OTB/blob/master/Modules/Applications/AppImageUtils/app/otbConcatenateImages.cxx#L80

Manuel

Le 27/10/2015 12:34, Julien Radoux a écrit :
Hello,

what is the best way to manage ram used by my applications ? With the
OTBapplication, there is a -ram argument which define the max ram used
at runtime. I would like to do the same with my application, or to
understand beter the way a new "home made" application will manage the
RAM if nothing is specified. Does it use the maximum available RAM ? Is
it limited by some environment setting ? Can I add some pieces of code
to have the same feature as the OTBapplications ?

Thank you

Julien

--
--
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html

You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
---
You received this message because you are subscribed to the Google
Groups "otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.

--
Manuel GRIZONNET

--
--
Check the OTB FAQ at
http://www.orfeo-toolbox.org/FAQ.html

You received this message because you are subscribed to the Google
Groups "otb-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/otb-users?hl=en
--- You received this message because you are subscribed to the Google Groups "otb-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to