How to increase heap size in jme

Hi everyone! i keep getting a lang…Buffer OutOfMemoryException each time i create terrain in the scene composer,or open an image>3mb in the material editor ,and upon restarting ,i can load my image but i dont always get to see the terrain in the scene composer as the error persists at times.I heard about the jmonkeyplatform.conf file ,now i dont know what to change.

quick search provides answers like:

http://hub.jmonkeyengine.org/forum/topic/sdk-hanging-and-not-loading-scene-when-i-try-to-load-a-scene-in-the-scenecomposer-terrain-editor/

https://wiki.jmonkeyengine.org/legacy/doku.php/sdk:increasing_heap_memory

Thaanx for the feedback