[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: OutOfMemory



On Fri, 11 May 2001, Eric Richardson wrote:
> Francisco Jose wrote:
> > 
> > What should I do to avoid OutOfMemory exceptions ?
> > I'm very concerned about this kind of issue and
> > I know it is not something only related to ozone
> > and probably it is related with java in general.
> > 
> > As a newbie, I'm enjoying OODBMS advantages, and
> > ozone might play an important role in this new
> > emerging world.
> > 
> I'm not sure what the problem is but you can increase the VM size for
> Java.
> 
> The bin/ozone for UNIX or bin.ozone.bat for windows uses the ozoneEnv or
> ozoneEnv.bat for passing arguments to the VM.
> 
> There is an option is the bin/ozone file as such
> -mx32000000
> but not sure what this is - developers? 

This is equivalent to -Xmx32m. So 32M is the default heap size of the ozone
server.

You can set heap size right in the start script (ozone or ozone.bat) or on Unix
you can also specify -Xmx on the command line of the start script.


Falko

> 
> It appears that the script ozoneEnv is where the Java VM memory should
> be changes via the variable VMARGS=
> 
> Refer the javadoc tools info for arguments to the Java VM. The 1.2.2
> docs say the arg is -Xmx64m and 64m is the default. So you could try
> 128m to change the max VM memory to 128meg. I tried this and on startup
> it reported the following:
> 
> [info] (740) Env:    total: 107585528
> [info] (740) Env:    free : 248808
> [info] (740) Env:    keep : 4000000
> 
> So it seems to honor the argument as this is more than the default
> below.
> 
> info] (448) Env:    total: 25812984
> [info] (448) Env:    free : 196504
> [info] (448) Env:    keep : 2581298
> 
> 
> Hope this helps.
> 
> Eric
-- 
______________________________________________________________________
Falko Braeutigam                              mailto:falko@smb-tec.com
SMB GmbH                                        http://www.smb-tec.com