Environment variables are system-wide settings that are required for certain applications.
- Fisheye 3.4 and later versions: If you used the installer to set up Fisheye as a Windows service, you can change JVM settings using the tool provided with the installer. See Setting JVM system properties.
- Java Service Wrapper: If you set up Fisheye as a Windows service using the Java Service Wrapper, any environment variables that you require must be set in your
<Fisheye install directory>/wrapper/conf/wrapper.conffile. See Running Fisheye as a Windows service.
Fisheye uses the following environment variables:
Fisheye uses this to select the Java Virtual Machine (JVM) to use. If this environment variable is not set, Fisheye will use whatever Java executable is available on the path. In Linux systems, this may sometimes be GCJ-based which causes some problems running Fisheye.
If you're using the Java Service Wrapper to run Fisheye as a service on Windows, the wrapper will use the Java version found in PATH instead of using JAVA_HOME.
Use this to pass parameters to the Java Virtual Machine (JVM) that runs Fisheye. This is typically used to set the Java heap size available to Fisheye. See:
You can also use FISHEYE_OPTS to set various system properties in Fisheye. For example:
After having set FISHEYE_OPTS and restarting your server, ensure that your changes have been registered by navigating to Administration > Sys Info/Support > System Info and checking the output under "JVM Input Arguments".
|FISHEYE_ARGS||See Command-line options. FISHEYE_ARGS are the arguments which will be passed to Fisheye when it is started. You can set this to --debug, for example, or --debug-perf if you always want to have Fisheye debugging put into the Fisheye log files.|
|FISHEYE_LIBRARY_PATH||Used to tell Fisheye where it should look to load any additional native libraries.|
Used to tell Fisheye where to store its data. It is recommended that you separate Fisheye's data from its application files in <Fisheye install directory> by using this variable. For example:
Read more about using FISHEYE_INST in either Installing Fisheye on Windows or Installing Fisheye on Linux and Mac.
Setting environment variables under Windows XP
(System environment variables are ignored if Fisheye is run as a Windows service. Please refer to
(Linux instructions for setting environment variables are here .)
1. Click Start > Control Panel > System.
2. Click the Advanced tab.
3. Click the Environment Variables button.
4. Click New.
5. In the Variable name field, enter the name of the environment variable, for example:
6. In the Variable value field, enter the setting as required. This may be quite cryptic, for example the default value for FISHEYE_OPTS is this:
7. Restart the computer.
Setting environment variables under Linux or Mac
There are a number of ways to set environment variables on Linux or UNIX based systems (including Mac OS X). Here are just two:
For your current user:
1. Open up a shell or terminal window
2. Type this command:
(vi is a text editor, you can use another if desired)
3. Add this command:
export (variable name)=(variable value)
Where (variable name) and (variable value) are the environment variable elements. For example, if the environment variable you are setting is FISHEYE_OPTS, and the variable value is -Xmx256m, you would type the following:
Add this command on its own line at the end of the file.
4. Save, and restart your shell.
For all users in the system:
1. Open up a shell or terminal window
2. vi /etc/profile (replace vi with your favorite text editor)
3. Add export (variable name)=(variable value) on its own line at the end of the file
4. Save, and restart your shell
If you are using a GUI, you may not need to open up the shell. Instead, you might be able to open the file directly in a graphical text editor.
If you are experiencing memory errors in Fisheye, see Fix Out of Memory errors.