Bug#873695: jetty9: RolloverFileOutputStream does not roll over
Jan Szejko
j-sz at o2.pl
Wed Aug 30 08:17:14 UTC 2017
Package: jetty9
Version: 9.2.21-1~bpo8+1
Severity: normal
Dear Maintainer,
I have a problem jetty9 logging, the logs do not roll over at midnight and the log file grows huge until jetty9 is restarted. This is exactly as in https://github.com/eclipse/jetty.project/issues/1590. The only workaround I see is to restart jetty9 with cron, but I want to avoid that (downtimes). Is it possible to fix this in jessie-backports?
-- System Information:
Debian Release: 8.9
APT prefers oldstable-updates
APT policy: (990, 'oldstable-updates'), (990, 'oldstable'), (80, 'oldoldstable-updates'), (80, 'oldoldstable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.82 (SMP w/6 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages jetty9 depends on:
ii adduser 3.113+nmu3
ii apache2-utils 2.4.10-10+deb8u10
ii default-jre-headless [java7-runtime-headless] 2:1.7-52
ii libjetty9-extra-java 9.2.21-1~bpo8+1
ii libjetty9-java 9.2.21-1~bpo8+1
ii openjdk-7-jre-headless [java7-runtime-headless] 7u151-2.6.11-1~deb8u1
Versions of packages jetty9 recommends:
pn authbind <none>
jetty9 suggests no packages.
-- Configuration Files:
/etc/default/jetty9 changed:
NO_START=0
VERBOSE=yes
JETTY_ARGS=jetty.port=8983
/etc/jetty9/jetty-logging.xml changed:
<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_0.dtd">
<!-- =============================================================== -->
<!-- Configure stderr and stdout to a Jetty rollover log file -->
<!-- this configuration file should be used in combination with -->
<!-- other configuration files. e.g. -->
<!-- java -jar start.jar etc/jetty-logging.xml -->
<!-- =============================================================== -->
<Configure id="logging" class="org.eclipse.jetty.util.log.Log">
<New id="ServerLog" class="java.io.PrintStream">
<Arg>
<New class="org.eclipse.jetty.util.RolloverFileOutputStream">
<Arg><Property name="jetty.logs" default="./logs"/>/yyyy_mm_dd.out.log</Arg>
<Arg type="boolean">false</Arg>
<Arg type="int">90</Arg>
<Arg><Call class="java.util.TimeZone" name="getTimeZone"><Arg>GMT</Arg></Call></Arg>
<Get id="ServerLogName" name="datedFilename"/>
</New>
</Arg>
</New>
<Get name="rootLogger">
<Call name="info"><Arg>Redirecting stderr/stdout to <Ref refid="ServerLogName"/></Arg></Call>
</Get>
<Call class="java.lang.System" name="setErr"><Arg><Ref refid="ServerLog"/></Arg></Call>
<Call class="java.lang.System" name="setOut"><Arg><Ref refid="ServerLog"/></Arg></Call>
</Configure>
-- no debconf information
More information about the pkg-java-maintainers
mailing list