Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Piotr Gawron
minerva-scripts
Commits
37231136
Commit
37231136
authored
Sep 04, 2018
by
Piotr Gawron
Browse files
tomcat should be restarted after memory limits are changed
parent
3cbf87fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/install.sh
View file @
37231136
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment