Changes between Version 6 and Version 7 of Doc/compiler/running


Ignore:
Timestamp:
Mar 7, 2007, 3:03:27 PM (17 years ago)
Author:
/O=GRID-FR/C=FR/O=CNRS/OU=LAL/CN=Charles Loomis
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Doc/compiler/running

    v6 v7  
    4343where {{{...options...}}} is replaced with valid options for the panc ant task.  The full set of options can be found by looking at the javadoc information for the "org.quattor.pan.ant.PanCompilerTask" class in the javadoc distributed with the release.
    4444
    45 == Adjusting the Java Virtual Machine Memory ==
     45== Adjusting the Java Virtual Machine Parameters ==
    4646
    47 The performance of the compiler can degrade markedly if there is not sufficient memory to do a particular compile and build.  The mechanism for increasing the available memory differs depending on how the compiler in invoked.
     47The performance of the compiler can degrade markedly if there is not sufficient memory to do a particular compile and build.  Moreover, the default memory allocation and vary wildly depending on how and when the compiler is invoked.  Similarly, there are other options that may improve the performance of the compiler.  For instance, it is usually advisable to use the "-server" option.
    4848
    4949=== Direct Invocation via Java ===
    5050
    51 If the java compiler class is being directly invoked via the {{{java}}} command, then the option "-Xmx" must be added.  For example to start java with 1024 MB, the following command and options can be used:
     51If the java compiler class is being directly invoked via the {{{java}}} command, then the option "-Xmx" must be added to change the VM memory available.  For example to start java with 1024 MB, the following command and options can be used:
    5252{{{
    5353java -Xmx1024M org.quattor.pan.Compiler [options...]
    5454}}}
    55 For the panc command, currently the panc script must be edited to add this option.
     55For the panc command, currently the panc script must be edited to add this option.  The same must be done for other options.
    5656
    5757=== Direct Invocation via Ant ===
     
    6565setenv ANT_OPTS "-Xmx1024M"
    6666}}}
    67 depending on whether you use an "sh"- or "csh"-type shell.
     67depending on whether you use an "sh"- or "csh"-type shell.  Other options can be similarly added to the environmental variable.  (The value is a space-separated list.)
    6868
    6969=== Invocation via Eclipse ===
     
    8080
    8181If you invoke a new java virtual machine for each build, then you can change the ant arguments via the run parameters.  From within the "ant" view, right-click on the appropriate ant build file, and then select "Run As -> Ant Build...".  In the pop-up window, select the JRE tab.  In the "VM arguments" panel, add the "-Xmx<memory size>" option without the quotes.  (You can also add other options here.)  The next build will use these options.
     82
     83Other VM options can be changed in the same way.