This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
I am planning to run tomcat for my production server deploy my app in tomcat, I have to make memory orptions are set well.
I want to specify memory arguments in catalina.sh
I will add this line is this all we need for more memory? Please advice me , I am also new bee to linux I dont want to set environment variables but just modifiy catalina.sh for memory arguments.Please advice.
The catalina.sh script will look for a TOMCAT_HOME/bin/setenv.sh file and "source" it if it exists. If you put your JAVA_OPTS environment assignment there, you can get the same result without modifying your catalina.sh script (and possibly breaking it!).
An IDE is no substitute for an Intelligent Developer.
Joined: Nov 30, 2007
is there anything more I should worry apart from memory settings ?
I will create datasources, set memeory, what more should I do to make it production servlet engine?
do I have to check if java.io.temp path has sufficient space etc ?
is there anything in them machine i have to check? , this will be running in linux.
Depending on workload, you may not need to do anything at all. Tomcat's out-of-the-box configuration is pretty serviceable. The main things I have to tailor tend to be stuff like copying in the database drivers that I need to the TOMCAT_HOME/lib directory.
The only real way to tell is to set up stress testing that models what you're actually going to deploy and how people will be using it.
And yes, the disk drive that Tomcat's temp directory is located on should have a decent amount of free space, but usually that's not a lot of space required - unless a lot of people upload large files at the same time.