[alicebot-aiethics] out of mem error

loki d quaeler alicebot-aiethics@list.alicebot.org
Sat, 11 Aug 2001 09:58:07 -0700


the java virtual machine has a cap on the amount of memory it can 
consume by default.  once it surpasses that, it dies ungracefully as 
seen below - there's nothing much programatically that can be done.  
that being said, you can specify a larger chunk of memory to consume 
using flags to java when you run the application:
-Xms#_
specifies the initial heap size for the start of the vm
-Xmx#_
specifies the maximum size it's allowed to grow to

# is an integer, _ is a unit - either 'm' for megabytes, or 'g' for 
gigabytes

so:

java -Xms128m -Xmx2g org.bla.bla.Bla

launches the app with a claimed space of 128 megabytes, and tells the vm 
that it's allowed to grow to 2 gigabytes of memory space.

loki


On Friday, August 10, 2001, at 07:51 PM, John Conrad wrote:

> At somepoint while adding more to the *.aiml,
> somewhere between 27,000 and 27,200, I have come to
> java.lang.outofmemoryerror
>         <<no stack trace available>>
> Could someone explain?
> Sorry if I missed it the pages
> J Conrad
> _______________________________________________
> alicebot-aiethics mailing list
> alicebot-aiethics@list.alicebot.org
> http://list.alicebot.org/mailman/listinfo.cgi/alicebot-aiethics
>
>