It doesn't actually allocate 4 GiB. Memory can be mapped without being physically occupied.
No, web apps can actually use 4GB of memory (now 16GB apparently).
No, web apps can actually use 4GB of memory (now 16GB apparently).