Results 1 to 5 of 5

Thread: [3.3.1] OutOfMemory in client when slice definition modified

  1. #1
    joshmoore is offline Registered User
    Name: Josh Moore
    Organization: Glencoe Software, Inc.
    Project: OMERO, http://trac.openmicroscopy.org.uk/omero
    Join Date
    Feb 2007
    Location
    Germany
    Posts
    115

    [3.3.1] OutOfMemory in client when slice definition modified

    The addition of an object to our EventContext type definition:
    Code:
    diff --git a/components/blitz/resources/omero/System.ice b/components/blitz/resources/omero/System.ice
    index bd84c53..9ccd744 100644
    --- a/components/blitz/resources/omero/System.ice
    +++ b/components/blitz/resources/omero/System.ice
    @@ -40,6 +40,7 @@ module omero {
           LongList memberOfGroups;
           LongList leaderOfGroups;
           omero::model::Permissions umask;
    +      omero::model::Permissions groupPermissions;
         };
    lead to the following failure in a client which had not yet updated its jar:

    Code:
    Data Retrieval Failure: java.lang.OutOfMemoryError: Java heap space
        at IceInternal.BasicStream.readString(BasicStream.java:1301)
        at IceInternal.BasicStream.readTypeId(BasicStream.java:665)
        at Ice.ObjectImpl.__read(ObjectImpl.java:246)
        at omero.sys.EventContext.__read(EventContext.java:176)
        at IceInternal.BasicStream.readObject(BasicStream.java:1590)
        at IceInternal.BasicStream.readPendingObjects(BasicStream.java:1739)
        at omero.api._IAdminDelM.getEventContext(_IAdminDelM.java:985)
    Cheers,
    ~Josh.

  2. #2
    bernard's Avatar
    bernard is offline ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    Hi Josh,

    If you set a large Ice.MessageSizeMax for your application, this is not unexpected.

    See http://www.zeroc.com/faq/requestSizeLimit.html

    Best regards,
    Bernard
    Bernard Normier
    ZeroC, Inc.

  3. #3
    joshmoore is offline Registered User
    Name: Josh Moore
    Organization: Glencoe Software, Inc.
    Project: OMERO, http://trac.openmicroscopy.org.uk/omero
    Join Date
    Feb 2007
    Location
    Germany
    Posts
    115
    We do increase MessageSizeMax on all our clients & servers, but only to 64MB. Would this be enough to cause an OOM in such a situtation? I ask because this is the among the first method in our handshake as well as the keepalive ping method. Having it fail due to a stale jar is certainly unfortunate.

    Thanks,
    ~Josh

  4. #4
    benoit's Avatar
    benoit is online now ZeroC Staff
    Name: Benoit Foucher
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Rennes, France
    Posts
    2,196
    Hi Josh,

    After having a closer look, I think it's a bug in Ice for Java. Thanks for the report, we will fix this for 3.4.

    Cheers,
    Benoit.

  5. #5
    joshmoore is offline Registered User
    Name: Josh Moore
    Organization: Glencoe Software, Inc.
    Project: OMERO, http://trac.openmicroscopy.org.uk/omero
    Join Date
    Feb 2007
    Location
    Germany
    Posts
    115
    Thanks, guys.

    And, of course, I meant "the addition led to ... "

    ~J.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Using IceUtil::Time in a Slice definition
    By sidney in forum Help Center
    Replies: 2
    Last Post: 03-19-2010, 04:33 AM
  2. ice.slice definition problem
    By Marek Nos in forum Help Center
    Replies: 0
    Last Post: 05-27-2009, 07:51 AM
  3. slice definition if dfstream file
    By moshehak in forum Help Center
    Replies: 1
    Last Post: 02-21-2008, 07:47 AM
  4. slice definition for type ID?
    By peterlspot in forum Comments
    Replies: 5
    Last Post: 11-28-2007, 10:13 PM
  5. How to use Slice defined Types in another definition
    By Venkat Seeth in forum Help Center
    Replies: 4
    Last Post: 02-22-2005, 12:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •