1

Linux RHEL6 allocates more memory to run java program

view story
linux-howto

http://stackoverflow.com – Running my java application takes more memory on my new rhel62 machine. The same program takes less memory on rhel55. i wrote a very simple 'HelloWorld' java program, and run it. That too takes huge memory in rhel62. I am using Java_1.7 in both Rhel55 and Rhel62 import java.io.* ; class HelloWorldApp { public static void main(String[] args) { System.out.println("Hello World!"); // Display the string. Console console = System.console(); String input = console.readLine("Enter ...:"); System.out.println(input); } } $ /usr/java/jdk1.7.0_09/bin/javac hello. (HowTos)