Progress
Startup Command and Parameter
Reference


Maximum Memory (-mmax)

Operating 
System
and
Syntax 
UNIX
Windows 
-mmax n 
Use
With 
Maximum
Value 
Minimum
Value 
Single-user
Default 
Multi-user
Default 
CS
65,534
1
512
512

n

The amount of memory allocated for r-code segments.

Use Maximum Memory (-mmax) to change the initial amount of memory allocated for r-code segments, in kilobytes. Progress dynamically allocates space for r-code segments in the execution buffer as needed. When memory allocation reaches the value specified by the Maximum Memory (-mmax) value, Progress writes nonactive segments to the sort file to make room for new active procedures. (Progress writes library-stored r-code to the sort file only if you specified the PROLIB Swap (-pls) startup parameter.) If you have large procedures or deeply nested procedure calls, you can use -mmax to increase the initial size of the execution buffer to reduce disk I/O activity required to swap segments to the sort file.

The -mmax value does not limit the amount of memory available for r-code segments. If Progress requires more space in the execution buffer and cannot regain enough space by swapping inactive segments to the sort file, Progress allocates more memory.

The -mmax limit is a soft limit; so if your application needs to exceed the limit, Progress automatically increases it and issues a WARNING message. The WARNING is written to the current output (if there is current output) and to the log file (LG).

You can force Progress to adhere to the specified -mmax limit by starting the session with the Hardlimit (-hardlimit) startup parameter. When you use the -hardlimit startup parameter, Progress issues the WARNING message when you exceed the Maximum Memory limit. It also issues a message that a resource limit was reached and raises an untrappable STOP condition. Note also that -hardlimit also enforces the limits set by the Directory Size (-D) the Local Buffer Size (-l), and the Nested Blocks (-nb) startup parameters. The STOP condition is raised when any of the specified limits is reached.

Use Statistics (-y) and Segment Statistics (-yd) to see segment allocation information.


Copyright © 2004 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095