Running an Application in Memory Machine
To run an application with Memory Machine memory management, use the mm script supplied with Memory Machine.
Before you begin
Important: If you plan to run a large number of
processes in Memory Machine, you may need to manage how many application instances you run at a time. See
Calculating Process Count Limits.
About this task
Procedure
Use the script to start an application under Memory Machine as follows:
$ mm -c|--config config_file app_name app_cl_parms
where:
- -c|--config
- indicates an application configuration file that defines the Memory Machine environment to be used for this application instance.
- config_file
- is an optional file path to an application configuration file. See The Application Configuration File.
- app_name
- is the application CLI command.
- app_cl_parameters
- are any command line parameters required by your application.
Important: If the application is attached to a terminal, you cannot
capture a snapshot of the application in Memory Machine Management
Center. It is not enough to detach the application process from the command line
terminal; standard input and output must be eliminated or attached to a
non-interactive device.