How to set the jvm opts for openfire in linux

I want to run openfire in a linux machine.

If the server have up to 12g memory.

How to use these memory effectively?

Maybe this will help http://community.igniterealtime.org/docs/DOC-1033