Subject RE: [firebird-support] Pushing Firebird 2.1 over the edge.
Author Calin Pirtea
Hi Vlad,

I promise you I _am_ looking at the VMSize. Using any windows I have access to, the VMSize does not report stack used by Threads. I have a simply app using 800 threads and memory usage, _any_memory_usage_, is under 20Mb.

I've tested this on XP, Vista and Windows 7. I'm sure the same was true using 2008, 2003 and 2000, but have not re-checked.


Calin Pirtea

From: Vlad Khorsun

> Hi Vlad,
> The 400Mb is virtual Memory. I'm using task manager to get raw info and sho=
> wing VMSize shows 400Mb. I've tried creating simple app in Delphi and when =
> creating 1800 threads it crashed with insufficient memory yet in task manag=
> er it was showing only 20Mb or less on any memory reporting column. I'm sur=
> e I never seen the memory used by thread creation properly reported in Wind=
> ows using TaskManager.

With 884 threads Firebird can't have 400MB of VM as each tread have 2MB
of stack allocated. So, you are looked at "Mem usage" instead of "VM Size"
column in task manager, or you are looked at "VM Size" but after error and at
that moment there was much less than 884 threads in FB.