The invention provides an optimization method for compressed uploading of a self-service terminal log. The optimization method for the compressed uploading of the self-service terminal log comprises the following steps: a
client uses a displacement operating mode to carry out compression
processing on the logs to be uploaded on the basis of entropy coding; the
client uploads the compressed log files to the
server in order in the process of compression; the
server receives the compressed log files uploaded by each
client; the
server distributes the received compressed log files to a file saving
queue and returns a normal receiving response to the client; the server detects whether abnormal information is existed in the compressed log files or not; and if no abnormal information is existedin the compressed log files, the server writes the compressed log files in the file saving
queue to the disk of the server through the asynchronous I / O mode. The optimization method for the compresseduploading of the self-service terminal log effectively reduces the
response time of the client waiting for the server, and improves the function experience of the self-service terminal.