Navigation
Related Documentation
- M, MX, T Series
- Restricting Resource Limits
- M, MX, SRX, T Series
- resource-limits
- extensions
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
Release Information
Statement introduced in Junos OS Release 9.6.
Description
Set resource limits for 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.
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.
Required Privilege Level
admin—To view this statement in the configuration.
admin-control—To add this statement to the configuration.
Related Documentation
- M, MX, T Series
- Restricting Resource Limits
- M, MX, SRX, T Series
- resource-limits
- extensions
Published: 2013-08-16
Related Documentation
- M, MX, T Series
- Restricting Resource Limits
- M, MX, SRX, T Series
- resource-limits
- extensions