Difference between revisions of "Common Build Infrastructure/Testing/VMArgs"

From Eclipsepedia

Jump to: navigation, search
 
(5 intermediate revisions by one user not shown)
Line 3: Line 3:
 
Depending on your hardware, the default settings for the [[Eclipse/Testing|Eclipse Test Framework]], as outlined in [http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.test/library.xml?view=markup org.eclipse.test/library.xml], may be insufficient to run your tests without an [[IRC_FAQ#I.27m_having_memory.2C_heap.2C_or_permgen_problems.2C_what_can_I_do.3F|OutOfMemory error or permgen crash]].
 
Depending on your hardware, the default settings for the [[Eclipse/Testing|Eclipse Test Framework]], as outlined in [http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.test/library.xml?view=markup org.eclipse.test/library.xml], may be insufficient to run your tests without an [[IRC_FAQ#I.27m_having_memory.2C_heap.2C_or_permgen_problems.2C_what_can_I_do.3F|OutOfMemory error or permgen crash]].
  
Below are some settings you can define in your testing.properties file:
+
Below are some settings you can define in your [http://anonsvn.jboss.org/repos/jbosstools/trunk/bpel/releng/testing.properties testing.properties] file:
  
* To use a different library-file, such as [http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.dash/athena/org.eclipse.dash.commonbuilder/org.eclipse.dash.common.releng/builder/tests/custom-library.xml?root=Technology_Project&view=markup custom-library.xml], than the default from [http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.test/library.xml?view=markup org.eclipse.test/library.xml]
+
* To use a different library-file than the default from [http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.test/library.xml?view=markup org.eclipse.test/library.xml] (eg., [http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.dash/athena/org.eclipse.dash.commonbuilder/org.eclipse.dash.common.releng/builder/tests/custom-library.xml?root=Technology_Project&view=markup custom-library.xml])
  
 
  library-file=${relengCommonBuilderDir}/builder/tests/[http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.dash/athena/org.eclipse.dash.commonbuilder/org.eclipse.dash.common.releng/builder/tests/custom-library.xml?root=Technology_Project&view=markup custom-library.xml]
 
  library-file=${relengCommonBuilderDir}/builder/tests/[http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.dash/athena/org.eclipse.dash.commonbuilder/org.eclipse.dash.common.releng/builder/tests/custom-library.xml?root=Technology_Project&view=markup custom-library.xml]
 
+
# or #
or
+
 
+
 
  library-file=${relengBuilderDir}/my-own-library.xml
 
  library-file=${relengBuilderDir}/my-own-library.xml
  
Line 17: Line 15:
 
  echotestproperties=true
 
  echotestproperties=true
  
* Set some -X flags  
+
* Set some -X flags or -D flags, eg. to add more [[IRC_FAQ#I.27m_having_memory.2C_heap.2C_or_permgen_problems.2C_what_can_I_do.3F|heap, permgen]], or open files (see {{bug|106396}})
 
+
Xflags= -Xms512m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m
+
 
+
* Increase the default <code>osgi.bundlefile.limit</code> (see {{bug|106396}})
+
  
 +
Xflags= -Xms512m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m -Xbootclasspath/a:/path/to/emma.jar
 
  Dflags=-Dosgi.bundlefile.limit=100
 
  Dflags=-Dosgi.bundlefile.limit=100
 
* If <code>Xflags</code> or <code>Dflags</code> have been overridden, must override <code>args</code> too
 
 
args=${executionDir}/${shell} -vmExecutable ${vmExecutable} -consolelog ${consolelog} ${Xflags} ${Dflags}
 
  
 
[[Category:Athena Common Build]]
 
[[Category:Athena Common Build]]
 
[[Category:Draft_Documentation]]
 
[[Category:Draft_Documentation]]

Latest revision as of 00:43, 2 February 2010

Warning2.png
Draft Content
This page is currently under construction. Community members are encouraged to maintain the page, and make sure the information is accurate.


Depending on your hardware, the default settings for the Eclipse Test Framework, as outlined in org.eclipse.test/library.xml, may be insufficient to run your tests without an OutOfMemory error or permgen crash.

Below are some settings you can define in your testing.properties file:

library-file=${relengCommonBuilderDir}/builder/tests/custom-library.xml
# or #
library-file=${relengBuilderDir}/my-own-library.xml
  • To dump test properties into console log and separate file for debugging purposes
echotestproperties=true
Xflags= -Xms512m -Xmx1024m -XX:PermSize=128m -XX:MaxPermSize=256m -Xbootclasspath/a:/path/to/emma.jar
Dflags=-Dosgi.bundlefile.limit=100