Uploaded image for project: 'CREAM'
  1. CREAM
  2. CREAM-84

The DelegationPurger may cause a java.lang.OutOfMemoryError exception

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.16.1, 1.14.5
    • Security Level: Public (Visbile by non-authn users.)
    • Labels:
      None

      Description

      GGUS: https://ggus.eu/tech/ticket_show.php?ticket=88207
      Savannah: https://savannah.cern.ch/bugs/index.php?100609

      The DelegationPurger may cause the following exception if the list of delegations to be purged is very big (>100000):
      Exception in thread "TIMER" java.lang.OutOfMemoryError: Java heap space
      at java.util.Arrays.copyOf(Arrays.java:2894)
      at java.lang.String.<init>(String.java:196)
      at com.mysql.jdbc.SingleByteCharsetConverter.toString(SingleByteCharsetConverter.java:330)
      at com.mysql.jdbc.ResultSetRow.getString(ResultSetRow.java:797)
      at com.mysql.jdbc.BufferRow.getString(BufferRow.java:544)
      at com.mysql.jdbc.ResultSetImpl.getStringInternal(ResultSetImpl.java:5700)
      at com.mysql.jdbc.ResultSetImpl.getString(ResultSetImpl.java:5577)
      at com.mysql.jdbc.ResultSetImpl.getString(ResultSetImpl.java:5617)
      at org.apache.commons.dbcp.DelegatingResultSet.getString(DelegatingResultSet.java:224)
      at org.glite.ce.cream.delegationmanagement.db.DelegationDBManager.makeDelegation(DelegationDBManager.java:122)
      at org.glite.ce.cream.delegationmanagement.db.DelegationDBManager.getExpiredDelegation(DelegationDBManager.java:258)
      at org.glite.ce.cream.delegationmanagement.DelegationManager.getExpiredDelegation(DelegationManager.java:147)
      at org.glite.ce.cream.delegationmanagement.DelegationPurger.run(DelegationPurger.java:45)
      at java.util.TimerThread.mainLoop(Timer.java:534)
      at java.util.TimerThread.run(Timer.java:484)

        Attachments

          Activity

            People

            Assignee:
            zangrand Lisa Zangrando
            Reporter:
            zangrand Lisa Zangrando
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: