Could not execute function call. TIBCO Spotfire Statistics Services returned an error: 'cannot allocate vector size xx Mb'

Could not execute function call. TIBCO Spotfire Statistics Services returned an error: 'cannot allocate vector size xx Mb'

book

Article ID: KB0083900

calendar_today

Updated On:

Products Versions
Spotfire Statistics Services All Versions

Description

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>

Issue/Introduction

Could not execute function call. TIBCO Spotfire Statistics Services returned an error: 'cannot allocate vector size xx Mb'

Resolution

Increase the R job memory limit by adding the following to your SPSERVER_HOME\conf\spserver.properties file (for example C:\Program Files\TIBCO\statsvcs75\TERR):

engine.init.expr=library(utils);memory.limit(4096)

In this example the memory limit would be set to 4096Kb for the R jobs.