Changes between Version 6 and Version 7 of Doc/compiler/running
- Timestamp:
- Mar 7, 2007, 3:03:27 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Doc/compiler/running
v6 v7 43 43 where {{{...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. 44 44 45 == Adjusting the Java Virtual Machine Memory==45 == Adjusting the Java Virtual Machine Parameters == 46 46 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.47 The 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. 48 48 49 49 === Direct Invocation via Java === 50 50 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:51 If 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: 52 52 {{{ 53 53 java -Xmx1024M org.quattor.pan.Compiler [options...] 54 54 }}} 55 For the panc command, currently the panc script must be edited to add this option. 55 For the panc command, currently the panc script must be edited to add this option. The same must be done for other options. 56 56 57 57 === Direct Invocation via Ant === … … 65 65 setenv ANT_OPTS "-Xmx1024M" 66 66 }}} 67 depending on whether you use an "sh"- or "csh"-type shell. 67 depending 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.) 68 68 69 69 === Invocation via Eclipse === … … 80 80 81 81 If 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 83 Other VM options can be changed in the same way.