You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by MINT <mi...@gmail.com> on 2010/02/17 03:53:20 UTC

Occures error while merging indexes and java.lang.OutOfMemoryError

Hello,
I'm really thankful for all the jackrabbit contributors..Jackrabbit is very
nice and well working..

Nowadays, I get java.lang.OutOfMemoryError every 1 or 2 days like below..

===================
*INFO * MultiIndex: Unable to delete obsolete index: _38yb (MultiIndex.java,
line 1246)

*ERROR* IndexMerger: Error while merging indexes:  (IndexMerger.java, line
568)
java.lang.OutOfMemoryError: Java heap space
===================

I'm running Jackrabbit 2.0 on Tomcat5.5 with max heap memory 1024m..

I don't have any clue why this happens occasionally..

Is there an any way to fix indices or any option not to this happen?
Any hint would be really thankful..

BR,

Marcus

-- 
Thanks.

Re: Occures error while merging indexes and java.lang.OutOfMemoryError

Posted by Park Marcus <mi...@gmail.com>.
Hi Jukka,
>
Thank you for your immediate response.

The OOM error does not always occur, but once the OOM error occurs the  
system is getting slower. And I didnt set the maxLength, so the  
default value would be 10000.
As you did guess, there were huge documents indexed some are several  
hundreds mega bytes per file. I think this causes the error.
In this case, how can i get the indices normal? Any help would be  
really helpful.
Thanks.
BR,
Marcus


Thanks!

On Feb 17, 2010, at 4:44 PM, Jukka Zitting <ju...@gmail.com>  
wrote:

> Hi,
>
> On Wed, Feb 17, 2010 at 3:53 AM, MINT <mi...@gmail.com> wrote:
>> Nowadays, I get java.lang.OutOfMemoryError every 1 or 2 days like  
>> below..
>> [...]
>> I'm running Jackrabbit 2.0 on Tomcat5.5 with max heap memory 1024m..
>>
>> I don't have any clue why this happens occasionally..
>>
>> Is there an any way to fix indices or any option not to this happen?
>
> Does the OOM error always occur with the index merger? What's your
> maxFieldLength setting? It may be that you have some huge document(s)
> indexed, which together with a large maxFieldLength setting may cause
> extra memory use during index merging.
>
> Alternatively you may simply be hitting a normal memory limit
> especially if you have lots (hundreds) of open sessions accessing the
> repository. Increasing the max heap limit should get you around that.
>
> You may also want to try getting a heap dump of the JVM when you see
> the memory use go over some limit (80% of max heap). That should help
> identify where the memory is going.
>
> BR,
>
> Jukka Zitting

Re: Occures error while merging indexes and java.lang.OutOfMemoryError

Posted by Jukka Zitting <ju...@gmail.com>.
Hi,

On Wed, Feb 17, 2010 at 3:53 AM, MINT <mi...@gmail.com> wrote:
> Nowadays, I get java.lang.OutOfMemoryError every 1 or 2 days like below..
> [...]
> I'm running Jackrabbit 2.0 on Tomcat5.5 with max heap memory 1024m..
>
> I don't have any clue why this happens occasionally..
>
> Is there an any way to fix indices or any option not to this happen?

Does the OOM error always occur with the index merger? What's your
maxFieldLength setting? It may be that you have some huge document(s)
indexed, which together with a large maxFieldLength setting may cause
extra memory use during index merging.

Alternatively you may simply be hitting a normal memory limit
especially if you have lots (hundreds) of open sessions accessing the
repository. Increasing the max heap limit should get you around that.

You may also want to try getting a heap dump of the JVM when you see
the memory use go over some limit (80% of max heap). That should help
identify where the memory is going.

BR,

Jukka Zitting