Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

max-datasize

Syntax

max-datasize size;

Hierarchy Level

[edit event-options event-script],[edit system scripts commit],[edit system scripts op]

Release Information

Statement introduced in Junos OS Release 12.3.

Description

Maximum amount of memory allocated for the data segment during execution of a script of the given type. Junos OS sets the maximum memory limit for the executing script to the configured value irrespective of the total memory available on the system at the time of execution. If the executing script exceeds the specified maximum memory limit for that script type, it exits gracefully.

Default

If you do not include the max-datasize statement, the system allocates half of the total available memory of the system up to a maximum value of 128 MB for the data segment portion of the executed script.

Options

size

Maximum amount of memory allocated for the data segment during execution of a script of the given type. If you do not specify a unit of measure, the default is bytes.

Syntax: size to specify bytes, sizek to specify KB, sizem to specify MB, or sizeg to specify GB

Range: 2,3068,672 (22 MB) through 1,073,741,824 (1 GB)

Required Privilege Level

maintenance—To view this statement in the configuration.
maintenance-control—To add this statement to the configuration.

Published: 2013-03-05