GRE environment variables
These environment variables are relevant for the Genero Report Engine (GRE).
GREDIR
The GREDIR environment variable specifies the installation directory of the Genero Report Engine (GRE).
GREOUTPUTDIR
The GREOUTPUTDIR environment variable specifies the directory where all writing operations that would otherwise be performed in the current working directory of the Genero Report Engine (GRE) will be performed.
The value can be an absolute or a relative file path. If the value is a relative file path, then it is internally prepended with the current working directory of GRE. When set, all writing operations that would otherwise be performed in the current working directory of GRE will be performed in the specified directory.
Examples include relative path specification in the functions
fgl_report_setOutputFileName()
, fgl_report_configureImageDevice()
(the filePath parameter),
fgl_report_setBrowserDocumentDirectory()
,
fgl_report_setBrowserFontDirectory()
and the location of the GRE debug files
(jdebug0.xml, jdebug1.xml, and so on.)
GRE_MAX_CONCURRENT_JOBS
The GRE_MAX_CONCURRENT_JOBS environment variable limits the number of worker threads in distributed mode.
By default, the Genero Report Engine runs 25 concurrent threads. As such, by default it can process no more than 25 concurrent jobs. Jobs that a started at a point in time when the maximum value has been reached are queued until another job completes. The limit on concurrent threads is to prevent memory exhaustion in times of critical load.
GRE_MAX_CONCURRENT_JOBS allows the modification of the number of concurrent threads. This variable takes an integer.
GREDEBUG
The GREDEBUG environment variable defines the debug level for the Genero Report Engine.
- 0: nothing
- 1: fatal only
- 2: fatal and error
- 3: fatal, error, and warning
- 4: fatal, error, warning, and info
- 5: fatal, error, warning, info, and debug
- 6: fatal, error, warning, info, debug, and trace
- 6+: all debug information
The files are written according to the value of the GREOUTPUTDIR. If GREOUTPUTDIR is not set, they are written to the current working directory of the Genero Report Engine (GRE).
GRE_DEFAULT_IMAGE_URL
The GRE_DEFAULT_IMAGE_URL environment variable defines the URL of the fallback image for an Image Box in a report design document.
The fallback image is the image to display if the requested image for an Image Box is not found.
The URL can be an absolute or relative URL. If it is a relative URL, the URL is resolved relative to the location of the form design (4rp) document.
This environment variable is specific to Genero Report Writer.