Lack of memory for unnecessary information.

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

  • When updating the configuration;
  • When starting the application;
  • When generating a report;
  • When performing large calculations (carrying out the document “Calculation of cost”, “Closing the month” and so on).

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

What determines the size 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 running a specific application.

Considering that half of the address space virtual memory are allocated for the needs of the system itself, leaving only 2GB for the application. When the 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 to correct 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! Manually allocating memory can lead to operational problems. personal computer until the system stops completely.

Removing the line from the boot.ini file or running the command and replacing parameter 2900 with 2000 returns the system to initial state.

It is important to understand that these methods are only a temporary solution to the problem; to permanently eliminate it, you need to transfer the database to a 64-bit platform.

Insufficient memory when generating a report

Not very often, but this error occurs when reports occur. In this case, performing generation processing spreadsheet document drags on and eventually ends with a window, as in the first picture.

Before getting 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 selection. In most cases this helps.

If the error does not occur in a standard report (such as an account card or balance sheet), and there is access to source code processing, check whether temporary tables are formed in the query. Recorded 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 similar situations It is highly recommended to destroy temporary tables in a query immediately after they are no longer needed.

Memory leaks on the server

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

Rice. 3.

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

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

The second reason is memory fragmentation. If intensive reservation and release of RAM occurs during server operation, at one point 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.

The second problem can be solved using system utilities.

As a result of this they may:

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

Fig.4

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

Update errors

This low-memory option occurs when you try to update the configuration to the current release. It can be associated with a large number of running applications, and with errors in the database.

The first action when this problem occurs is to launch the updated database in configurator mode and carry out its restructuring (menu item Administration->Testing and Correction), although it is better to carry out a full range of work to correct errors and reindex tables.

The “Out of Memory” error in 1C 8.3 and 8.2 is not that rare. It can also be found in the configurator (for example, when comparing configurations), as well as in the “1C:Enterprise” mode when performing labor-intensive processing: for example, when recording large file base64 format.

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 per various programs and the same for the operating system. In 64-bit OS, 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: switch from a 32-bit system to a 64-bit one, or increase the initially allocated amount of address memory.

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

A search for programs will be displayed in front of you. Select the one called “cmd”.

You can also open the command line using a combination of hot keys Windows keys+R.

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 strongly recommended to restore the previous amount of address memory. This measure is temporary, since when allocating memory for applications, the operating system has less memory. This may compromise the stability of Windows.

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

bcdedit /deletevalue increaseuserva

Please note that with the common “Out of memory” error 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 does not help, then you should increase the bitness of the Windows operating system.

Let's take a closer look at the options for fixing the “Not enough memory” error in 1C 8.3.

Method 1: Increase address memory size

There is a limitation in the allocation of address memory for software 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 – enter CMD in the command line and press Enter:
  • Or click right click Click the Start button and select Command Prompt (Administrator).

Step 2

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

Step 3

Reboot the computer. Let's perform actions in the 1C 8.3 program that were not possible before.

Step 4

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

Reboot the computer.

Method 2. Delete documents and directories marked for deletion

In the 1C 8.3 platform it became possible to use regulatory task.

Removing marked objects allows you to:

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

Step 1. Create a copy of the database

Open the item: section Administration – Program Settings – Support and Maintenance – Backup and recovery:

Setting up a schedule automatic copying base and click Finish:

More details on how to do it backup copy Watch 1C 8.3 in our video tutorial:

Step 2. Delete marked objects

Open the item Automatically delete marked objects according to a schedule: section Administration – Program Settings – Support and Maintenance – Routine Operations:

Setting up a schedule automatic removal marked objects in 1C 8.3 at a convenient time. For example, during a lunch break and click Finish:

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


Please rate this article:

The error "Your computer does not have enough memory" is caused by a lack of RAM as well as virtual memory. In this regard, the most probable reasons, which can cause this situation are the following:

  • There is a real shortage of physical RAM;
  • There are a lot of processes running on the computer at the moment (these can be both programs and sessions inside running applications, for example, browser tabs);
  • The hard drive is almost completely occupied - in this case, the paging file will not work properly;
  • There are also programs that can cause what is called a “memory leak,” a situation where an application takes up all the available space to complete its tasks.

It is for these reasons that the operating system displays the error “There is not enough memory on your computer, close programs to free up memory.”

Actually, the solution to this problem depends on the root cause.

In case of physical shortage of RAM, of course, you will need to increase its volume by purchasing RAM sticks in the store. Most computers now use 8 GB, but it all depends on the tasks for which the computer was purchased. It is also worth paying attention to the support for a large number of strips motherboard. Also, if the computer is not new and there are no plans to upgrade it, then, unfortunately, you will have to put up with this system operation.

If the reason is that hard drive is completely busy and there is not enough memory on the computer, you will need a disk cleanup utility to free it up. The beauty of it is that it will not allow you to delete files that are used by the system and lead to its inoperability. In other words, disk cleanup Windows utility will help you safely delete temporary and a number of other, mostly useless, files. You can launch it by right-clicking on the C: drive and selecting “Properties” and then “Disk Cleanup”.

The utility will conduct an initial analysis and show which files can be deleted. As a rule, in this case it will not be a very large volume. Clicking on "Clear system files» will go through another stage of analysis and the amount of freed up space will certainly be increased.

You should also check if the page file is enabled. It is used if there is not enough memory for programs to run and more is required than is currently physically available - in this case, the shortage will be compensated by free space on your hard drive. You need to open “Control Panel”, then “System”.

Then open “Advanced system settings”.

Switch to the “Advanced” tab.

Click “Change”.

In this window you can manage the size of the paging file. It is recommended to set its size automatically.

In the event that there is not enough memory due to another program or many processes, then it would be logical to understand which ones they are. In this case, you can use Task Manager to sort processes by the Memory column in the Details tab.

By analyzing the processes on the list, you can decide what to do with them. This could be either normal operation (for example, during an update), or abnormal (internal application failure), or it could even be malware. In any case, checking for malicious objects won't hurt. Be that as it may, if the error that there is not enough memory is caused by a certain application, then it is recommended to contact the support of this software to eliminate the negative effects.

Have a great day!

Errors occur. We will look at one of them, dedicated to the topic “Insufficient free memory on the 1C:Enterprise server.”

Method for eliminating the error “There is not enough free memory on the 1C:Enterprise server.”

The memory capacity of work processes when working on the 1C agent server is not infinite. When it is at maximum load, the user sees a message that is pleasing with its novelty - “There is not enough free memory on the 1C:Enterprise server.”


First, let's talk about the reasons for this kind of messages - why there is not enough memory. There may be several of them:

Insufficient iron power

If up to five people work in the system, then one eight-gigabyte computer with two screws (on one - SERVER, on the second - SQL) and additionally installed chips will be enough. But it’s another matter - about thirty users, thousands of primary documents. Here, SQL needs to be moved to a separate server, and a terminal server alone cannot cope.

Lack of memory for unnecessary information

Typical configurations try to describe literally every process that a developer could imagine, trying to create a universal accounting tool called 1C: Enterprise. Therefore, a specific user receives additional baggage in the form of an abyss of metadata objects, additional SQL tables, unused details. Constantly registering and re-indexing all this unnecessary stuff in the program registers takes long time and plenty of space.

Coding errors

Server overload also occurs when programmers (sometimes) do not understand certain processes and they introduce their own “crutches” that increase the time required to complete assigned tasks (and the number of work processes too).

Program errors

Among other things, and this is often almost the main reason - the 1C program has an incredible number of internal errors. Some of them are fixed in subsequent releases. A large number of forums are dedicated to these errors, where admins, discussing the latest tricks, jokingly say that probably only Tajiks (Dzhamshut and Ravshan) work in the same social network.

So what to do with the 1C server?

Since the causes of a problem can be different, there are also different ways to solve the situation:

Restarting the server service

The fastest and in a simple way The solution is to restart the server service. From command line Microsoft Windows(cmd): to stop, execute the command - net stop "1C:Enterprise 8.3 (or your version) Server Agent", and to start - net start "1C:Enterprise 8.3 (according to your version) Server Agent". This solution does not solve the problem completely - most often the mistake is repeated. The frequency of its repetitions depends on the number of clients and the number of work processes.

IMPORTANT. To be able to restart, you must have the appropriate rights.

Auto restart and cluster settings

Sometimes even one running workflow can take up almost all the RAM. This problem is solved by increasing their number in the cluster settings. They add approximately one process for every fifteen to thirty users.

Restart interval. Shortly before the previous one finishes, a new rphost.exe process starts. - Connections from the old one are transferred to it. Allowable volume memory - if this value is exceeded, a second countdown timer will be started.

Interval for exceeding the limit volume - when the timer exceeds this value, a new process will be launched. And the connections from the old one will be connected to it. And the old one, in turn, is marked inactive. Off stop processes after - after the value of this parameter has passed after marking the workflow as inactive, it will be terminated by the operating system. If you set this parameter to “0”, then all inactive processes will not be terminated automatically.

IMPORTANT. This setting is characterized by the fact that it disconnects from the database only the client that launched the incorrect report. And the rest will be smoothly moved to new connections (without interruption from their base).

Number of worker processes

If rphost.exe is overloaded with background jobs and new processes are not created, you need to check the settings:

Max. The memory size of worker processes is the total amount of memory for all processes together. Measured in bytes. If you set the wrong value (inadequate to normal operation), everyone will receive the error “There is not enough free memory on the 1c server.”

Safe memory consumption per call - controls memory consumption during a call by the server (in bytes). When used by call more than specified - it will be completed within the cluster. It will not be restarted. And the loss of a session will not affect other clients.

The amount of memory for processes up to the value of which the server is considered productive by the system - when this value is reached, the cluster server stops accepting connections. Quantity information bases per process - isolates information security by process. After isolating information bases (by entering the value “1”), problems are usually solved.

Number of connections per process - default value is “128”. If the current database has a very heavy load from background jobs, then you can reduce this number, for example, to “25”. With these settings, the cluster settings will change slightly:

Fault tolerance level - shows the number of servers that, if they fail, will not cause an emergency shutdown of clients. This will automatically launch in the right quantity backup services.

Load sharing mode - has two possible options. If you set “Priority on performance”, then the server memory will be consumed more to increase performance. When you select “Memory priority”, the 1C cluster will save memory.

Database tool

To operate with the database, you must use MS SQL DBMS.

Checking the configuration

Perhaps the cause of the error lies in incorrect information contained in the Configuration. To check it, you need to run the “Check configuration” command. (Not to be confused with testing!). Before execution, you need to check the setting of the checkbox (checkbox) - “logical integrity”. If any incorrectness is detected, this will be reflected in the message. And the errors will be removed.

We looked at the reasons for the lack of free memory on the 1C server and possible ways eliminating this. One of the methods will certainly solve the problem.

Share