Add Jvm.cfg For Mac
Configuring the Default JVM and Java Arguments
The directory server provides a means of configuring the Java Virtual Machine (JVM)and Java options for each command-line utility and for the directory server itself.The Java configuration is provided in a properties file, located at instance-dir/OUD/config/java.properties. The configurationspecified in this file is taken into account each time the dsjavapropertiescommand is run. If you do not run the dsjavaproperties command, theproperties file is ignored.
The properties file can be used to specify (among other arguments) whether acommand runs using the JVM in -server mode or -client mode. Bydefault, all client applications run in -client mode, while the directory server andcertain server utilities run in -server mode. Generally, -server mode provides higher throughputthan -client mode, at the expense of slightly longer startup times.
For certain commands (import-ldif, export-ldif, backup, and restore) you can also specifydifferent Java arguments (and a different JVM) depending on whether the command isrun in online or offline mode.
'-XXaltjvm=jvmdir' option, but that too is unsupported. # and may not be available in a future release.server KNOWN.client IGNORE. To add another account, select Tools Accounts. Then select the plus (+) sign New Account. Note: If adding a Gmail, Yahoo, or other IMAP or pop account, see Add.
The Java Properties File Format
The Java properties file has the following format.
command-name.java-home=JVM-path
command-name.java-args=JVM-arguments
The following table shows three properties present in the java.properties file thatare of particular importance.
|
Configuring JVM Options
The following table summarizes the Java options that can have an impact onserver performance. Note that some of these options apply only to theSun JVM.
|
- Edit the Java properties file as follows: command-name.java-home=jvm.
For example, to specify a particular JDK 1.6 for the offline import, editthe line that starts with import-ldif.offline in the java.properties file, as follows: import-ldif.offline.java-home=/usr/jdk1.6.
- Run the dsjavaproperties command to apply the property.
- Edit the Java properties file as follows: command-name.java-args=arguments.
For example, to specify that a maximum heap size of 256 Mbytes beused for the online export, edit the line that starts with export-ldif.onlinein the java.properties file, as follows: export-ldif.online.java-args=-Xms256m -Xmx256m.
- Run the dsjavaproperties command to apply the property.
This appendix describes how to adjust JVM memory parameters and turn garbage collection logging on and off. Instructions below cover applications supported by AquaLogic Interaction and those standalone AquaLogic User Interaction products.
The standalone AquaLogic User Interaction products are:
- AquaLogic Interaction Analytics
- AquaLogic Interaction Automation Server
- AquaLogic Interaction Collaboration
- AquaLogic Interaction Document Repository
- AquaLogic Interaction Notification
- AquaLogic Interaction PTUpload
- AquaLogic Interaction Publisher
- AquaLogic Interaction Studio
- AquaLogic Interaction Workflow

Java Memory Switches
The following are Java memory switches used to tune JVM garbage collection. Use these switches in conjunction with the instructions specific to your application server or AquaLogic User Interaction product.
- -Xloggc:<path/filename>
-Xmsand-Xmx-XX:NewRatio
This switch turns on garbage collection logging for the JVM. Replace <path/filename>with the location where the garbage collection log should be generated.
These switches set the minimum (-Xms) and maximum (-Xmx) heap size for the JVM. The JVM adjusts heap size based on object usage and bounded by these two switches. Setting these switches to the same value increases predictability by removing the ability of the JVM to adjust the heap size.
| Caution: | Fixing the heap size to a specific value requires special attention to memory tuning. |
This switch sets the ration of the young generation to the tenured generation. For example
would mean that the tenured generation is 3x the size of the young generation, or, in other words, the young generation is one quarter of the heap and the tenured generation is three-quarters of the heap.
Application Servers
Tomcat 4.1.x
To update Java options for Tomcat 4.1.x on Windows:
- Edit setenv.bat in the <TOMCAT_HOME>bin directory.
- Update the JVM memory switches in the line
- Save setenv.bat. Reinstall the Tomcat service.
| Note: | The setenv.bat parameters are only loaded into the service settings during service creation. |
Tomcat 5.x
To update Java options for Tomcat 5.x on Windows:
- Run <TOMCAT_HOME>tomcat5w.exe
- Click the Java tab.
- Update the Java memory switches in the Java Options: box.
- Click OK. Restart the Tomcat service.
WebLogic 8.1
To update Java options for WebLogic 8.1:
- Edit installservice.cmd in <BEA_HOME>/user/projects/domains/<domain name>.
- Add JVM memory switches to the line
- Reinstall the WebLogic service.
| Note: | The MEM_ARGS parameter can also be updated in the startup script for the WebLogic domain. |
ALUI Standalone Products
Analytics
To update Java options for the Analytics JVM:
- Edit wrapper.conf in <PT_HOME>/ptanalytics/<ver>/settings/config.
- Add or modify parameters in the section Additional -D Java Properties.
| Note: | Java parameter numbers must be continuous and incremental, and are set in both wrapper_base.conf and wrapper.conf. Check both files to ensure added parameters use the next number in sequence. |
Restart the Analytics service.
Automation Service
To update Java options for the Automation Service JVM:
- Edit wrapper.conf in <PT_HOME/ptportal/<ver>/settings/config.
- Add or modify parameters in the section Additional -D Java Properties.
| Note: | Java parameter numbers must be continuous and incremental, and are set in both wrapper_base.conf and wrapper.conf. Check both files to ensure added parameters use the next number in sequence. |
Restart the Automation service.
Collaboration
To update Java options for the Collaboration JVM:
- Edit wrapper.conf in <PT_HOME>/ptcollab/<ver>/settings/config.
- Add or modify parameters in the section Additional -D Java Properties.
- Restart the Collaboration service.
| Note: | Java parameter numbers must be continuous and incremental, and are set in both wrapper_base.conf and wrapper.conf. Check both files to ensure added parameters use the next number in sequence. |
Document Repository
To update Java options for the Document Repository JVM:
- Edit wrapper.conf in <PT_HOME>/ptdr/<ver>/settings/config.
- Add or modify parameters in the section Additional -D Java Properties.
| Note: | Java parameter numbers must be continuous and incremental, and are set in both wrapper_base.conf and wrapper.conf. Check both files to ensure added parameters use the next number in sequence. |
Restart the Document Repository service.
Notification
To update Java options for the Notification JVM:
- Edit wrapper.conf in <PT_HOME>/ptnotification/<ver>/settings/config.
- Add or modify parameters in the section Additional -D Java Properties.
| Note: | Java parameter numbers must be continuous and incremental, and are set in both wrapper_base.conf and wrapper.conf. Check both files to ensure added parameters use the next number in sequence. |
Restart the Notification service.
PTUpload
To update Java options for the PTUpload JVM:
- Edit wrapper.conf in <PT_HOME>/ptupload/<ver>/settings/config.
- Add or modify parameters in the section Additional -D Java Properties.
| Note: | Java parameter numbers must be continuous and incremental, and are set in both wrapper_base.conf and wrapper.conf. Check both files to ensure added parameters use the next number in sequence. |
Restart the PTUpload service.
Publisher
To update Java options for the Publisher JVM:
- Edit service.conf in <PT_HOME>/ptcs/<ver>/settings/config.
- Add a new parameter or modify existing parameters in the section Java Additional Parameters.
- Restart the Publisher service.
For example, locate
Best free youtube video to mp3 converter for mac. # Java Additional Parameters
wrapper.java.additional.1=-Dprogram.name=cswfserver
wrapper.java.additional.2=-Djava.awt.headless=true
wrapper.java.additional.3=-Dplumtree.container.home=././././././ptcs/6.2/container
wrapper.java.additional.4=-Dplumtree.container.logs=././././././ptcs/6.2/logs
wrapper.java.additional.5=-Dorg.jboss.net.protocol.file.decodeFilePaths=true
and add the garbage collection logging parameter
| Note: | Publisher and Workflow run on the same JVM. Garbage collection logging and memory tunings are for both services. |
Studio
To update Java options for the Studio JVM:
- Edit wrapper.conf in <PT_HOME>/ptstudio/<ver>/settings/config.
- Add or modify parameters in the section Additional -D Java Properties.
| Note: | Java parameter numbers must be continuous and incremental, and are set in both wrapper_base.conf and wrapper.conf. Check both files to ensure added parameters use the next number in sequence. |
Restart the Studio service.
Workflow
Workflow runs on the same JVM as Publisher and does not require seperate tuning.
| © BEA Systems |
