Uploaded image for project: 'ProtoStream'
  1. ProtoStream
  2. IPROTO-155

FileDescriptors use too much memory

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.3.3.Final
    • None
    • False
    • False

      E.g. a single persistence.counters.proto FileDescriptor instance uses 967KB.

      I'm not sure if the field documentation is useful for anything after the annotations have been parsed, but it is kept in memory, and in a hotrod-client test each DefaultCacheManager instance seem to need 3 instances of the string There is no native byte type in protobuf so it is mapped to int32. from the WrappedMessage.wrappedByte documentation.

      Many lists are LinkedList instances, even though a LinkedList with 3 elements uses more memory than an ArrayList with 10 elements. Some lists are also wrapped in Collections$UnmodifiableRandomAccessList twice.

      FileDescriptor HashMap fields (extendDescriptors, dependants) are never queried by key.

              ttarrant@redhat.com Tristan Tarrant
              dberinde@redhat.com Dan Berindei (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Archived: