Re: memory use increasing while running, till...
- Posted by useless_ Dec 27, 2012
- 1374 views
If Eu does not give memory back to the OS, how is this happening?
On Windows, some memory allocations of sequences are cached, but there are limits. We only keep up to 2000 allocations cached, and each allocation must be 1024 bytes or less. Memory for atoms stored as doubles is allocated in chunks, and I don't think those chunks are ever actually freed back to the OS.
Matt
How do i make the memory use stop growing? What is causing the memory use to increase, so that i may change the program in some way to avoid it?
A few days ago i ran into an Eu error "cannot allocate 49 bytes", then a quick stream of errors printed to screen, and windoze froze the app as it hit 2 Gbytes memory use. Eu didn't get a chance to print the offending source line to a crash file.
useless