resources

Syntax

resources {cpu {priority number;time seconds;}file {core-size bytes;open number;size bytes;}memory {data-size bytes;locked-in bytes;resident-set-size bytes;socket-buffers bytes;stack-size bytes;}}

Hierarchy Level

[edit system extensions resource-limits package package-name],[edit system extensions resource-limits process process-ui-name]

Release Information

Statement introduced in JUNOS Release 9.6.

Description

Set resource limits for JUNOS SDK applications.

Options

bytes

Maximum size of each file, in kilobytes (KB) or megabytes (MB).

Syntax: Where x is some number, use xk to specify KB or xm to specify MB.
core-size bytes

Maximum size of a core file that can be created.

data-size bytes

Maximum size of the data segment.

file

File system resources.

file-size bytes

Maximum size of a file that can be created.

locked-in bytes

Maximum number of bytes that can be locked into memory.

memory

Memory resources.

open number

Maximum number of simultaneous open files.

priority number

Highest priority number (nice level) at which the process can run.

resident-set-size bytes

Maximum amount of private or shared memory at any given moment.

socket-buffers bytes

Maximum amount of physical memory that may be dedicated to the socket buffers.

stack-size bytes

Maximum size of the stack segment.

time seconds

Maximum amount of CPU time that can be accumulated.

Usage Guidelines

See Configuring Resource Limits.

Required Privilege Level

admin—To view this statement in the configuration.

admin-control—To add this statement to the configuration.

Related Topics

resource-limits