This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
i have read the other discussions on the same topic but none of them explains the procedure for linux environment. I have my tomcat and jdk on red hat linux. how can i set the heap space value? when i do it in JAVA_OPTS and restart the tomcat..nothing changes....please help....
the command above runs your class with java heap set to 128MB
Tomcat has its own startup script(s), which expect java command options to be in JAVA_OPTS environment variable. This is mainly because you dont have direct access to java command line when you run tomcat. So to run Tomcat with 256MB of heap you do something like: