O
O
organizer7762021-06-22 11:59:20
System administration
organizer776, 2021-06-22 11:59:20

Tell me, using Windows, you can implement self-cleaning of memory from the cache (applications die when 6.9 GB of memory is consumed)?

Java has a garbage collector that removes from memory all non-useful values ​​and caches, if those have not been used for a hundred years, while the program is running.
Can this be done with windows apps? Let's say my cad or toy gobbled up a ton of memory and does not use it (stupidly the cache is defined and at least stand on your head). Take and clean up this cache if galloons begin.

For example. Yesterday I played a game with an open world, and it died with almost 7 GB of RAM. This is not the first time I have had such situations, so it is interesting to look at solutions with a cache and the fight against leaks.
The system I have is win 7 enterprise (64) and 32 GB of RAM, but applications are dying at 7 GB.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
S
Saboteur, 2021-06-22
@saboteur_kiev

Java has a garbage collector that removes from memory all non-useful values ​​and caches, if those have not been used for a hundred years, while the program is running.

It doesn't quite work that way. GC cleans memory from values ​​that are not used, that is, they are not defined anywhere else. In java, you can also mess up the memory if the programmer is a handyman. But many times more difficult than in C ++
Can this be done with windows apps? Let's say my cad or toy gobbled up a ton of memory and does not use it (stupidly the cache is defined and at least stand on your head). Take and clean up this cache if galloons begin.

If the application in Windows is written in java, it will clean it anyway.
If not, it depends on the programmer who wrote the application.
For example. Yesterday I played a game with an open world, and it died with almost 7 GB of RAM. This is not the first time I have had such situations, so it is interesting to look at solutions with a cache and the fight against leaks.

The fight against leaks is handled by the programmer, not the user. Leaks are errors in the code when you requested memory, and when you don't need it, you forgot to release it. And without changing the program, you will not fix the leak.

V
Vasily Bannikov, 2021-06-22
@vabka

Let's say my cad or toy gobbled up a ton of memory and does not use it (stupidly the cache is defined and at least stand on your head). Take and clean up this cache if galloons begin.

It is impossible to understand from the outside whether the application uses the allocated memory or not.
The system I have is win 7 enterprise (64) and 32 GB of RAM, but applications are dying at 7 GB.

Increase the swap file.

@
@nidalee, 2021-06-22
_

Windows 10 has ISLC . On Windows 7, there should not be such a problem, so I'm not sure about the performance of ISLC on it.

The system I have is win 7 enterprise (64) and 32 GB of RAM, but applications are dying at 7 GB.
This, of course, should not be, and the cache has nothing to do with it.

U
u on, 2021-06-22
@mihalik35

For Windows 7-8.1 you can use MemReduct
https://www.henrypp.org/product/memreduct
For Windows 10+ it is better to use ISLC
https://www.wagnardsoft.com/forums/viewtopic.php?t=1256

D
Drno, 2021-06-23
@Drno

Check the ram with memtest.
Disable the paging file altogether (well, or leave 100mb) and see at what point the game will crash. check how much ram was used

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question