You get the following error when executing a TIBCO Spotfire Statistical Services job:
Could not execute function call. TIBCO Spotfire Statistics Services returned an error: 'cannot allocate vector size xx Mb'
This occurs when a job reaches the maximum memory limit that an R job can consume.
To see the current memory limit for R job consumption, browse to the following location from a web browser:
http://<servername>:<port>/<servicename>/api/v8/expression/eval?cmd=memory.limit()
You will get a similar response that is displayed below, that contains the current memory limit (4096.0)
<SplusReturnValue>
<S-PLUS>
<DisplayOptions scientificPattern="0.00E0" decimalPattern="#,##0.00"/>
<Header/>
<Vector length="1" type="numeric">
<Items>
<Item>4096.0</Item>
</Items>
</Vector>
</S-PLUS>
</SplusReturnValue>