Shared Memory

The shared memory is a part of physical memory intended for common use. Programs communicate with each other through shared memory. Shared memory results in faster access to the components loaded in shared memory. To enhance the performance of your LN system, you can load program objects and report objects into the shared memory. Before you set up and initialize shared memory, you should verify that the hardware and internal memory is sufficient.

To load objects into the shared memory

After the installation of LN, various objects are already loaded in the shared memory.

This section describes the procedure to load additional objects into the shared memory.

LN uses a lot of DLLs; therefore, it is difficult to decide which objects should be loaded into the shared memory. Before you fill the shared memory, you can use measurement tools to identify which objects are frequently used and suitable to load into the shared memory.

A shared memory configured based on the measurement information improves the processing speed of your LN application.

Istruzione 1. Activate logging

To gather statistics on the usage of objects, start the Parametri registrazione (ttaad4153m000) session.

Optionally, click Pulitura to remove the currently stored shared memory measurement data.

Specify the time frame in which shared memory logging must take place. If you do not define a time frame, no logging will be done.

After you specify the logging parameters, click Converti. You can only run the Converti command on a Master Application Server.

The measurement will start for all bshells started after the conversion is run, taking the defined time frame into account. The logged information of a bshell is stored when the bshell is closed.

For details, refer to the session help.

Istruzione 2. View object usage statistics

After the period of shared memory measurement has ended, start the Misurazione oggetti memoria condivisa (ttaad4152m000) session.

Use this session to view statistics on the object usage in the bshell. The session displays, among other things, the number of times an object was loaded during the measurement period. This information helps identify which objects are frequently used and should be loaded into the shared memory.

Optionally, click Print to print a Shared Memory Object Measurement report.

Optionally, on the Visualizzazioni, Riferimenti o Azioni menu, click Pulitura to remove the shared memory measurement data.

For details, refer to the session help.

Istruzione 3. Optional: Allocate shared memory for package combinations

Start the Dati memoria condivisa (ttaad4156m000) session and click Alloca. The Memoria condivisa allocata (ttaad4155m000) session starts. Specify, per package combination, the amount of memory (in MB) allocated for object usage in shared memory.

For details, refer to the session help.

Note: This step is optional. If you do not allocate memory for a package combination, or if you allocate 0 MB for a package combination, the amount of shared memory for the package combination will be unlimited.

Istruzione 4. Specify shared memory data

Start the Dati memoria condivisa (ttaad4156m000) session. In this session, you can specify shared memory data in the following ways.

Import objects from measurement

(Recommended)

On the Visualizzazioni, Riferimenti o Azioni menu, click Import Objects from Measurement. The Importazione oggetti da misurazione (ttaad4255m000) session starts.

Use this session to do one of the following:

  • Import a range of program objects and/or report objects from the object measurements into the shared memory data.
  • Import the most frequently used objects until the allocated memory, defined in the Memoria condivisa allocata (ttaad4155m000) session, is reached. To do this, you must select the Riempi memoria allocata residua con oggetti più ricorr. check box. The current shared memory data is deleted first, except the objects marked as Fixed.

    This option is recommended. A shared memory filled with the most frequently used objects improves the processing speed of your LN application.

Import objects from DD

On the Visualizzazioni, Riferimenti o Azioni menu, click Import Objects from DD. The Importazione oggetti da DD (ttaad4254m000) session starts. Use this session to import a range of program objects and/or report objects from the Data Dictionary (DD) into the shared memory data.

Manually add objects

To manually enter objects in the grid, click New.

 

Nota

  • If one or more objects are defined for a package combination, the domains and table definitions of that package combination will also be loaded into the shared memory. You cannot add individual domains and table definitions.
  • Tools objects (objects of packages tt and tl) do not belong to a package combination, and are therefore stored in the dummy <empty> package combination. To create a list of Tools objects to be loaded into shared memory, leave the Combinazione package field empty.
  • You can mark objects as Fixed. Fixed objects will not be removed from the shared memory data when you run the Importazione oggetti da misurazione (ttaad4255m000) session with the Riempi memoria allocata residua con oggetti più ricorr. check box selected.

For details, refer to the session help.

Istruzione 5. Convert the shared memory data to Runtime

On the Visualizzazioni, Riferimenti o Azioni menu in the Dati memoria condivisa (ttaad4156m000) session, click Converti in runtime. You can only run this command on a host defined as Master Application Server (MAS).

When the conversion is complete, click OK and close the session.

Istruzione 6. Restart the shared memory

The procedure to restart the shared memory depends on the operating system of the LN server.

Operating SystemProcedure
Windows

To restart the shared memory, complete the following steps:

  1. Start the Enterprise Server Service Manager.
  2. Right-click the Shared Memory Service, and on the shortcut menu, click Stop.
  3. Right-click the Shared Memory Service again, and on the shortcut menu, click Start.
UNIX

To restart the shared memory, complete the following steps:

  1. Log off from LN.
  2. Log onto the LN server as user root.
  3. Enter the following commands:

    # cd $BSE/bin

    # ./srdd_init6.2 -i

 

Nota

For more information on shared memory, refer to Infor10 ERP Enterprise Server (LN) Technical Manual (U8172 US).