Manages the Java PCA/JVM. Enables or disables arguments and directives, changes configuration values, and reports configuration values.
You can safely change the pca_jvm_module_path, pca_jvm_work_dir, pca_jvm_dbg_agent_port, pca_jvm_java_dbg_agent_suspend, pca_jvm_java_options and pca_jvm_netio arguments. Do not use sp_jreconfig to change other arguments or directives unless instructed to do so by Sybase Technical Support.
sp_jreconfig { add array_arg, new_string | array_clear array_arg | array_enable array_arg | array_disable array_arg | delete array_arg, string_value | disable { directive | argument | array_arg, string_value } | enable { directive | argument | array_arg, string_value } | list { list_type [, formatted ] | units | units, units_type[, formatted ] } | reload_config | report { directive[, formatted ] | directive, args[, formatted ] |argument[, formatted ] } | update { argument, old_value, new_value } }
adds a new argument to an argument array. Use add only with arguments where units_type is array.
is the name of an argument where units_type is array.
is the string value for a new array element.
deletes all element in an argument array.
enables all elements in an argument array. Sets each array element to enabled.
disables, but does not delete, all elements in an argument array. Sets each element to disabled.
removes an existing element from an argument array. Use delete only with arguments where units_type is array.
disables the specified directive or argument.
identifies an array element in the named argument array that is to be deleted, enabled, or disabled.
is the name of a valid directive.
is the name of a valid argument.
enables a directive or an argument.
lists groups of related arguments as, for example, sp_jreconfig list, directives or sp_jreconfig list, enabled. Also, lists all arguments of a specific type as, for example, sp_jreconfig list, units, string. To see all current units_types values, use sp_jreconfig list, units.
formats the displayed list for readability; longer values may be truncated.
In formatted reports, the process of improving readability may truncate wide columns. In addition, column headings may be overridden and may not match the actual table name. Do not format reports if the output will be parsed or potential data truncation is not acceptable.
specifies a type of list. Values are:
directives – list of directives
enabled – list of enabled arguments
disabled – list of disabled arguments
argnames – list of argument names, each argument’s units_type, and the directive to which each belongs
when used with list, generates a list of units_type currently in use.
is a type of argument. Every argument has a units_type that identifies its type. Values are:
switch
string
number
array
reloads the configuration from the sybpcidb tables into memory. See “Restoring default configuration values to sybpcidb” in Chapter 2, “Managing the Java Environment,” in Java in Adaptive Server Enterprise.
creates a report based on arguments supplied. Usually used to generate a report for an argument to see its current value and whether or not it is enabled. Can also be used to generate a report for a directive or its arguments.
is any valid directive.
is a keyword used with report to generate a list of argument names for the named directive. For example:
sp_jreconfig report, "PCA_JVM", "args"
modifies a string or numeric value for an argument where units_type is string, number, or array. You cannot modify an argument when units_type is switch.
is a string or numeric value that identifies the existing argument or array element being updated.
is a string or numeric value that defines the new argument or array element.
Generates a formatted report for the PCA_JVM_OPT directive:
sp_jreconfig "report", "PCA_JVM_OPT", "formatted"
Generates a report of the arguments of the PCA_JVM_OPT directive:
sp_jreconfig "report", "PCA_JVM_OPT", "args"
Generates a report for the argument pca_jvm_netio.
sp_jreconfig "report", "pca_jvm_netio"
Generates a report for all arguments that match "pca_jvm". A partial argument name generates a report for all matching arguments.
sp_jreconfig "report", "pca_jvm_"
Generating lists – displays a list of all directives and their state: enabled or disabled.
sp_jreconfig "list", "directives"
Generating lists – displays a list of all arguments, their units types, and directives.
sp_jreconfig "list", "argnames", "formatted"
Generating lists – displays a list of all currently enabled arguments.
sp_jreconfig "list", "enabled"
Generating lists – displays a formatted list of all array arguments.
sp_jreconfig "list", "units", "array", "formatted"
Generating lists – display a list of argument unit types. The report for this command is formatted by default. Using the “-formatted” option generates an error.
sp_jreconfig "list", "units"
Enabling directives and arguments – enables the PCA_JVM_WORK_DIR directive. You can use a partial directive name as long as it includes sufficient information to uniquely identify the directive.
sp_jreconfig "enable", "PCA_JVM_WORK_DIR"
sp_jreconfig "enable", "WORK_DIR"
Enabling directives and arguments – enables the pca_jvm_netio argument.
sp_jreconfig "enable", "pca_jvm_netio"
Disabling directives and arguments – disables the WORK_DIR directive. This example uses a partial directive name, which must include sufficient information to uniquely identify the directive.
sp_jreconfig "disable", "WORK_DIR"
Disabling a directives causes its arguments to behave as disabled, but does not change their base states.
Disabling directives and arguments – disables the pca_jvm_netio argument.
sp_jreconfig "disable", "pca_jvm_netio"
Disabling directives and arguments – disables array elements in PCA_JVM_WORK_DIR. The path, but not the permissions mask, is required. See Chapter 8, “File and Network Access Using Java,” in Java in Adaptive Server Enterprise.
sp_jreconfig "disable", "pca_jvm_work_dir", "/some/path"
Updating string, number, and array arguments – pdates a string argument. This example updates the file location of the pca_jvm_log_filename argument.
sp_jreconfig "update", "pca_jvm_log_filename", "/old/path/filename.log", "/new/path/filename.log"
The update option cannot be used with directives or switch argument as these items can not be modified.
Updating string, number, and array arguments – updates a number argument. Numeric values must be enclosed in quotes (as strings) for the stored procedure. Adaptive Server stores them as numeric values.
sp_jreconfig "update", "pca_jvm_min_port", "1026", "2056"
Updating string, number, and array arguments – for the PCA_JVM_WORK_DIR directive, work_dir values consist of a path and an optional permission mask. Although the permission mask is optional, you must include the original string path to identify the work_dir. A permission mask is optional. If it is not supplied, the system uses a default mask with an octal equivalent of 0666. Example a does not set a permission mask; it uses the default mask. Examples b and c each set a permission mask of 0644.
[a] sp_jreconfig "update", "pca_jvm_work_dir", "/old/path","/new/working/directory" [b] sp_jreconfig "update", "pca_jvm_work_dir", "/old/path", "/new/working/directory(u=rw,go=r)" [c] sp_jreconfig "update", "pca_jvm_work_dir", "/old/path", "/new/working/directory(u+w,ugo+r)"
Adding array elements – adds new elements to the pca_jvm_work_dir argument array in the PCA_JVM_WORK_DIR directive. Example a uses the default mask. Examples b and c each set a permissions mask of 0644. (The mask is evaluated from left to right.)
[a] sp_jreconfig "add", "pca_jvm_work_dir", "/new/working/directory"
[b] sp_jreconfig "add", "pca_jvm_work_dir", "/new/working/directory(u=rw,go=r)"
[c] sp_jreconfig "add", "pca_jvm_work_dir", "/new/working/directory(u+w,ugo+r)"
Deleting array elements – Deletes an array element in pca_jvm_work_dir.
sp_jreconfig "delete", "pca_jvm_work_dir", "/new/working/directory"
To delete a an element in pca_jvm_work_dir in the PCA_JVM_WORK_DIR directive, you can specify a partial string if the string supplied identifies a unique record. The permission mask is not required; you only need to supply the path even if the work_dir element was originally defined with a specific permission mask.
Enabling or disabling all elements in an array – enables all elements in the pca_jvm_work_dir array.
sp_jreconfig "array_enable", "pca_jvm_work_dir"
Enabling or disabling all elements in an array – disables all elements in the pca_jvm_work_dir array.
sp_jreconfig "array_disable", "pca_jvm_work_dir"
Clearing all records in an array – deletes all records in the pca_jvm_work_dir array and creates an empty array.
sp_jreconfig "array_clear", "pca_jvm_work_dir"
Reloading default configuration values – Loads the configuration values stored in sybpcidb into memory.
sp_jreconfig "reload_config"
Enabling and disabling a directive works like a toggle:
When a directive is enabled– Adaptive Server uses the configured value (enabled or disabled) of each argument. This is the value stored in sybpcidb.
When a directive is disabled – Adaptive Server disregards the configured value (enabled or disabled) of each argument and treats all arguments of the directive as disabled, although the base value of each argument is retained in sybpcidb.
Arguments can be individually enabled or disabled. Arguments are of these types:
switch – these arguments turn a feature on or off. For example, if the argument for logging is enabled, a log file is generated; if the argument for logging is disabled, no log file is generated.
string – these arguments are for string and number values. Enabling a string or number argument ensures that Adaptive Server uses the configured value. Disabling a string or number argument means that Adaptive Server ignores the configured value and uses the default value. The configured and default values may or may not be the same.
array – an array argument is a collection of related string arguments, each of which can be individually enabled or disabled. When an individual string argument (or element) is disabled, its value is ignored and the behavior is the same as if the element had been deleted. When enabled, the argument value is included in the collection and is active.
Array arguments can be enabled or disabled at will; you do not have to delete a value and then re-enter it later on.
Directive |
Description |
---|---|
PCA_JVM_MODULE_PATH |
The path to the JVM shared-object library. If you use a JRE other than that supplied by Sybase, you must configure this argument to point to a location accessible to the PCA/JVM. This can be an absolute path or a relative path that extends $SYBASE. If an absolute path, start the path with “/” on UNIX or “\” on Windows. Otherwise, Adaptive Server assumes a relative path and looks under $SYBASE. |
PCA_JVM_OPT |
Do not change default values unless instructed to do so by Sybase Technical Support. |
PCA_JVM_DIR_OPTIONS |
Directory definitions used by the JVM for the ROOT and TEMP directories. Do not change these values unless you are a knowledgeable user or you have been directed to do so by Sybase Technical Support. WARNING! Use this directive with care. The pca_jvm_tmp_dir in the PCA_JVM_DIR_OPTIONS directive should always point to the system temporary directory. Changing this location can be a serious security risk. The JVM allows files to be opened for reading and writing, and allows file creation in this directory. |
PCA_JVM_WORK_DIR |
Configures the JVM trusted directories. This argument consists of a collection of specific locations in your file system where your Java program classes can perform certain file I/O operations. Each directory can have an optional permission mask that defines which file I/O operations are allowed in each directory. |
PCA_JVM_MIN_JNI_VERSION |
Minimum backward compatible JNI version. |
PCA_JVM_LOGGING |
JRE/VM logging options. |
PCA_JVM_EXT_CLASS_LOADER |
Global and database extension class loaders. |
PCA_JVM_JAVA_OPTIONS |
Java start-up options, both normal and extended. |
PCA_JVM_JAVA_DBG_AGENT_PORT |
Java VM debug agent port number (used for debugging Java applications with a Java debugger). See Java in Adaptive Server Enterprise for more information. |
PCA_JVM_SYS_DEVICE_PATH |
Platform-specific system device directories (required for Solaris). |
Argument |
Units type |
Default value |
Default state |
Description |
---|---|---|---|---|
pca_jvm_module_path |
string |
Platform specific |
Enabled |
The location of the JVM shared library using a relative path located under $SYBASE, or a fully qualified filename. |
Argument |
Units type |
Default value |
Default state |
Description |
---|---|---|---|---|
pca_jvm_abort |
switch |
On |
Enabled |
Abort abort(2) all on any failure (dangerous). |
pca_jvm_allow_unchecked_sockops |
switch |
N/A |
Disabled |
Allow unchecked socket operations. |
pca_jvm_debug |
switch |
N/A |
Disabled |
Report PCA_DEBUG requests. |
pca_jvm_except |
switch |
N/A |
Enabled |
Report excepting PCA/VM JNI/JVM invocations. |
pca_jvm_heap_ratio |
string |
0.3 |
Enabled |
VM Heap / PCI memory ratio. |
pca_jvm_jvmti |
switch |
N/A |
Disabled |
Java VM Tools Interface. |
pca_jvm_min_port |
number |
1026 |
Enabled |
Allow VM network support. |
pca_jvm_netio |
switch |
N/A |
Disabled |
Allow VM network support. |
pca_jvm_report |
switch |
N/A |
Disabled |
Report PCA/VM JNI/JVM invocations. |
pca_jvm_security_manager_enabled |
switch |
N/A |
Disabled |
Enable the SecurityManager in the PCA/JVM. |
pca_jvm_sigcache_density |
number |
100 |
Enabled |
PCA/VM signature cache target density. |
pca_jvm_sigcache_enabled |
switch |
N/A |
Enabled |
Enable PCA/VM signature cache. |
pca_jvm_sigcache_fixed_ratio |
number |
50 |
Enabled |
PCA/VM signature cache size percentage fixed. |
pca_jvm_sigcache_freeboard |
number |
30 |
Enabled |
PCA/VM signature cache space recovery percentaga on cache sweeps. |
pca_jvm_sigcache_size |
number |
512 |
Enabled |
PCA/VM signature cache size in KBytes. |
pca_jvm_sigcache_size_type |
number |
1 |
Enabled |
PCA/VM signature cache size_type 0:AS_PCT 1:Kbyte 2:Mbyte. |
pca_jvm_sigcache_washcycle |
number |
1000 |
Enabled |
PCA/VM signature cache wash daemon cycle time (ms). |
pca_jvm_sigcache_washdaemon |
switch |
N/A |
Disabled |
Enable PCA/VM signature cache wash daemon. |
pca_jvm_strace |
switch |
N/A |
Enabled |
Produce stack traces on none emulated VM handles. |
Argument |
Units type |
Default value |
Default state |
Description |
---|---|---|---|---|
pca_jvm_root_dir |
string |
Platform specific |
Enabled |
Absolute path to the system root directory. Required for file I/O. |
pca_jvm_tmp_dir |
string |
Platform specific |
Enabled |
Absolute path to the system temporary directory. Required for file I/O. |
Argument |
Units type |
Default value |
Default state |
Description |
---|---|---|---|---|
pca_jvm_work_dir |
array |
Platform-specific |
Disabled |
The absolute path (and optional permission mask) where the JVM is allowed to do file I/O. See Chapter 8, “File and Network Access Using Java,” in Java in Adaptive Server Enterprise. |
Argument |
Units type |
Default value |
Default state |
Description |
---|---|---|---|---|
pca_jvm_min_jni_version |
string |
‘JNI_VERSION_1_2’ |
Enabled |
Minimum backward compatible JNI version. |
Argument |
Units type |
Default value |
Default state |
Description |
---|---|---|---|---|
pca_jvm_ase_logging |
switch |
N/A |
Enabled |
Configure Adaptive Server logging. |
pca_jvm_log_filename |
string |
‘/tmp/Java_vm.log1’ |
Disabled |
A fully qualified filename that the VM uses for logging. |
Argument |
Units type |
Default value |
Default state |
Description |
---|---|---|---|---|
pca_jvm_ext_class_loader_global |
array |
none |
Disabled |
Global Extension Class Loader. |
pca_jvm_ext_class_loader_dbase |
array |
none |
Disabled |
Database Extension Class Loader. |
Argument |
Units type |
Default value |
Default state |
Description |
---|---|---|---|---|
pca_jvm_java_options |
array |
“-Djava.awt.headless=true” |
Enabled |
Run Java in headless mode. |
pca_jvm_java_options |
array |
“-Djava.compiler=JIT” |
Enabled |
Force JIT compilation and optimization. |
pca_jvm_java_options |
array |
“-XX:+CITune:” |
Disabled |
Time spent in JIT Compiler (1.4 only). |
pca_jvm_java_options |
array |
“-XX:+Use AltSigs” |
Disabled |
This option seems to crash the J2SE. |
pca_jvm_java_options |
array |
“-XX:CodeCacheExpansionSize=512000” |
Enabled |
Code Cache extension size. |
pca_jvm_java_options |
array |
“-Xbatch” |
Disabled |
Disabled background compilation. |
pca_jvm_java_options |
array |
“-Xcheck:jni” |
Enabled |
Perform additional checks for JNI functions. |
pca_jvm_java_options |
array |
“-Xfuture” |
Disabled |
Perform strict checks, anticipating future default. |
pca_jvm_java_options |
array |
“-Xincgc” |
Disabled |
Enable incremental garbage collection. |
pca_jvm_java_options |
array |
“-Xint” |
Disabled |
Interpreted mode execution only. |
pca_jvm_java_options |
array |
“-Xloggc:./myGClog” |
Disabled |
Log GC status to a file with teim stamps. |
pca_jvm_java_options |
array |
“-Xmixed” |
Disabled |
Mixed mode execution (default). |
pca_jvm_java_options |
array |
“-Xms64m” |
Disabled |
Set initial Java heap size. |
pca_jvm_java_options |
array |
“-Xmx64m” |
Disabled |
Set maximum Java heap size. |
pca_jvm_java_options |
array |
“-XnoClassgc” |
Disabled |
Disable class garbage collection. |
pca_jvm_java_options |
array |
“-Xprof” |
Disabled |
Output cpu profiling data. |
pca_jvm_java_options |
array |
“-Xrs” |
Disabled |
Reduce use of OS signals by Java/VM. |
pca_jvm_java_options |
array |
“-Xshare:auto” |
Disabled |
Configure shared class data (set to auto, off or on). |
pca_jvm_java_options |
array |
“-Xss64m” |
Disabled |
Set Java thread stack size. |
pca_jvm_java_options |
array |
-XX:MaxPermSize |
Disabled |
Sets the maximum size of the permanent heap |
pca_jvm_java_options |
array |
“-enablesystemassertions” |
Enabled |
Enable Java/VM System Assertions - applies only to platforms using the Sun HotSpot (TM) JavaVM. |
pca_jvm_java_options |
array |
“-esa” |
Enabled |
Enable All System Assertions - only applies to platforms using the Sun HotSpot (TM) JavaVM. |
pca_jvm_java_options |
array |
“-verbose:class” |
Disabled |
Class loading within the JRE/VM. |
pca_jvm_java_options |
array |
“-verbose:gc” |
Disabled |
Garbage Collection statistics. |
pca_jvm_java_options |
array |
“-verbose:jni” |
Disabled |
Java Native Interface (JNI) invokations. |
Argument |
Units type |
Default value |
Default state |
Description |
---|---|---|---|---|
pca_jvm_java_dbg_agent_port |
number |
8000 |
Disabled |
Configure the port number and the Java VM Debug Agent. |
pca_jvm_java_dbg_agent_suspend |
switch |
N/A |
Disabled |
Java VM Debug Agent starts suspended when enabled. |
Argument |
Unit type |
Default value |
Default state |
Description |
---|---|---|---|---|
pca_jvm_sys_device_path |
array |
Platformspecific |
Platform specific |
Internal system option for Sun OS. DO NOT CHANGE. |
The permission checks for sp_jreconfig differ based on your granular permissions settings.
Granular permissions enabled |
With granular permissions enabled, you must be a user with manage server configuration privilege. |
Granular permissions disabled |
With granular permissions disabled, you must be a user with sa_role. |
Values in event and extrainfo columns from the sysaudits table are:
Event |
Audit option |
Command or access audited |
Information in extrainfo |
---|---|---|---|
38 |
exec_procedure |
Execution of a procedure |
|
Stored procedures sp_pciconfig