pkg/deb: updated default values for memory in init.d scripts

(cherry picked from commit a8e3b9187ba14177add9b3550761b95fd7098911)
pkg/rpm: updated values for memory size in specs

(cherry picked from commit 22aef82dbc60f67dd606e568308114118de729a0)