PDA

View Full Version : Resin 4.0.14, archive-format


dennis
02-10-2011, 02:51 PM
Hi all!
I'm trying to set up rollovers, but I have a problem: when I use rollovers - old file don't deleted its only archiving. The part of config:

<resin xmlns="http://caucho.com/ns/resin"
xmlns:resin="urn:java:com.caucho.resin">
...
<stdout-log path="f:\search\resin\log\jvm-${server.id}.log"
archive-format="f:\search\resin\log\arch\jvm-${server.id}-%Y%m%d-%H%M.log.zip"
rollover-size="5kb"
/>
...
<cluster id="shards">
...
<!-- logging -->
<web-app-default>
<log path="stdout:" timestamp="[%H:%M:%S.%s] " >
<logger name="" level="all"/>
</log>
</web-app-default>
...
</cluster>
</resin>


For example, I have a file "f:\search\resin\log\jvm-${server.id}.log". It has 195KB. It normally bacups and compressed to "f:\search\resin\log\arch\jvm-${server.id}-%Y%m%d-%H%M.log.zip" But Resin don't start a new file, it writes to exsisting, which has 195KB.

Please help. Thanks.

ferg
02-10-2011, 07:08 PM
Is the archive being created?

I'm not sure I understand the scenario. The archive is being created but the old access.log isn't properly truncated so it keeps growing?

dennis
02-10-2011, 07:19 PM
Yes, archive being created - its ok.
Not access.log, the log file which consists info about server, for example, if the server-id is "shards" Resin creates at "/log" directory "jvm-shards.log" file and this file keep growing, but archive is created ok...

May be I did a mistake or don't finally understand this mechanism...

dennis
02-10-2011, 07:30 PM
just a few minutes. I'll attach screen, you will see

dennis
02-10-2011, 07:47 PM
This is attach... How you see, the jvm-shards.log still growing...

dennis
02-11-2011, 12:04 PM
It's ok... I tried to use stdout directive and now its OK. Thanks

ferg
02-11-2011, 05:23 PM
You raise a good point, though, because the stdout-log looks like it should configure the watchdog's rotation. It's something we might look at changing.