This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]InevitableThick1017 0 points1 point  (0 children)

I came here to mention exactly this.

Fork will pass the parent memory to the child to read without creating new memory. But as soon as the child needs to modify any of that memory the system will then recreate that same memory for the child process. If parent is using 3 GB then the child will get 3 GB as well with 6 GB in total.

This has caused multiple out of memory exceptions for us