james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel John Debrunner <...@debrunners.com>
Subject Re: Problems using Derby for stores
Date Wed, 09 Nov 2005 12:08:19 GMT
Bernd Fondermann wrote:

> I set up a local test environment and eventually saw
> (a) OutOfMemorys (but only after a longer period of time, with -Xmx64M)

It may be that the Derby page cache is too big for this memory size. By
default the page cache is 1000 pages, and the default page size is 4k.
However I would guess with James that the default page size is 32k, as
it increases for tables with BLOBs/CLOBs or long rows. Thus the page
cache is much bigger when using BLOBs etc.

You can try bumping the page cache size down,



Either as a system property, or in the derby.properties file.

This is a know issue in Derby, I think there are a couple of possible

 1) define memory usage in Mb, not pages

 2) better dynamic configuration when OutOfMemory exceptions are seen,
    e.g. dynamically reduce cache.


To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org

View raw message