| 1234567891011121314151617181920212223242526272829303132333435 | --:api: estimate-memory-usage:request: PutDataFrameAnalyticsRequest:response: EstimateMemoryUsageResponse--[id="{upid}-{api}"]=== Estimate memory usage APIThe Estimate memory usage API is used to estimate memory usage of {dfanalytics}.Estimation results can be used when deciding the appropriate value for `model_memory_limit` setting later on.The API accepts an +{request}+ object and returns an +{response}+.[id="{upid}-{api}-request"]==== Estimate memory usage Request["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests-file}[{api}-request]--------------------------------------------------<1> Constructing a new request containing a {dataframe-analytics-config} for which memory usage estimation should be performedinclude::../execution.asciidoc[][id="{upid}-{api}-response"]==== ResponseThe returned +{response}+ contains the memory usage estimates.["source","java",subs="attributes,callouts,macros"]--------------------------------------------------include-tagged::{doc-tests-file}[{api}-response]--------------------------------------------------<1> Estimated memory usage under the assumption that the whole {dfanalytics} should happen in memory (i.e. without overflowing to disk).<2> Estimated memory usage under the assumption that overflowing to disk is allowed during {dfanalytics}.
 |