RAM will change without restarting the server. The server will restart only when the disk size and the number of cores will be changed.