Warn about metadata and heap size ?

Cantor, Scott cantor.2 at osu.edu
Wed Sep 30 13:02:58 EDT 2015


On 9/30/15, 11:42 AM, "dev on behalf of Rod Widdowson" <dev-bounces at shibboleth.net on behalf of rdw at steadingsoftware.com> wrote:

>> Just wondering if in v3 we want the metadata resolver to warn and possibly
>> not reload if a metadata file size is larger than some value. For example, -
>> Xmx768m does not seem quite enough for the ~20m UK federation
>> metadata. I guess I would rather see a log message at warn that says “raise
>> your heap size” than “java.lang.OutOfMemoryError”, unless of course the
>> latter is recoverable.
>
>My instinct is that this is being overly cute.  It’s the misanthropist in me, but I cannot help but believe that the people who might benefit from this wouldn't see the warning, and the ones who would see the warning wouldn't need it.

I had basically concluded the most we might do is just warn on smaller heaps at startup, but I also realize that isn't going to really matter much either. I just thought it would be a way of shutting down complaints that we changed the guidance on this without warning.

I agree that changing Out of Memory to "increase your heap size" is kind of silly. As long as we're suitably loud about what the failure was (failure to reload the metadata).

I wish there was a CRIT category like the SP has.

-- Scott



More information about the dev mailing list