-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Kristof,

On 8/20/14, 7:51 AM, Kristof Can Bilen wrote:
> Hello all,
> 
> I’m running a Tomcat service on Windows and I’m having some minor
> issues with the logging mechanism. I've been researching for weeks
> now, read every FAQ, user forum and article but no one seems to
> have any clue on this.
> 
> I use 64-bit Tomcat 6.0.39 as a Windows service on Windows 2008 R2
> x64Standard.
> 
> Tomcat keeps writing to the same stdout and stderr log files
> without any log rotation until the service is restarted. Because of
> this, the stdout and stderr log files become quite large in time
> and it becomes difficult to open/read logs. My aim is to never
> restart the Tomcat service until it isreally necessary, so this
> makes log rotation quite crucial.
> 
> The Tomcat process won’t release the log files until the Tomcat
> service is restarted. I was unable to use 3rd party tools for
> logrotation as stdout and stderr files are locked by the process.
> 
> While this Tomcat log rotation is quite simple on Linux, there
> seems to be no simple way to do it on Windows. I tried every
> command to force JULI to rotate these two files based on size or
> date but it was fruitless. I tried to force Log4j to take over the
> logging mechanism but stdout and stderr still seem to act on their
> own, probably due to Tomcat’s internal mechanisms. Btw webapp
> application logs rotate just fine.
> 
> Have you had any experience with stdout/stderr log rotation on
> Windows Tomcat? If you have the time, it’d be great if you could
> share yourthoughts..

IIRC, the Windows Service is basically procrun which can close and
re-open the log files that it writes.

...don't ask me how to send a signal on Windows, though ;)

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: GPGTools - http://gpgtools.org

iQIcBAEBCAAGBQJT9O7wAAoJEBzwKT+lPKRYHCwQALIU+MpqdNWESbHnVEFZbh3C
JplTtoofvSfPTH0mv+3xcsrCmYKbyV6zrCTpwDXVFqdIspLVIY2GhoADP9bUMJjN
Wjf9nY7Pce0aaufgS5m49pQLyIrRXJr2QgyVN1C9NbVaS/hFkjnGcfb4HKuoqgvm
VmNnBnKrcpFRs0Dad6V+Wr7xksm70Bx84Um4viIm6PcTnoL43f9KigOd2DdYiK1z
8q8dzseSr7A+rWSoqJC8DF+JpZMsptyZuXOUUI3AjH51Pc942oYSzke5qNc3/ChJ
I57ywbmPXGm4GLK9tBYe/kXP3xwrutZwlDyQ7c8Et0wdLsAuTlUx94FGhBgntTMb
PUZMQRMZy07NO3HOWCPalwCN1QpYnNN/c3mfTdMSraX2Ch+yHXkqVWDtG7Eyia39
eJtRpcoLufK35fhtd6NGNmWTNn4HzXqhjKiZRuF9vu9WNLdSpgdpBw4YWNkIUc0E
mGoeesrvX5DHIcGkx8MPyfutsKHIOvjv1YR5WXox7SKtbpZhhtW4OPhmd3+gNQQZ
Tjbw2RuwS0eNROXUEM+G9w+RMsBBUCfe9blpY8joWJQWsu1Rh3D7TwVfM8F+f3ym
L4DYyMgmjD0dVMeum+xLlGZQ5LYgIjMZ4OSEUA/hr9khzFUgXNp2qY9Ye/mkwc4g
SlM6cR0GqYcWSFaSCcro
=xpsv
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to