We currently keep all stdout and stderr output of the app server buffered. However, the app server could (theoretically) generate a lot of output, which would be hogged in memory. We should use a limited size buffer, so we don't have to keep all of the output, while still being able to print the latest output in case something goes wrong.