You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by Swirl <lr...@gmail.com> on 2014/08/20 08:04:43 UTC

Uima AS out of memory

Hi,
I have deployed a AE onto a Uima AS node. 
But when I use it to analyse some documents, i got OutOfMemoryError: Java heap 
space.
I know that the AE is taking large amount of memory due to it loading many 
resources.

How can I increase the memory allocated to it in the Uima AS so that I can 
avoid the error?

Thanks.


Re: Uima AS out of memory

Posted by Eddie Epstein <ea...@gmail.com>.
When using deployAsyncService.sh to start a UIMA AS service, the default
Java heap size is Xmx800M. To override this, export an environment
parameter UIMA_JVM_OPTS with JVM arguments. For example:
   $ export UIMA_JVM_OPTS="-Xmx6G -Xms2G"
   $ deployAsyncService.sh myDeploymentDescriptor.xml



On Wed, Aug 20, 2014 at 2:04 AM, Swirl <lr...@gmail.com> wrote:

> Hi,
> I have deployed a AE onto a Uima AS node.
> But when I use it to analyse some documents, i got OutOfMemoryError: Java
> heap
> space.
> I know that the AE is taking large amount of memory due to it loading many
> resources.
>
> How can I increase the memory allocated to it in the Uima AS so that I can
> avoid the error?
>
> Thanks.
>
>