Technical Documentation



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.


Set resource limits for JUNOS SDK applications.


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.

cpu—CPU resources.

  • priority number—Highest priority number (nice level) at which the process can run.
  • time seconds—Maximum amount of CPU time that can be accumulated.

file—File system resources.

  • core-size bytes—Maximum size of a core file that can be created.
  • open number—Maximum number of simultaneous open files.
  • size bytes—Maximum size of a file that can be created.

memory—Memory resources.

  • data-size bytes—Maximum size of the data segment.
  • locked-in bytes—Maximum number of bytes that can be locked into memory.
  • 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.

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.

Published: 2010-05-09