logo

New Response

« Return to the blog entry

You are replying to:

    • avatar
    • axel
    • Posted on Tue 3 Jan 2012 05:49 AM

    Hi,

    The OoM Error ocurrs after the agent run a few times (a)? Or is it thrown when your users are trying to upload very large images (b)?

    .recycle() is only for lotus.domino.* objects and in case of a) it will be one of those.

    If you don't close Streams properly, you get another exception.

    In case if its more a b) case, I guess JPEGImageDecoder is the culprit, because it needs a lot of memory with large images. You may solve the issue by giving the server-JVM more heap space or restricting the images processed by the agent to a certain threshold of mega- or kilobytes.

    Anyway, first try to find out the reason for the OoM. a) or b) case.

    A notes java agent does recycle the lotus.domino.Session it creates and all the Tree of Domino-Objects generated with this Session. You shall not recycle() those. Recyle() in Agent does only make sense,

    if you a) have loops or

    b) have Domino Objects created with new (happens with RichTextItem)

    You may try JPEGImageDecoder OutOfMemoryException query on the often excelent http://stackoverflow.com

    regards

    Axel

Your Comments

Name:
E-mail:
(optional)
Website:
(optional)
Comment: