origin_runtime_18 Database tuning based on gear memory size

Database tuning based on maximum available memory for the gear, when DB is on a standalone gear.