Fix Demo memory leak
Enable compression in java server. More memory leaks in Demo.