Wednesday 21 September 2016

CIFS Mounting in Linux


1. Open fstab file





                #vim /etc/fstab/






2. Add the following line.


               /192.168.10.101/Projects /Project-Folder cifs username=name,password=pwd 0 0


3. Save the file.

     

How to Change JVM Heap settings of apache tomcat in Linux


1. Go to apache installation folder

                    # cd /home/apache-tomcat-8.5.4/bin/

2. Edit setenv.sh as follows

                    # vim setenv.sh

export CATALINA_OPTS="$CATALINA_OPTS -Xms1024m"
export CATALINA_OPTS="$CATALINA_OPTS -Xmx1024m"
export CATALINA_OPTS="$CATALINA_OPTS -XX:MaxPermSize=512m"

3. Save the file

4. Execute the command

                       # ./catalina.sh