Last active
August 29, 2015 14:01
-
-
Save aodhol/53d3a0f786571cc620c4 to your computer and use it in GitHub Desktop.
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
#!/bin/sh | |
# Shell file to run X3D-Edit 3.2 | |
# First make sure we're running 1.6, will bomb if not | |
source `dirname $0`/javaVersionCheck.sh | |
# Memory settings for X3D-Edit 3.2: see ReadmeX3D-EditMemorySettings.txt | |
# The default settings for a zipped app exist in x3deditor32/etc/x3deditor32.conf | |
# The stack (-Xss2m) setting is under evaluation and may need | |
# increasing because of recursive routines in XML and XSLT processing. | |
# Xms768m allocates 768 Mb to the Java heap on startup. Xmx768m sets a limit on incremental allocations to the heap. | |
# If your usage case will normally always require the maximum, set both and performance will slightly increase | |
# because incremental allocations (to the OS) are eliminated. | |
# Examples: | |
# -J-Xss2m | |
# -J-Xss2m -J-Xmx768m | |
# -J-Xss2m -J-Xms768m -J-Xmx768m | |
# and do it this way (showing alternative values for ms and mx): | |
MEMORYSETTINGS0="-J-Xss2m -J-Xms32m -J-Xmx2g -J-XX:PermSize=32m -J-XX:MaxPermSize=384m -J-Xverify:none" | |
#MEMORYSETTINGS1='-J-Xms1g' | |
#MEMORYSETTINGS2='-J-Xmx1g' | |
LOOKANDFEELSETTINGS="-J-Dapple.awt.graphics.UseQuartz=true -J-Dapple.laf.useScreenMenuBar=true -J-Dswing.aatext=true" | |
GCSETTINGS="-J-XX:+UseConcMarkSweepGC -J-XX:+CMSClassUnloadingEnabled -J-XX:+UseAdaptiveSizePolicy" | |
# Use the quoting mess to handle spaces in the path | |
THISDIR=`dirname "$0"` | |
cd "$THISDIR" | |
cd x3deditor32/bin | |
sh x3deditor32 -J-client -J-Dsun.java2d.opengl=true -J-Dorg.netbeans.ProxyClassLoader.level=1000 $GCSETTINGS $LOOKANDFEELSETTINGS ${MEMORYSETTINGS0} $MEMORYSETTINGS1 $MEMORYSETTINGS2 -J-Djava.endorsed.dirs=endorsedjars |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment