I was just curious because different sketches that let the arduino work as a web server do work and its just the serial.println that messes things up.
It's not likely ONE Serial.print() that messes things up. It's the collection of Serial.print() statements that consume a lot of SRAM.