They have a lot of RAM. Dang.
2TB can be one server: http://www.supermicro.co.uk/products/system/5U/5086/SYS-5086...
An expensive server for sure... but it's just one server.
With good hardware and a bit of a budget you can easily scale to crazy numbers of processor cores and memory. That isn't to say the software side of the solution is going to be any easier to solve.
A single SPARC M5-32 can have up to 32TB of memory:
http://www.oracle.com/us/products/servers-storage/servers/sp...