1 package org.gffs.application;
3 import org.apache.commons.logging.Log;
4 import org.apache.commons.logging.LogFactory;
6 import net.sourceforge.sizeof.SizeOf;
19 SizeOf.skipStaticField(
true);
21 SizeOf.setMinSizeToLog(5 * 1024 * 1024);
30 if (!_logger.isDebugEnabled()) {
31 _logger.error(
"abusive memory footprint called when not in debug mode. a logging statement is wrong.");
35 return SizeOf.sizeOf(o);
36 }
catch (Exception e) {
37 _logger.debug(
"error retrieving SizeOf object; is SizeOf.jar in javaagent?");
47 if (!_logger.isDebugEnabled()) {
48 _logger.error(
"abusive memory footprint called when not in debug mode. a logging statement is wrong.");
53 return SizeOf.deepSizeOf(o);
54 }
catch (Exception e) {
55 _logger.debug(
"error retrieving SizeOf object; is SizeOf.jar in javaagent?");