How do you adjust the memory size in GIMP?

And then... how much is enough without threatening other (possibly more important) systems?