Show TOC

Storage ParametersLocate this document in the navigation structure

Use

The following parameters are used to set the memory management of the VM Container.

Note

For a description of the various memory areas and their connection with the parameters see Memory Management im VM Container.

  • Maximum size of the heap of the Virtual Machine: vmcj/max_vm_heap_MB

  • Maximum size of the heap for Java objects: vmcj/option/maxJavaHeap

  • VMC pool size: vmcj/option/ps

  • Size of the code cache of the JIT Compiler: vmcj/option/jit/sharedCodeCache

Features

The profile parameters are described below. You can change the values by changing the profile and restarting the VM Container (see VM Overview).

Recommendation

The standard settings represent a minimum configuration. For productive operation you have to normally change the settings. Configure the system following SAP Note 1020539.

vmcj/max_vm_heap_MB

Each VM is mapped into a memory area that has a fixed size and is created during startup. This size determines how much memory a VM can allocate for the runtime environment. This parameter defines the size of this memory area.

Possible values: [size in MB]

Default: 64

If the maximum size is exceeded, the VM allocates local process memory (operating system heap). The memory cannot be assigned to another user, and remains occupied by the current user until the request is completed (PRIV mode, see Private Memory). Afterwards the VM closes.

Java stacks

You can change the size of the Java stack with parameter vmcj/option/ss = [size [k | M]]. The standard size is 128k on 32 bit platforms and 256k on 64 bit platforms.

Service stacks

The meaning of service stacks is described in vmcj/jni_strategy. The VM standard size is 1MB on 32 bit platforms and 2MB on 64 bit platforms.

vmcj/option/maxJavaHeap

Each VM is mapped into a memory area that has a fixed size and is created during startup. This parameter specifies how much memory a VM can allocate for local Java objects. You can specify the size in KB or MB.

Possible values: [size [K | M]]

Default: 64M

vmcj/option/ps

This parameter determines the size of the shared pool of the VM container. The pool is used by all VMs and contains shared classes, shared closures, and so on.

Possible values: [size [K | M]]

Default: 64M (32 Bit) / 128M (64 Bit)

vmcj/option/jit/sharedCodeCacheSize

Size of the shared memory in which the just-in-time compiler stores the machine code generated from the Java byte code. This memory area is used by all VMs and is located in the shared pool.

You can specify the size in KB or MB.

Possible values: [size [K | M]]

Default: 32M