How to set up smartphones and PCs. Informational portal
  • home
  • Windows 10
  • 1s out of memory when updating. Resolving a problem on a client computer

1s out of memory when updating. Resolving a problem on a client computer

This error is quite typical for 1C 8.3, many users encounter it.

Causes

There are actually quite a few reasons why the error “Not enough memory 1C” may appear. Very often, this error occurs when the 1C Enterprise configuration is incorrectly updated. It is equally rare that an error occurs when loading a large database, or trying to process a very large file.

Since the cause of the error during these actions lies in the lack of address memory, it will not be possible to solve it by upgrading the equipment on which the 1C program is installed.

The fact is that the operating system gives the software access to a limited amount of address memory, as a rule, this amount is 2 gigabytes for thirty-two-bit operating systems and 4 gigabytes for sixty-four-bit operating systems.

Do you have a question, do you need the help of a consultant?

How to increase the amount of address memory?

It is not difficult to expand the address memory available to the 1C program. To do this, you need to call the command line. This can be done in several ways, the easiest of which is to right-click on the Start menu icon - "Command Prompt"
In the window that appears, enter the following:

where the numerical value is the desired amount of memory and press the "Enter" key. After that, you will need to restart your computer. You can then try to retry the operation that failed. If the error persists, we recommend contacting a specialist.
Our programmers will be happy to advise and help you.

One of the most common errors that occur while working with 1C 8.3 is “Not enough memory”. In reality, it can occur after a lot of events - updating, processing large files, generating a report, loading data, and others. This means that any 1C administrator and developer must understand the essence of the problem and be able to fix it. A simple increase in PC RAM or hard drive will not solve this problem.

Resolving a problem on a client computer

The reasons for this error are not entirely in the 1C system, since you can see a similar error in other applications. The problem is that operating systems of the Microsoft family allocate a certain amount of memory per application by default. For 32-bit systems, this value is set to 2 GB, for 64-bit systems - 4 GB. When the software exceeds this value, an error window appears on the monitor.

The easiest way to get rid of such messages is to delete objects marked for deletion in the configuration. This helps infrequently, but eliminates unnecessary hesitation. In addition, the risk of these actions is minimal, since it does not require intervention in the internal settings of Windows. If the removal did not help, then you will have to fight with other methods.

Another solution for 32-bit systems is to switch to 64-bit or allocate more memory to applications. The first option is much more correct, but sometimes for various reasons it is not possible. Then only the option with the algorithm of actions remains, shown below, but it should be used very carefully - there may be significant problems with the performance of the entire system.

This algorithm is quite simple:

  1. Open a Windows Command Prompt. Use the "Start" menu or the Windows key combination + R and enter the command "cmd";
  2. In the window that appears, type the command "bcdedit / set increaseuserva 3200" (for example, increase the limit to 3.2 GB). It is worth increasing the limit carefully and gradually;
  3. After confirming the successful completion of the operation in the command line window, restart the PC and try again to perform the steps that led to the error. If the problem persists and 1C still crashes, you can increase the limit again;
  4. After the operation is successfully completed without an error in 1C, restore the default Windows restrictions with the "bcdedit / deletevalue increaseuserva" command. This is a necessary step so that the OS does not infringe on its performance for the sake of 1C and other applications.

This solution allows you to perform an operation that cannot be performed due to the 1C error “Not enough memory”. You can use it only in emergency cases, when the operation needs to be performed right now. In other circumstances, it is better to try running 1C on a 64-bit platform and repeat the operation there.

Much more serious is the message that there is not enough memory on the server during an upgrade or large-scale work. The problem may be in the untimely termination of processes launched by various software, as a result of which there is a “layering” and accumulation of them in virtual memory. The second source of such an error is the intensive work of various programs with the reservation and release of memory. There is a variety of software to solve these problems, but practice shows that it causes disconnections and 1C crashes.


Such errors make you wonder if the 1C server is powerful enough. Increasing its capacity will benefit the company, but such an error can be circumvented in other ways that do not require an injection of funds.

