Updated JBoss cartridges to use OPENSHIFT_GEAR_MEMORY_MB for memory calculations
Merge pull request #3912 from fotioslindiakos/java_memory_optimization

Merged by openshift-bot