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)