Increase zstd frame size for compressed access log archive
@@ -401,7 +401,7 @@ class LogFileHandler <LOGTYPE> {
private static void runCompressionZstd(NativeIO nativeIO, Path oldFile) {
try {
Path compressedFile = Paths.get(oldFile.toString() + ".zst");
- int bufferSize = 0x400000; // 4M
+ int bufferSize = 48*1024*1024;
try (FileOutputStream fileOut = AtomicFileOutputStream.create(compressedFile);
ZstdOuputStream out = new ZstdOuputStream(fileOut, bufferSize);
FileInputStream in = new FileInputStream(oldFile.toFile())) {
