Thursday, January 05, 2012

Why does Java have a maximum memory size at all?

It might make sense for applets but 99.9999% of java code runs on servers now.  Memory limits should be deprecated for code which doesn't run through a browser.  Heck, I think applets should be deprecated.

Is there a real reason why it ever had a maximum heap?  I don't know.  If it's still used it should be optional with the default being unbounded heaps.