Patch java web socket, fix CPU usage