Skip to content

Instantly share code, notes, and snippets.

@justingarrick
Last active May 22, 2023 04:48
Show Gist options
  • Star 39 You must be signed in to star a gist
  • Fork 15 You must be signed in to fork a gist
  • Save justingarrick/2588828 to your computer and use it in GitHub Desktop.
Save justingarrick/2588828 to your computer and use it in GitHub Desktop.
eclipse.ini settings for Eclipse Indigo/Juno/Kepler & JDK7
-nosplash
--launcher.defaultAction
openFile
-vm
C:/JDK7/jre/bin/server/jvm.dll #Windows
#/Library/Java/JavaVirtualMachines/jdk1.7.0_25.jdk/Contents/Home/bin/java #OS X
-vmargs
-Xincgc
-Xss1m
-Duser.name=FirstName LastName
-Dfile.encoding=UTF-8
-Dosgi.requiredJavaVersion=1.7
-Declipse.p2.unsignedPolicy=allow
-Declipse.p2.MD5Check=false
#-Dandroid.sdk.path=/Users/yourusername/android-sdk-macosx #Android on OS X
#-Xdock:icon=../Resources/Eclipse.icns #OS X
#-Dorg.eclipse.swt.internal.carbon.smallFonts #OS X
-Xms128m
-Xmx400m
-XX:NewSize=16m
-XX:PermSize=128m
-XX:MaxPermSize=400m
-XX:MaxPermHeapExpansion=20m
-XX:+UseConcMarkSweepGC
-XX:CMSInitiatingOccupancyFraction=70
-XX:+UseCMSInitiatingOccupancyOnly
-XX:+UseParNewGC
-XX:+CMSConcurrentMTEnabled
-XX:ConcGCThreads=2
-XX:ParallelGCThreads=2
-XX:+CMSIncrementalPacing
-XX:CMSIncrementalDutyCycleMin=0
-XX:CMSIncrementalDutyCycle=5
-XX:GCTimeRatio=49
-XX:MaxGCPauseMillis=20
-XX:GCPauseIntervalMillis=1000
-XX:+UseCMSCompactAtFullCollection
-XX:+CMSClassUnloadingEnabled
-XX:+DoEscapeAnalysis
-XX:+UseCompressedOops
-XX:+AggressiveOpts #Doesnt work with Android see Google Code Android issue 9883
-XX:+ExplicitGCInvokesConcurrentAndUnloadsClasses
Copy link

ghost commented Feb 28, 2013

Thanks - Very useful - Works perfectly so far

@fredgrott
Copy link

switch the windows path delimiters as its \ not /

@fredgrott
Copy link

also # comments go on separate lines

@Sakupa91
Copy link

Does it works with java8, Because MaxPerm size is being depreciated or something , showing log in terminal??

@sailendrajena
Copy link

Hi,
Can you tell me for what reason you have used these lines.
-Duser.name=FirstName LastName
-Dfile.encoding=UTF-8
-Dosgi.requiredJavaVersion=1.7
-Declipse.p2.unsignedPolicy=allow
-Declipse.p2.MD5Check=false
If I will add this line then is there any affect will happens.

Thanks & Regards
Sailendra Narayan Jena
Email Id: sailendra.n.jena@gmail.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment