You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by "Cech. Ulrich" <Ul...@aeb.de> on 2010/03/31 11:23:46 UTC

Jackrabbit MemoryManagement

Hello,

I just running a mass test with some hundrets of thousends files (all have 15 properties), very structured repo tree (no more than 2000 direct child nodes!).

Everything works fine so long, but I see a very slight increasing of used memory.
Every document storage ends with a "session.save()", so there are no transient changes anymore. Every 100 documents, I do a little "break" and call System.gc().

I see, that the used memory is hold on a certain value (some kb more and less) for a yet long time (about 30-60 min.), then there is an increase of some MB, holding for next 30.60 min and so on.

I did not change any cache settings, so the cache should only the 16MB (default values, if I look exactly).

Is this perhaps the index, which consumes more and more memory? Is there a setting to limit the maximum used memory? I would solve this, so that the system does not crash down with an OutOfMemoryException some days.

Thanks for any hints/advices,
Ulrich


AW: Jackrabbit MemoryManagement

Posted by "Cech. Ulrich" <Ul...@aeb.de>.
< Are you talking about JVM memory usage, or just memory consumption on
the machine?>
It's the JVM memory usage (sorry for not specifying this). I run a very simple jackrabbit standalone, no network is involved or anything else.

The test now runs nearly 12h without interruption, the JVM memory usage stays stable the last 6h. The test will run some more 48h, then I will see, if the memory increases some more.

Are there any settings other then the cache sizes, which affects the JVM memory usage of the "jackrabbit system", which I should care of?

Thanks again,
Ulrich


Re: Jackrabbit MemoryManagement

Posted by ChadDavis <ch...@gmail.com>.
On Wed, Mar 31, 2010 at 3:23 AM, Cech. Ulrich <Ul...@aeb.de> wrote:
> Hello,
>
> I just running a mass test with some hundrets of thousends files (all have 15 properties), very structured repo tree (no more than 2000 direct child nodes!).
>
> Everything works fine so long, but I see a very slight increasing of used memory.
> Every document storage ends with a "session.save()", so there are no transient changes anymore. Every 100 documents, I do a little "break" and call System.gc().
>
> I see, that the used memory is hold on a certain value (some kb more and less) for a yet long time (about 30-60 min.), then there is an increase of some MB, holding for next 30.60 min and so on.
>
> I did not change any cache settings, so the cache should only the 16MB (default values, if I look exactly).
>
> Is this perhaps the index, which consumes more and more memory? Is there a setting to limit the maximum used memory? I would solve this, so that the system does not crash down with an OutOfMemoryException some days.
>

Are you talking about JVM memory usage, or just memory consumption on
the machine?  I ask because we had some recent tests show that the
network connections opened were not going away after they were through
being used.  But I think this went away in recent version.  Of course,
this is specific to my SPI/Davex networked setup.