sp_jreconfig

Manages the Java PCA/JVM. Enables or disables arguments and directives, changes configuration values, and reports configuration values.

Note: 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.

Syntax

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 } }

Parameters

Examples

Usage

There are additional considerations when using sp_jreconfig.

pca_jvm_module_path configures the path to the JVM shared-object library. If you use a JRE other than that supplied by SAP, 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, the SAP ASE server assumes a relative path and looks under $SYBASE.

pca_jvm_module_path

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.

This table describes pva_jvm_opt.

Do not change default values unless instructed to do so by SAP Technical Support.

pva_jvm_opt

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.

pca_jvm_dir_options configures the 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 SAP 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_dir_options

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.

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_work_dir

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 File and Network Access Using Java in Java in Adaptive Server Enterprise.

pca_jvm_min_jni_version configures minimum backward compatible JNI version.

pca_jvm_min_jni_version

Argument

Units Type

Default Value

Default State

Description

pca_jvm_min_jni_version

string

‘JNI_VERSION_1_2’

Enabled

Minimum backward compatible JNI version.

pva_jvm_logging configures JRE/VM logging options.

pva_jvm_logging

Argument

Units Type

Default Value

Default State

Description

pca_jvm_ase_logging

switch

N/A

Enabled

Configure SAP ASE logging.

pca_jvm_log_filename

string

/tmp/Java_vm.log1

Disabled

A fully qualified filen ame that the VM uses for logging.

pca_jvm_ext_class_loader configures global and database extension class loaders.

pca_jvm_ext_class_loader

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.

pva_jvm_java_options configures Java start-up options, both normal and extended.

pva_jvm_java_options

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 time 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.

pva_jvm_java_dbg_agent_port configures the Java VM debug agent port number (used for debugging Java applications with a Java debugger). See Java in Adaptive Server Enterprise for more information.

pva_jvm_java_dbg_agent_port

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.

pca_jvm_sys_device_path configures platform-specific system device directories (required for Solaris).

pca_jvm_sys_device_path

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.

Permissions

The permission checks for sp_jreconfig differ based on your granular permissions settings.

SettingDescription
Enabled

With granular permissions enabled, you must be a user with manage server configuration privilege.

Disabled

With granular permissions disabled, you must be a user with sa_role.

Auditing

Values in event and extrainfo columns from the sysaudits table are:

InformationValues
Event

38

Audit option

exec_procedure

Command or access audited

Execution of a procedure

Information in extrainfo
  • Roles – Current active roles

  • Keywords or options – NULL

  • Previous value – NULL

  • Current value – NULL

  • Other information – All input parameters

  • Proxy information – Original login name, if set proxy in effect

Related reference
sp_pciconfig