Last active
June 30, 2016 15:50
-
-
Save highel/81ee0b3da8bf3c6c31490ea87af88fac to your computer and use it in GitHub Desktop.
Compressing connector for Pentaho
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Enable GZIP Traffic compression for slow LAN - actually sacrifices performance to much faster network access - you should not apply this mindlessly | |
server.xml | |
<Connector | |
className="Http11Nio2Protocol" | |
enableLookups="false" | |
compression="force" | |
URIEncoding="UTF-8" port="8080" protocol="HTTP/1.1" | |
connectionTimeout="40000" | |
socket.directBuffer="true" | |
redirectPort="8443" /> | |
Default servlet in conf/web.xml | |
<servlet> | |
<servlet-name>default</servlet-name> | |
<servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class> | |
<init-param> | |
<param-name>debug</param-name> | |
<param-value>0</param-value> | |
</init-param> | |
<init-param> | |
<param-name>listings</param-name> | |
<param-value>false</param-value> | |
</init-param> | |
<init-param> | |
<param-name>sendfileSize</param-name> | |
<param-value>-1</param-value> | |
</init-param> | |
<load-on-startup>1</load-on-startup> | |
</servlet> | |
Tweaked JVM ARGS from start-pentaho.sh | |
- enabled Market Place via proxy server so it can install plugins via SSH remote port via ssh <pentaho> -R 3128:<httpproxy>:<proxyport>, | |
- enabled G1 GC, inc | |
- more aggressive JIT compilation | |
- enable Pentaho SSH/JMX monitoring via ssh <pentaho> -L8090:127.0.0.1:8090 | |
-Dcom.sun.management.jmxremote.port=8090 | |
-Dcom.sun.management.jmxremote.rmi.port=8090 | |
-Djava.rmi.server.hostname=127.0.0.1 | |
-Dcom.sun.management.jmxremote.authenticate=false | |
-XX:CompileThreshold=1000 | |
-XX:+UseParallelGC | |
-Dcom.sun.management.jmxremote.ssl=false | |
-Dhttp.proxyHost=127.0.0.1 -Dhttp.proxyPort=3128 -Dhttp.nonProxyHosts=\"localhost|127.0.0.1|10.*.*.*\" | |
-Xms5G -Xmx5G -XX:MaxPermSize=1G -XX:ReservedCodeCacheSize=1G | |
-Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dfile.encoding=utf8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment