(bug-fix) When setting memory cap/share, also update the max memory accordingly
(bug-fix) When setting memory cap/share, also update the max memory accordingly

sguazt/prometheus,sguazt/prometheus,sguazt/dcsxx-testbed,sguazt/prometheus