Commit 37231136 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

tomcat should be restarted after memory limits are changed

parent 3cbf87fc
......@@ -36,6 +36,7 @@ apt-get install -y mc apache2 php libapache2-mod-php7.0 minerva
#change tomcat memory limit to 4GB
sed -i 's/-Xmx128m/-Xmx4192m/g' /etc/default/tomcat7
sed -i 's/-Djava.awt.headless=true/-Djava.awt.headless=true -Xmx4192m/g' /etc/default/tomcat8
service tomcat7 restart
#setup proxy in apache to go to tomcat
sed -i '2i\ ProxyPass /minerva http://localhost:8080/minerva\n ProxyPass /map_images http://localhost:8080/map_images\n ProxyPassReverse /minerva http://localhost:8080/minerva\n ProxyPassReverse /map_images http://localhost:8080/map_images\n' /etc/apache2/sites-enabled/000-default.conf
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment