mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

jvergara
17.43.2007 bbadcb75d4629441e73ea04782ae2c5decf64fe3
refs
author jvergara <jvergara@localhost>
Monday, December 17, 2007 11:43 +0100
committer jvergara <jvergara@localhost>
Monday, December 17, 2007 11:43 +0100
commitbbadcb75d4629441e73ea04782ae2c5decf64fe3
tree 5db07f9a7458c541c62e1728434b3c80406ab6e6 tree | zip | gz
parent 53a4238409f4aae7adbcb6f3b77762a9756f1e4f view | diff
2730: New - The setup command should perform some basic memory tuning
Note: this issue is not fully covered by the proposed modifications but
all that is missing in order to fix it is to figure out which are the
default memory values that we want to propose in the setup.

2620: Server should be started as server JRE and clients should be
started as client JREs

The proposed solution goes beyond fixing the two issues and proposes a
manner for the user to set specific java arguments (and use a specific
JVM) for every command-line.

Today the user can specify the JVM to be used using the OPENDS_JAVA_HOME
environment variable and the java arguments by using the
OPENDS_JAVA_ARGS environment variable. In the case of the JVM this
covers most of the use cases (in general we will use the same JVM for
all the command-lines). However this is quite limiting in the case of
the java arguments we pass. For instance in general we want to run the
server (start-ds command-line) using the server mode of the JVM but
other command-lines using the -client mode of the JVM. In the same
manner we might want to have a bigger heap when running the server than
when we are running a "lightweight" utility as dsconfig.

The proposed solution is to have a properties file called
java.properties where the user specifies the different JVM and java
arguments to be used for every command-line. Once the user has edited
this properties file, (s)he must run a command-line called
dsjavaproperties that will update all the scripts to use the arguments
specified in that properties file.

NOTE: there are a number of command-lines (import-ldif, export-ldif,
backup, restore) where the user will be able to specify different java
arguments (and different JVM) to use depending on whether the
command-line is run in online or offline modes. You can see the
comments on java.properties to get more information about this and in
general about the different properties that can be set.

