Iam developing a product using Java Swings on NetBeans4.1 IDE.
How to allocate memory to JVM programatically? I need to know if there
are any classes that can be used in allocating memory to JVM for J2SE
applications. At runtime we can do by java -Xms<size> -Xmx<size>
appName.
But i need to know if there is any code to replace this.