Commit 1869aee3 by Nigel Jones Committed by David Radley

ATLAS-2233: Remove -XX:MaxPermSize Parm as removed in Java 8

parent c7a61629
...@@ -49,7 +49,7 @@ Build Process ...@@ -49,7 +49,7 @@ Build Process
2. Execute the following commands to build Apache Atlas 2. Execute the following commands to build Apache Atlas
$ export MAVEN_OPTS="-Xms2g -Xmx2g -XX:MaxPermSize=512M" $ export MAVEN_OPTS="-Xms2g -Xmx2g"
$ mvn clean install $ mvn clean install
# currently few tests might fail in some environments # currently few tests might fail in some environments
......
...@@ -219,7 +219,6 @@ ...@@ -219,7 +219,6 @@
</args> </args>
<jvmArgs> <jvmArgs>
<jvmArg>-Xmx512m</jvmArg> <jvmArg>-Xmx512m</jvmArg>
<jvmArg>-XX:MaxPermSize=128m</jvmArg>
</jvmArgs> </jvmArgs>
</configuration> </configuration>
</plugin> </plugin>
......
...@@ -127,7 +127,6 @@ ...@@ -127,7 +127,6 @@
</args> </args>
<jvmArgs> <jvmArgs>
<jvmArg>-Xmx512m</jvmArg> <jvmArg>-Xmx512m</jvmArg>
<jvmArg>-XX:MaxPermSize=128m</jvmArg>
</jvmArgs> </jvmArgs>
<!-- <!--
<javacArgs> <javacArgs>
......
...@@ -379,7 +379,6 @@ ...@@ -379,7 +379,6 @@
</args> </args>
<jvmArgs> <jvmArgs>
<jvmArg>-Xmx512m</jvmArg> <jvmArg>-Xmx512m</jvmArg>
<jvmArg>-XX:MaxPermSize=128m</jvmArg>
</jvmArgs> </jvmArgs>
<!-- <!--
<javacArgs> <javacArgs>
......
...@@ -24,7 +24,7 @@ import atlas_config as mc ...@@ -24,7 +24,7 @@ import atlas_config as mc
ATLAS_LOG_OPTS="-Datlas.log.dir=%s -Datlas.log.file=%s.log" ATLAS_LOG_OPTS="-Datlas.log.dir=%s -Datlas.log.file=%s.log"
ATLAS_COMMAND_OPTS="-Datlas.home=%s" ATLAS_COMMAND_OPTS="-Datlas.home=%s"
ATLAS_CONFIG_OPTS="-Datlas.conf=%s" ATLAS_CONFIG_OPTS="-Datlas.conf=%s"
DEFAULT_JVM_HEAP_OPTS="-Xmx1024m -XX:MaxPermSize=512m" DEFAULT_JVM_HEAP_OPTS="-Xmx1024m"
DEFAULT_JVM_OPTS="-Dlog4j.configuration=atlas-log4j.xml -Djava.net.preferIPv4Stack=true -server" DEFAULT_JVM_OPTS="-Dlog4j.configuration=atlas-log4j.xml -Djava.net.preferIPv4Stack=true -server"
def main(): def main():
......
...@@ -37,8 +37,6 @@ ...@@ -37,8 +37,6 @@
# java heap size we want to set for the atlas server. Default is 1024MB # java heap size we want to set for the atlas server. Default is 1024MB
#export ATLAS_SERVER_HEAP= #export ATLAS_SERVER_HEAP=
# indicative values for large number of metadata entities (equal or more than 10,000s) for JDK 7
#export ATLAS_SERVER_HEAP="-Xms15360m -Xmx15360m -XX:MaxNewSize=3072m -XX:PermSize=100M -XX:MaxPermSize=512m"
# indicative values for large number of metadata entities (equal or more than 10,000s) for JDK 8 # indicative values for large number of metadata entities (equal or more than 10,000s) for JDK 8
#export ATLAS_SERVER_HEAP="-Xms15360m -Xmx15360m -XX:MaxNewSize=5120m -XX:MetaspaceSize=100M -XX:MaxMetaspaceSize=512m" #export ATLAS_SERVER_HEAP="-Xms15360m -Xmx15360m -XX:MaxNewSize=5120m -XX:MetaspaceSize=100M -XX:MaxMetaspaceSize=512m"
......
...@@ -128,7 +128,7 @@ class TestMetadata(unittest.TestCase): ...@@ -128,7 +128,7 @@ class TestMetadata(unittest.TestCase):
['-app', 'atlas_home\\server\\webapp\\atlas'], ['-app', 'atlas_home\\server\\webapp\\atlas'],
'atlas_home\\conf;atlas_home\\server\\webapp\\atlas\\WEB-INF\\classes;atlas_home\\server\\webapp\\atlas\\WEB-INF\\lib\\*;atlas_home\\libext\\*;atlas_home\\hbase\\conf', 'atlas_home\\conf;atlas_home\\server\\webapp\\atlas\\WEB-INF\\classes;atlas_home\\server\\webapp\\atlas\\WEB-INF\\lib\\*;atlas_home\\libext\\*;atlas_home\\hbase\\conf',
['-Datlas.log.dir=atlas_home\\logs', '-Datlas.log.file=application.log', '-Datlas.home=atlas_home', ['-Datlas.log.dir=atlas_home\\logs', '-Datlas.log.file=application.log', '-Datlas.home=atlas_home',
'-Datlas.conf=atlas_home\\conf', '-Xmx1024m', '-XX:MaxPermSize=512m', '-Datlas.conf=atlas_home\\conf', '-Xmx1024m',
'-Dlog4j.configuration=atlas-log4j.xml', '-Djava.net.preferIPv4Stack=true', '-server'], '-Dlog4j.configuration=atlas-log4j.xml', '-Djava.net.preferIPv4Stack=true', '-server'],
'atlas_home\\logs') 'atlas_home\\logs')
...@@ -138,7 +138,7 @@ class TestMetadata(unittest.TestCase): ...@@ -138,7 +138,7 @@ class TestMetadata(unittest.TestCase):
['-app', 'atlas_home/server/webapp/atlas'], ['-app', 'atlas_home/server/webapp/atlas'],
'atlas_home/conf:atlas_home/server/webapp/atlas/WEB-INF/classes:atlas_home/server/webapp/atlas/WEB-INF/lib/*:atlas_home/libext/*:atlas_home/hbase/conf', 'atlas_home/conf:atlas_home/server/webapp/atlas/WEB-INF/classes:atlas_home/server/webapp/atlas/WEB-INF/lib/*:atlas_home/libext/*:atlas_home/hbase/conf',
['-Datlas.log.dir=atlas_home/logs', '-Datlas.log.file=application.log', '-Datlas.home=atlas_home', ['-Datlas.log.dir=atlas_home/logs', '-Datlas.log.file=application.log', '-Datlas.home=atlas_home',
'-Datlas.conf=atlas_home/conf', '-Xmx1024m', '-XX:MaxPermSize=512m', '-Datlas.conf=atlas_home/conf', '-Xmx1024m',
'-Dlog4j.configuration=atlas-log4j.xml', '-Djava.net.preferIPv4Stack=true', '-server'], '-Dlog4j.configuration=atlas-log4j.xml', '-Djava.net.preferIPv4Stack=true', '-server'],
'atlas_home/logs') 'atlas_home/logs')
...@@ -221,7 +221,7 @@ class TestMetadata(unittest.TestCase): ...@@ -221,7 +221,7 @@ class TestMetadata(unittest.TestCase):
['-app', 'atlas_home\\server\\webapp\\atlas'], ['-app', 'atlas_home\\server\\webapp\\atlas'],
'atlas_home\\conf;atlas_home\\server\\webapp\\atlas\\WEB-INF\\classes;atlas_home\\server\\webapp\\atlas\\WEB-INF\\lib\\*;atlas_home\\libext\\*;atlas_home\\hbase\\conf', 'atlas_home\\conf;atlas_home\\server\\webapp\\atlas\\WEB-INF\\classes;atlas_home\\server\\webapp\\atlas\\WEB-INF\\lib\\*;atlas_home\\libext\\*;atlas_home\\hbase\\conf',
['-Datlas.log.dir=atlas_home\\logs', '-Datlas.log.file=application.log', '-Datlas.home=atlas_home', ['-Datlas.log.dir=atlas_home\\logs', '-Datlas.log.file=application.log', '-Datlas.home=atlas_home',
'-Datlas.conf=atlas_home\\conf', '-Xmx1024m', '-XX:MaxPermSize=512m', '-Datlas.conf=atlas_home\\conf', '-Xmx1024m',
'-Dlog4j.configuration=atlas-log4j.xml', '-Djava.net.preferIPv4Stack=true', '-server'], '-Dlog4j.configuration=atlas-log4j.xml', '-Djava.net.preferIPv4Stack=true', '-server'],
'atlas_home\\logs') 'atlas_home\\logs')
...@@ -231,7 +231,7 @@ class TestMetadata(unittest.TestCase): ...@@ -231,7 +231,7 @@ class TestMetadata(unittest.TestCase):
['-app', 'atlas_home/server/webapp/atlas'], ['-app', 'atlas_home/server/webapp/atlas'],
'atlas_home/conf:atlas_home/server/webapp/atlas/WEB-INF/classes:atlas_home/server/webapp/atlas/WEB-INF/lib/*:atlas_home/libext/*:atlas_home/hbase/conf', 'atlas_home/conf:atlas_home/server/webapp/atlas/WEB-INF/classes:atlas_home/server/webapp/atlas/WEB-INF/lib/*:atlas_home/libext/*:atlas_home/hbase/conf',
['-Datlas.log.dir=atlas_home/logs', '-Datlas.log.file=application.log', '-Datlas.home=atlas_home', ['-Datlas.log.dir=atlas_home/logs', '-Datlas.log.file=application.log', '-Datlas.home=atlas_home',
'-Datlas.conf=atlas_home/conf', '-Xmx1024m', '-XX:MaxPermSize=512m', '-Datlas.conf=atlas_home/conf', '-Xmx1024m',
'-Dlog4j.configuration=atlas-log4j.xml', '-Djava.net.preferIPv4Stack=true', '-server'], '-Dlog4j.configuration=atlas-log4j.xml', '-Djava.net.preferIPv4Stack=true', '-server'],
'atlas_home/logs') 'atlas_home/logs')
......
...@@ -92,7 +92,7 @@ export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Hom ...@@ -92,7 +92,7 @@ export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_101.jdk/Contents/Hom
export M2_HOME=/Applications/apache-maven-3.3.9 # Git is installed in the system path export M2_HOME=/Applications/apache-maven-3.3.9 # Git is installed in the system path
export PYTHON_HOME='/Applications/Python 2.7' export PYTHON_HOME='/Applications/Python 2.7'
export PATH=$PYTHON_HOME:$M2_HOME/bin:$JAVA_HOME/bin:$PATH export PATH=$PYTHON_HOME:$M2_HOME/bin:$JAVA_HOME/bin:$PATH
export MAVEN_OPTS="-Xmx1536m -Drat.numUnapprovedLicenses=100 -XX:MaxPermSize=256m" export MAVEN_OPTS="-Xmx1536m -Drat.numUnapprovedLicenses=100"
</verbatim> </verbatim>
* If you do not want to set Java 8 as your system java, you can use this bash script to setup the environment and run Eclipse (which you can drop in Applications and rename to neon). * If you do not want to set Java 8 as your system java, you can use this bash script to setup the environment and run Eclipse (which you can drop in Applications and rename to neon).
......
...@@ -7,7 +7,7 @@ git clone https://git-wip-us.apache.org/repos/asf/atlas.git atlas ...@@ -7,7 +7,7 @@ git clone https://git-wip-us.apache.org/repos/asf/atlas.git atlas
cd atlas cd atlas
export MAVEN_OPTS="-Xmx1536m -XX:MaxPermSize=512m" && mvn clean install export MAVEN_OPTS="-Xmx1536m" && mvn clean install
</verbatim> </verbatim>
Once the build successfully completes, artifacts can be packaged for deployment. Once the build successfully completes, artifacts can be packaged for deployment.
...@@ -198,11 +198,6 @@ export ATLAS_SERVER_OPTS="-server -XX:SoftRefLRUPolicyMSPerMB=0 -XX:+CMSClassUnl ...@@ -198,11 +198,6 @@ export ATLAS_SERVER_OPTS="-server -XX:SoftRefLRUPolicyMSPerMB=0 -XX:+CMSClassUnl
The =-XX:SoftRefLRUPolicyMSPerMB= option was found to be particularly helpful to regulate GC performance for The =-XX:SoftRefLRUPolicyMSPerMB= option was found to be particularly helpful to regulate GC performance for
query heavy workloads with many concurrent users. query heavy workloads with many concurrent users.
The following values are recommended for JDK 7:
<verbatim>
export ATLAS_SERVER_HEAP="-Xms15360m -Xmx15360m -XX:MaxNewSize=3072m -XX:PermSize=100M -XX:MaxPermSize=512m"
</verbatim>
The following values are recommended for JDK 8: The following values are recommended for JDK 8:
<verbatim> <verbatim>
export ATLAS_SERVER_HEAP="-Xms15360m -Xmx15360m -XX:MaxNewSize=5120m -XX:MetaspaceSize=100M -XX:MaxMetaspaceSize=512m" export ATLAS_SERVER_HEAP="-Xms15360m -Xmx15360m -XX:MaxNewSize=5120m -XX:MetaspaceSize=100M -XX:MaxMetaspaceSize=512m"
......
...@@ -1968,7 +1968,7 @@ ...@@ -1968,7 +1968,7 @@
<redirectTestOutputToFile>true</redirectTestOutputToFile> <redirectTestOutputToFile>true</redirectTestOutputToFile>
<argLine>-Djava.awt.headless=true -Dproject.version=${project.version} <argLine>-Djava.awt.headless=true -Dproject.version=${project.version}
-Dhadoop.tmp.dir="${project.build.directory}/tmp-hadoop-${user.name}" -Dhadoop.tmp.dir="${project.build.directory}/tmp-hadoop-${user.name}"
-Xmx1024m -XX:MaxPermSize=512m -Djava.net.preferIPv4Stack=true ${atlas.surefire.options} -Xmx1024m -Djava.net.preferIPv4Stack=true ${atlas.surefire.options}
</argLine> </argLine>
<skip>${skipUTs}</skip> <skip>${skipUTs}</skip>
</configuration> </configuration>
...@@ -1994,7 +1994,7 @@ ...@@ -1994,7 +1994,7 @@
<redirectTestOutputToFile>true</redirectTestOutputToFile> <redirectTestOutputToFile>true</redirectTestOutputToFile>
<argLine>-Djava.awt.headless=true -Dproject.version=${project.version} <argLine>-Djava.awt.headless=true -Dproject.version=${project.version}
-Dhadoop.tmp.dir="${project.build.directory}/tmp-hadoop-${user.name}" -Dhadoop.tmp.dir="${project.build.directory}/tmp-hadoop-${user.name}"
-Xmx1024m -XX:MaxPermSize=512m ${atlas.surefire.options} -Xmx1024m ${atlas.surefire.options}
</argLine> </argLine>
<skip>${skipITs}</skip> <skip>${skipITs}</skip>
<reuseForks>false</reuseForks> <reuseForks>false</reuseForks>
......
...@@ -205,7 +205,6 @@ ...@@ -205,7 +205,6 @@
</args> </args>
<jvmArgs> <jvmArgs>
<jvmArg>-Xmx512m</jvmArg> <jvmArg>-Xmx512m</jvmArg>
<jvmArg>-XX:MaxPermSize=128m</jvmArg>
</jvmArgs> </jvmArgs>
</configuration> </configuration>
</plugin> </plugin>
......
...@@ -143,7 +143,6 @@ ...@@ -143,7 +143,6 @@
</args> </args>
<jvmArgs> <jvmArgs>
<jvmArg>-Xmx512m</jvmArg> <jvmArg>-Xmx512m</jvmArg>
<jvmArg>-XX:MaxPermSize=128m</jvmArg>
</jvmArgs> </jvmArgs>
</configuration> </configuration>
</plugin> </plugin>
......
...@@ -525,7 +525,7 @@ ...@@ -525,7 +525,7 @@
<redirectTestOutputToFile>true</redirectTestOutputToFile> <redirectTestOutputToFile>true</redirectTestOutputToFile>
<argLine>-Djava.awt.headless=true -Dproject.version=${project.version} <argLine>-Djava.awt.headless=true -Dproject.version=${project.version}
-Dhadoop.tmp.dir=${project.build.directory}/tmp-hadoop-${user.name} -Dhadoop.tmp.dir=${project.build.directory}/tmp-hadoop-${user.name}
-Xmx1024m -XX:MaxPermSize=512m -Xmx1024m
</argLine> </argLine>
</configuration> </configuration>
<executions> <executions>
......
Markdown is supported
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