In order to verify or to change Java memory setting, please go to the below path
$ECOMETER_HOME/bin/ecoMeter there is a line:
JAVA_OPTS="$JAVA_OPTS -Xms512m -Xmx4096m -Djava.library.path=$CATALINA_HOME/bin"; export JAVA_OPTS
the -Xmx arg sets the memory limit