I allocated the max heap size to 4GB but still found my java application young & old generation jvm heap memory always increase until 100% full and it was impact the perform