The modification in the setup basically try to check if the JVM that is
being used to run the setup (the one that will be used by default)
supports the -client and -server options. Depending on the results of
these checks the setup will update the java.properties file and then run
dsjavaproperties to update the scripts.
8 files added
78 files modified
3649 ■■■■■ changed files
opends/build.xml 14 ●●●●● diff | view | raw | blame | history
opends/resource/bin/_client-script.bat 47 ●●●● diff | view | raw | blame | history
opends/resource/bin/_client-script.sh 68 ●●●● diff | view | raw | blame | history
opends/resource/bin/_mixed-script.bat 76 ●●●●● diff | view | raw | blame | history
opends/resource/bin/_mixed-script.sh 105 ●●●●● diff | view | raw | blame | history
opends/resource/bin/_script-util.bat 170 ●●●●● diff | view | raw | blame | history
opends/resource/bin/_script-util.sh 177 ●●●●● diff | view | raw | blame | history
opends/resource/bin/_server-script.bat 47 ●●●● diff | view | raw | blame | history
opends/resource/bin/_server-script.sh 68 ●●●● diff | view | raw | blame | history
opends/resource/bin/backup 6 ●●●● diff | view | raw | blame | history
opends/resource/bin/backup.bat 4 ●●●● diff | view | raw | blame | history
opends/resource/bin/base64 4 ●●●● diff | view | raw | blame | history
opends/resource/bin/base64.bat 2 ●●● diff | view | raw | blame | history
opends/resource/bin/create-rc-script 4 ●●●● diff | view | raw | blame | history
opends/resource/bin/dbtest 4 ●●●● diff | view | raw | blame | history
opends/resource/bin/dbtest.bat 2 ●●● diff | view | raw | blame | history
opends/resource/bin/dsconfig 4 ●●●● diff | view | raw | blame | history
opends/resource/bin/dsconfig.bat 2 ●●● diff | view | raw | blame | history
opends/resource/bin/dsframework 4 ●●●● diff | view | raw | blame | history
opends/resource/bin/dsframework.bat 2 ●●● diff | view | raw | blame | history
opends/resource/bin/dsjavaproperties 37 ●●●●● diff | view | raw | blame | history
opends/resource/bin/dsjavaproperties.bat 32 ●●●●● diff | view | raw | blame | history
opends/resource/bin/dsreplication 4 ●●●● diff | view | raw | blame | history
opends/resource/bin/dsreplication.bat 2 ●●● diff | view | raw | blame | history
opends/resource/bin/encode-password 4 ●●●● diff | view | raw | blame | history
opends/resource/bin/encode-password.bat 2 ●●● diff | view | raw | blame | history
opends/resource/bin/export-ldif 6 ●●●● diff | view | raw | blame | history
opends/resource/bin/export-ldif.bat 4 ●●●● diff | view | raw | blame | history
opends/resource/bin/import-ldif 6 ●●●● diff | view | raw | blame | history
opends/resource/bin/import-ldif.bat 4 ●●●● diff | view | raw | blame | history
opends/resource/bin/ldapcompare 4 ●●●● diff | view | raw | blame | history
opends/resource/bin/ldapcompare.bat 2 ●●● diff | view | raw | blame | history
opends/resource/bin/ldapdelete 4 ●●●● diff | view | raw | blame | history
opends/resource/bin/ldapdelete.bat 2 ●●● diff | view | raw | blame | history
opends/resource/bin/ldapmodify 4 ●●●● diff | view | raw | blame | history
opends/resource/bin/ldapmodify.bat 2 ●●● diff | view | raw | blame | history
opends/resource/bin/ldappasswordmodify 4 ●●●● diff | view | raw | blame | history
opends/resource/bin/ldappasswordmodify.bat 2 ●●● diff | view | raw | blame | history
opends/resource/bin/ldapsearch 4 ●●●● diff | view | raw | blame | history
opends/resource/bin/ldapsearch.bat 2 ●●● diff | view | raw | blame | history
opends/resource/bin/ldif-diff 4 ●●●● diff | view | raw | blame | history
opends/resource/bin/ldif-diff.bat 2 ●●● diff | view | raw | blame | history
opends/resource/bin/ldifmodify 4 ●●●● diff | view | raw | blame | history
opends/resource/bin/ldifmodify.bat 2 ●●● diff | view | raw | blame | history
opends/resource/bin/ldifsearch 4 ●●●● diff | view | raw | blame | history
opends/resource/bin/ldifsearch.bat 2 ●●● diff | view | raw | blame | history
opends/resource/bin/list-backends 4 ●●●● diff | view | raw | blame | history
opends/resource/bin/list-backends.bat 2 ●●● diff | view | raw | blame | history
opends/resource/bin/make-ldif 4 ●●●● diff | view | raw | blame | history
opends/resource/bin/make-ldif.bat 2 ●●● diff | view | raw | blame | history
opends/resource/bin/manage-account 4 ●●●● diff | view | raw | blame | history
opends/resource/bin/manage-account.bat 2 ●●● diff | view | raw | blame | history
opends/resource/bin/manage-tasks 4 ●●●● diff | view | raw | blame | history
opends/resource/bin/manage-tasks.bat 2 ●●● diff | view | raw | blame | history
opends/resource/bin/rebuild-index 4 ●●●● diff | view | raw | blame | history
opends/resource/bin/rebuild-index.bat 2 ●●● diff | view | raw | blame | history
opends/resource/bin/restore 6 ●●●● diff | view | raw | blame | history
opends/resource/bin/restore.bat 4 ●●●● diff | view | raw | blame | history
opends/resource/bin/start-ds 100 ●●●● diff | view | raw | blame | history
opends/resource/bin/start-ds.bat 62 ●●●● diff | view | raw | blame | history
opends/resource/bin/status 4 ●●●● diff | view | raw | blame | history
opends/resource/bin/status-panel 4 ●●●● diff | view | raw | blame | history
opends/resource/bin/status-panel.bat 48 ●●●● diff | view | raw | blame | history
opends/resource/bin/status.bat 2 ●●● diff | view | raw | blame | history
opends/resource/bin/stop-ds 96 ●●●● diff | view | raw | blame | history
opends/resource/bin/stop-ds.bat 51 ●●●●● diff | view | raw | blame | history
opends/resource/bin/verify-index 4 ●●●● diff | view | raw | blame | history
opends/resource/bin/verify-index.bat 2 ●●● diff | view | raw | blame | history
opends/resource/bin/windows-service.bat 2 ●●● diff | view | raw | blame | history
opends/resource/setup 98 ●●●● diff | view | raw | blame | history
opends/resource/setup.bat 62 ●●●● diff | view | raw | blame | history
opends/resource/uninstall 97 ●●●● diff | view | raw | blame | history
opends/resource/uninstall.bat 59 ●●●● diff | view | raw | blame | history
opends/resource/upgrade 104 ●●●● diff | view | raw | blame | history
opends/resource/upgrade.bat 55 ●●●● diff | view | raw | blame | history
opends/src/guitools/org/opends/guitools/replicationcli/ReplicationCliMain.java 23 ●●●●● diff | view | raw | blame | history
opends/src/messages/messages/quicksetup.properties 2 ●●●●● diff | view | raw | blame | history
opends/src/messages/messages/tools.properties 28 ●●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/Installation.java 27 ●●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/installer/Installer.java 3 ●●●● diff | view | raw | blame | history
opends/src/quicksetup/org/opends/quicksetup/installer/InstallerHelper.java 292 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/tools/InstallDS.java 39 ●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/tools/JavaPropertiesTool.java 1004 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/tools/JavaPropertiesToolArgumentParser.java 194 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/tools/tasks/TaskTool.java 44 ●●●●● diff | view | raw | blame | history
opends/src/server/org/opends/server/util/SetupUtils.java 144 ●●●●● diff | view | raw | blame | history