Walter Bright, el 21 de enero a las 13:00 me escribiste: > retard wrote: > >On Linux the processes almost always stay on main memory, and only > >start to fill swap when running out of main memory. So unless you > >have no swap set up, OOM cannot happen unless the swap is >95% > >filled. OOM inside the GC's virtual memory space can happen > >earlier, of course. > > Yeah, that's another thing I should have mentioned. When you're > running Windows or Linux at the edge of running out of virtual > memory, which is when the gc would fail to allocate memory, the > system tends to go unstable anyway.
You can run your program with a memory limit, using ulimit for example. They only way to get an error on allocation is not when the whole system is going down... -- Leandro Lucarella (AKA luca) http://llucax.com.ar/ ---------------------------------------------------------------------- GPG Key: 5F5A8D05 (F8CD F9A7 BF00 5431 4145 104C 949E BFB6 5F5A 8D05) ----------------------------------------------------------------------