How to allocate Ram for a new bucket that has to be created?

May I know how to setup the bucket in Couchbase Server Community Edition 4.0 and how to allocate RAM for each bucket.

Thanks in advance

When you create a new bucket, you should be presented with a “Memory Size” option where you can specify the “Per Node RAM Quota”. This is a screenshot from 4.5 beta, but there should be something similar on 4.0.