Kayıtlar

tomcat6 etiketine sahip yayınlar gösteriliyor

How to install and configure tomcat 6 in ubuntu server

Tomcat is a well known and widely used java servlet container. These days I am planning a project, which needs a tomcat 6 in ubuntu server. I found that to make tomcat work in ubuntu is very easy, but you need have a little trick to change your server listening port from 8080 to 80. Here I give you the way that I make it work. 1. Install tomcat 6 in ubuntu normally, you just need to type the following command to install it sudo apt-get install tomcat6 tomcat6-admin tomcat6-common tomcat6-user tomcat6-docs tomcat6-examples 2. Start tomcat sudo /etc/init.d/tomcat6 start   Now, you can use your browser to navigate this address: http://<your ip>:8080   And you will see the tomcat It works! page Usually, HTTP server works with the port 80, but the default port for tomcat is 8080, that is why we need specify 8080 after your ip address. To change the default port from 8080 to 80, type the following command in the terminal: sudo vim /etc/tomcat6/serv...

Change Heap Size of JVM

The aim is to change heap size of JVM. Under the  /usr/share/tomcat6/bin , there is a file name as catalina.sh. In the file you can write CATALINA_OPTS="-Xms256m -Xmx256m" at the 2nd line and then restart the tomcat. To do that, (I supposed that you have a root right. If not , type sudo -s ) First of all, go to the tomcat6 bin directory and stop it.  ex. /etc/init.d/tomcat6 stop Then, change the right of the catalina.sh file as root. Here is;  chown  gunay /usr/share/tomcat6/bin/catalina.sh Important: I have used in ubuntu machine and tomcat6 is ubuntu's tomcat not a standalone version. At the end, you can change file rights as tomcat6 and then start the server. /etc/init.d/tomcat6 start