I want to configure java PermGen option for jenkins.
in search web, I found article which write:
set java_opts JAVA_OPTS="-server -XX:PermSize=128M -XX:MaxPermSize=256m"
other article says:
set java args JAVA_ARGS="-XX:MaxPermSize=512m -Xms512m -Xmx1024m"
Are each options valid? if not, what is the difference?
The only thing that is important is what the actual arguments are in the "-XX:MaxPermSize=512m -Xms512m -Xmx1024m"
.
What you call the environment variables is up to you for the most part, it is whatever the scripts you want to use it are expecting.