#!/bin/sh
<% unless @jdk_switcher_default.nil? || @jdk_switcher_default.empty? -%>
export JDK_SWITCHER_DEFAULT="<%= @jdk_switcher_default -%>"
<% end -%>
<% unless @jvm_name.nil? || @jvm_name.empty? -%>
export JAVA_HOME="<%= @jvm_base_dir -%>/<%= @jvm_name -%>"
<% end -%>
if [ -f "<%= @jdk_switcher_path -%>" ]; then
  . "<%= @jdk_switcher_path -%>"
fi

#!/bin/sh
<% unless @jdk_switcher_default.nil? || @jdk_switcher_default.empty? -%>
export JDK_SWITCHER_DEFAULT="<%= @jdk_switcher_default -%>"
<% end -%>
<% unless @jvm_name.nil? || @jvm_name.empty? -%>
export JAVA_HOME="<%= @jvm_base_dir -%>/<%= @jvm_name -%>"
export _JAVA_OPTIONS="-Xmx2048m -Xms512m -XX:MaxPermSize=768m"
<% end -%>
if [ -f "<%= @jdk_switcher_path -%>" ]; then
  . "<%= @jdk_switcher_path -%>"
fi
export MALLOC_ARENA_MAX=2

Add envvariables to improve jvm performance and memory allocation
Add envvariables to improve jvm performance and memory allocation
