Appendix H. Environment variables

Table of Contents
JamaicaVM environment variables
JamaicaVM Builder environment variables
Jamaicac environment variables
Jamaicah environment variables
Numblocks environment variables
Debugging environment variables

This appendix contains a list of all environment variables used by the Jamaica tools.

JamaicaVM environment variables

The following table lists the environment variables that are used by the jamaicavm command and variants such as jamaicavm_slim (see the Section called jamaicavm in Chapter 5).

Table H-1. Environment variables used by JamaicaVM

Variable NameDescription
CLASSPATHpath list to search for class files.
JAMAICA_SCHEDULING

Select native thread scheduling mode (for Linux and Solaris only):

  • OTHER -- default scheduling

  • RR -- round robin

  • FIFO -- first in first out

JAMAICAVM_HEAPSIZEheap size in bytes, default 2M
JAMAICAVM_MAXHEAPSIZEmax heap size in bytes, default 256M
JAMAICAVM_HEAPSIZEINCREMENTheap size increment in bytes, default 4M
JAMAICAVM_JAVA_STACKSIZEJava stack size in bytes, default 64K
JAMAICAVM_NATIVE_STACKSIZEnative stack size in bytes, default 64K
JAMAICAVM_NUMTHREADSmaximum number of Java threads, default: 10
JAMAICAVM_FINALIZERPRIThe Java priority of the finalizer thread. This thread executes the finalize method of objects before their memory is reclaimed by the GC. default: 10
JAMAICAVM_PRIMAPpriority mapping of Java threads to native threads
JAMAICAVM_ANALYSEEnable memory analyze mode with a tolerance given in percent (see Builder option analyse), default: 0 (disabled)
JAMAICAVM_RESERVEDMEMORYSet the percentage of memory that shold be reserved by a low priority thread for fast burst allocation (see Builder option reservedMemory), default: 10
JAMAICAVM_SCOPEDSIZEsize of scoped memory, default: 0
JAMAICAVM_IMMORTALSIZEsize of immortal memory, default: 32768
JAMAICAVM_LAZYUse lazy class loading/linkage (1) or load/link all classes at startup (0), default: 1
JAMAICAVM_STRICTRTSJUse strictRTSJ rules (1) or relaxed Jamaica rules (0), default: 0
JAMAICAVM_PROFILEFILENAMESet file name for profile, default: <class>.prof