FTP or copy amtune.zip to the remote Sun Directory Server host.
In the change mode section of amtune-env.properties file, if AMTUNE_TUNE_DS=true, then the amtune.zip file is automatically generated.
Set values for TOOL_HOME and JAVA_HOME.
Edit the amtune-env.properties file to include Directory Server information.
Run the amtune tool with a password file for the Sun Directory Server Directory Manager.
The Directory Server Directory Manager password must be inaccessible to non-owners and only readable by its owner . For example, you can run change the permissions mode of the password file by running the following command:
On Windows, you must also execute amtune.bat with a password file. But amtune.bat does not check its file permission on Windows.
In CHANGE mode, if AMTUNE_TUNE_DS=true, then the amtune tool will restart the Sun Directory Server instance.
If AMTUNE_TUNE_OS=true, then the amtune tool will tune the operating system kernel parameters and will recommend a system restart.