On 06.05.2016 14:11, Stefan Frei wrote:
Tomcat 8.0.33
Debain jessie
java 8
Hello
i cannot find any resources how to set configure the setenv.sh for a
production environment.
Does somebody have some tips?
You have not been looking very hard.
How about this for a start :
http://tomcat.apache.org/
-> Problems ? -> FAQ
which leads to :
http://wiki.apache.org/tomcat/FAQ
and more specifically :
- http://wiki.apache.org/tomcat/FAQ/Performance_and_Monitoring
and
- http://wiki.apache.org/tomcat/FAQ/Troubleshooting_and_Diagnostics
and then, consider the following set of tips :
1) the standard parameters with which Tomcat is configured "out of the box" are already
chosen by the Tomcat developers (who presumably know what they are doing), so as to cover
a "reasonable" Tomcat setup and workload.
So don't forget this, and don't start changing things all over the place, before you even
know if there is a problem.
2) before you change anything, make sure that you have a *reason* to change it. Do you
really have a problem ? How do you know that ?
Have you *measured* the problem ?
If you go to a support mailing list, and you just say "my Tomcat is slow", nobody will be
able to help you.
3) before you change any parameter (and there are many), make sure that you really
understand what this setting does. Really. Read the on-line documentation about it,
there is a lot available (like the links above).
4) before you change any parameter (and there are many), make a backup of the previous
settings.
5) Tomcat is Java code, which runs inside a Java Virtual Machine (JVM), which itself runs
under an Operating System, which itself runs on a hardware box.
All of these have configuration parameters (yes, even the box : it has physical RAM, one
or more CPUs, faster or slower disks, faster or slower network connections).
If you really have a problem, is it really a problem with Tomcat, or is it a problem with
the network connection, or a problem with the box on which Tomcat runs, or a problem of
the JVM under which Tomcat runs ?
Assuming that you have read and done all the above,
6) if you start changing parameters, do it one parameter at a time, and then look at the
result and measure again. And if it does not help, go back to the previous configuration,
and read the documentation again, because you obviously thought that it was going to help,
and it didn't. So you must have missed something.
Changing multiple parameters at the same time - except if they are somehow related - is a
good recipe for not understanding anything at all anymore.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org