Of course, you should not use them all the time, but one day they can help, if necessary, urgently perform resource-intensive work. Among the popular methods that can help solve the lack of memory error on the server are:

  • Restarting 1C workflows, which will reduce the memory used. This option is suitable only for experienced administrators who understand the administration console of the 1C server;
  • Using the technology log, find a table that is loading with an "out of memory" error during an update or other operation. If an error occurred while working with the "config" table, then check the configuration with the "Check the logical integrity of the configuration" flag. You can find this function in the configurator in the "Configuration" menu.
  • Another common 1C error occurs when there is not enough space on the hard drive on the server. Temporary tables take up a lot of space, and if there is not enough space, the administrator sees the error "There is not enough free memory to complete the operation." In this case, it is difficult to give accurate advice, since the server or cluster device can vary significantly in different options. Among the standard solutions that help in such cases, you can find server restart, increase in free space, query optimization, version upgrade.


    In companies with a large number of users, the error "Not enough free memory on the 1C:Enterprise 8.3 server" occurs quite often. A big problem and a prerequisite for this is the insufficient analysis of the required performance. Therefore, when implementing 1C, pay great attention to the sufficient power of servers so that in the future you do not have to adjust performance at the expense of stability.

    It is impossible to list all the situations when the 1C error “Not enough memory” (Fig. 1) occurs. Let's try to identify the main ones:

    • When updating the configuration;
    • When the application starts;
    • When generating a report;
    • When performing large calculations (posting the document "Cost calculation", "Closing the month" and so on).

    The reason in all cases is the same - the lack of physical memory of the computer. At the same time, adding additional RAM strips to the device does not always solve the problem.

    What determines the amount of available memory

    32-bit operating systems have one significant feature: regardless of the amount of RAM and the size of the paging file, the operating system allocates only 4 GB for the operation of a particular application.

    Considering that half of the virtual memory address space is allocated for the needs of the system itself, only 2 GB remains for the application to work. When a program is running, the virtual memory address space must be reserved in one contiguous block. When this is not possible, a window pops up (Fig. 1).

    How to increase available memory

    Without reinstalling the operating system, there are two options for correcting the situation:


    Using these methods, you can reduce the address space allocated for the operating system to 1GB, increasing the memory for the application to 3GB.

    Attention! By manually allocating memory, you can encounter problems in the operation of a personal computer, up to a complete shutdown of the system.

    Removing the line from the boot.ini file or running the command with parameter 2900 replaced with 2000 returns the system to its original state.

    It is important to understand that these methods are only a temporary solution to the problem; for its final elimination, it is necessary to transfer the database to a 64-bit platform.

    Out of memory when generating a report

    Not very common, but this error occurs when reports occur. In this case, execution of the spreadsheet generation processing is delayed and finally ends with a window as in the first figure.

    Before going into the operating system settings and changing the RAM allocation parameters, in this case it is better to try changing the report settings. Change the date, change the groupings, add a selection. In most cases this helps.

    If the error occurs in a non-standard report (such as an account card or balance sheet) and you have access to the processing source code, check to see if temporary tables are being generated in the query. Written in RAM and existing until the end of the request, they can significantly eat up the resources of a weak computer.

    In general, to avoid such situations, it is highly recommended to destroy temporary tables in a query as soon as they are no longer needed.

    Server memory leaks

    In some cases, users receive a message shown in Fig. 3

    Rice. 3.

    I would like to talk about the reasons for this behavior of the server separately.

    In general, the phrase "memory leak" is somewhat inaccurate, it's better to say that memory is being stored, layered. Programs that start processes forget to terminate them in a timely manner. As a result, they accumulate in RAM.

    The second reason is memory fragmentation. If during the operation of the server there is an intensive reservation and release of RAM, at one of the moments a situation may arise when the amount of free memory is sufficient, but it is impossible to capture a continuous block of memory addresses of sufficient size.

    You can solve the second problem with the help of system utilities.

    As a result, they may:

    1. There are problems with the connection, its breaks, the program crashes; (Fig. 4)

    Fig.4

    1. Errors and freezes appear when unloading the infobase;
    2. There are jumps in memory occupied by 1C processes.

    Update errors

    This out-of-memory scenario occurs when trying to update the configuration to the latest release. It can be associated with both a large number of running applications and errors in the database.

    The first steps to take when this problem occurs is to launch the updated database in the configurator mode and restructure it (Administration->Testing and fixing menu item), although it is better to carry out a full range of work on fixing errors and re-indexing tables.

    The error "Not enough memory" in 1C 8.3 and 8.2 is not so rare. It can also be found in the configurator (for example, when comparing configurations), as well as in 1C:Enterprise mode when performing time-consuming processing: for example, when writing a large base64 file.

    This error can occur not only in the 1C program, but also in other programs of the Windows operating system.

    The thing is that in 32-bit operating systems, by default, 2 Gigabytes for various programs and the same amount for the operating system. In 64-bit operating systems, the amount of memory allocated for applications is already 4 Gigabytes.

    Following from the above, you need to increase the size of the allocated address memory for applications, which is the 1C program. This can be done in two ways: to make a transition from a 32-bit system to a 64-bit one, or to increase the amount of address memory allocated initially.

    Of course, the first method is better and preferable, but if at the moment, or at all, you cannot use it, then you can use the second one.
    Start day, go to the command line of the operating system. To do this, go to the start menu and type "cmd" in the search bar.

    A program search will appear in front of you. Select the one called "cmd".

    You can also open the command prompt using the Windows + R hotkey combination.

    In the window that opens, type the following command and also press "Enter":

    bcdedit /set increaseuserva 3200

    In this case, you will increase the amount of address memory to 3200 megabytes.

    After you have succeeded, it is highly recommended to restore the previous amount of address memory. This measure is temporary, since when memory is allocated for applications, the operating system has less of it. Due to this, Windows stability may be compromised.

    To restore the address memory to the default value, you can use the following command, which is also entered at the command line:

    bcdedit /deletevalue increaseuserva

    Please note that with the often encountered error “Out of memory” in 1C, deleting marked objects can also help. Perhaps the program has accumulated a lot of them and it is difficult for the program to process such volumes of data. If this method did not help, then you should increase the bit depth of the Windows operating system.

    Let us consider in more detail the options for fixing the “Not enough memory” error in 1C 8.3.

    Method 1. Increase the size of the address memory

    There is a limitation in the allocation of address memory for software by the operating system: for a 32-bit system - 2 GB; for a 64-bit system - 4 GB.

    Step 1

    To increase the size of the address memory, you need to do the following: run the command line with Administrator rights:

    • Start - Run - at the command prompt, type CMD and press Enter:
    • Or right-click on the Start button and select Command Prompt (Admin).

    Step 2

    Next, we get into the command dialog box, where we must type the command to increase the address memory. Enter in the command line BCDEdit /set increaseuserva xxxx, where instead of xxxx we specify the amount of virtual address space in megabytes. For example, on 32-bit systems, 3072 MB is recommended:

    Step 3

    We restart the computer. Let's perform actions in the 1C 8.3 program that were not obtained earlier.

    Step 4

    After performing the operations, it is better to return the address memory to the default value. To do this, enter BCDEdit /deletevalue increaseuserva on the command line:

    We restart the computer.

    Method 2. Delete documents and directories marked for deletion

    In the 1C 8.3 platform, it became possible with the help of a scheduled task.

    Deleting marked objects allows you to:

    1. Increase system performance;
    2. Reduce the size of the database.

    Step 1. Create a copy of the database

    Open the item: section Administration - Program settings - Support and maintenance - Backup and restore:

    Set up a schedule for automatic database copying and click Finish:

    For more information on how to make a backup copy of 1C 8.3, see our video tutorial:

    Step 2. Remove the marked objects

    Open the item Automatically delete marked objects on a schedule: section Administration - Application settings - Support and maintenance - Scheduled operations:

    We set up a schedule for the automatic deletion of marked objects in 1C 8.3 at a convenient time. For example, at the time of the lunch break and click Done:

    As a result of the actions taken, the size of the database will decrease, system performance will improve, and the 1C “Not enough memory” error should not occur.


    Rate this article:

    Top Related Articles