Preallocate memory for application

Hello All,Would some one please tell me how to allocation memory for application that need a lot of memory in Java? I remember you can write system.allocateMem()in your application.
[202 byte] By [nuonuoxua] at [2007-10-1 5:36:45]
# 1

byte buffer[];

public void allocateMemory (int bytes) {

buffer=new byte[bytes];

}

-Xms<size>set initial Java heap size

-Xmx<size>set maximum Java heap size

BIJ001a at 2007-7-9 13:47:30 > top of Java-index,Administration Tools,Sun Connection...
# 2
byte buffer[];public void allocateMemory (int bytes) {buffer=new byte[bytes];}How does JVM know to allocate memory to your app by calling this function?
nuonuoxua at 2007-7-9 13:47:30 > top of Java-index,Administration Tools,Sun Connection...