Hi @anonymous_123 ,
Generally the RM heap calculation depends on the yarn.resourcemanager.max-completed-applications value and the number of applications running daily.
Default value for yarn.resourcemanager.max-completed-applications is 10000 but if you see that you dont have enough applications running you can set this to 6000.
Regarding 4GB heap that is production level RM heap and it is fine if you are not seeing any heap related errors.