Skip to main content

Posts

Showing posts with the label OPS Related

CATALINA_OPTS vs JAVA_OPTS

JAVA_OPTS may use by Other applications, but only Tomcat will use CATALINA_OPTS. So if you're setting environment variables for use only by Tomcat, you'll be best advised to use CATALINA_OPTS, whereas if you're setting environment variables to be used by other java applications as well, you should put your settings in JAVA_OPTS. What can go in there! You can increase heap memory available to the JVM. You can open remote monitoring ports so that Jconsole on another system can watch how your Tomcat is running. You can add in a -server to switch from the client (quicker start, slower running) JVM to the server (slower starting, quicker running) JVM. You can increase java thread stack size using the -Xss option (same way to specify amount of memory as in -Xms and -Xmx as described in the "increase heap memory" link above. for more visit : http://www.sanjeevrathaur.com/2015/10/javaopts-variable-details.html

Manage Log Files With Logrotate in Ubuntu

You need to install logratate  Sudo apt-get update Sudo apt-get install logrotate For confirm logrotate successfully installed or not run : logrotate Default logrotate configuration are present in : /etc/logrotate.conf Example :  /var/log/tomcat7/catalina.out {      copytruncate       weekly       rotate 52       compress       missingok       create 640 tomcat7 adm       size 5M } What does it means : Copytruncate : Truncate  the  original  log  file  to  zero size in place after creating a  copy,  instead  of  moving  the  old  log  file  and  optionally creating a new one.  It can be used when some program cannot be told to close its  logfile  and  thus  might  continue writing (appending) to the previous log file forever.  Note that  there is a very small time slice between copying  the  file  and  truncating  it,  so  some logging data might be lost.  When this option is used, the create option will have

How To Set Up Multiple SSL Certificates with Nginx on Ubuntu

You can host multiple SSL certificates on one IP Address using Server Name Identification (SNI). SNI ? Although hosting several sites on a single virtual private server is not a challenge with the use of virtual hosts, providing separate SSL certificates for each site traditionally required separate IP addresses. The process has recently been simplified through the use of Server Name Indication (SNI), which sends a site visitor the certificate that matches the requested server name. SNI can only be used for serving multiple SSL sites from your web server and is not likely to work at all on other daemons, such as mail servers, etc. There are also a small percentage of older web browsers that may still give certificate errors. Wikipedia has an updated list of software that does and does not support this TLS extension. Setting Up SNI does need to have registered domain names in order to serve the certificates. The steps in this tutorial require the user to have root privileges. You can