Also linux can be a horrible security issue if you don't know how to use it properly, my friend had a linux server and he barely knew anything about linux, he just installed a distro suggested by a tech-savy friend of his, and that same month his ISP canceled his account because apparently someone hacked into his linux PC and used it to hack other sites and servers.
So yeah, linux is way better than windows when it comes to stability and memory usage, but it is way harder to manage and can be a BIG security risk unless you know what you're doing.