Chronicle Queue cq4 file size is not right

220 Views Asked by At

I have a application use chronicle queue to store data. I use hourly cycle to roll files. the lasted file size is 1.3GB. when roll file, old file size become real size,the new file size is 1.3GB.

But I find when I restart application, the chronicle queue will create a new cq4 file, this size is 1.3GB,the older file size not become real size, still is 1.3GB.

How to achieve set the older cq4 file size is real size ,not 1.3GB when the application restart. I try to close queue when the application shutdown, but it not work.

this is file status in my linux server

1

There are 1 best solutions below

5
On

The file shrinking happens at the background upon roll. On restart you need to wait for a while before the old file will be shrunk (unless you hit some weird bug which I doubt).