Catalina.out is very important, but if you have problems with disk free size, may be useful work with *.properties files to reduce the row logged. Let me explain 🙂
Scenario
Every time a user reference an issue in Jira, some rows are added to Catalina.out, like following examples.
2016-02-19 15:12:07,840 http-nio-8032-exec-2 WARN admin 912x1017x1 g2ksfs 192.168.10.122 /rest/gadget/1.0/timeSince/generate [c.s.j.s.container.servlet.WebComponent] A servlet request, to the URI http://quicksilver:8032/luciano-GHS33058/rest/gadget/1.0/timeSince/generate?projectOrFilterId=project-10000&periodName=daily&daysprevious=30&dateField=created&isCumulative=true&width=782&height=521&inline=true&_=1455901927829, contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected. 19-Feb-2016 15:12:12.286 WARNING [http-nio-8032-exec-14] com.sun.jersey.spi.container.servlet.WebComponent.filterFormParameters A servlet request, to the URI http://quicksilver:8032/luciano-GHS33058/rest/gadget/1.0/timeSince/generate?projectOrFilterId=project-10000&periodName=daily&daysprevious=30&dateField=created&isCumulative=true&width=782&height=521&inline=true&_=1455901932275, contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected. 2016-02-19 15:12:12,286 http-nio-8032-exec-14 WARN admin 912x1142x1 g2ksfs 192.168.10.122 /rest/gadget/1.0/timeSince/generate [c.s.j.s.container.servlet.WebComponent] A servlet request, to the URI http://quicksilver:8032/luciano-GHS33058/rest/gadget/1.0/timeSince/generate?projectOrFilterId=project-10000&periodName=daily&daysprevious=30&dateField=created&isCumulative=true&width=782&height=521&inline=true&_=1455901932275, contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected. 19-Feb-2016 15:12:17.076 WARNING [http-nio-8032-exec-1] com.sun.jersey.spi.container.servlet.WebComponent.filterFormParameters A servlet request, to the URI http://quicksilver:8032/luciano-GHS33058/rest/gadget/1.0/timeSince/generate?projectOrFilterId=project-10000&periodName=daily&daysprevious=30&dateField=created&isCumulative=true&width=782&height=521&inline=true&_=1455901937065, contains form parameters in the request body but the request body has been consumed by the servlet or a servlet filter accessing the request parameters. Only resource methods using @FormParam will work as expected. Resource methods consuming the request body by other means will not work as expected.
IF you don’t need track every operation AND preserving disk size, THEN set this string in <install-dir>/conf/logging.properties.
com.sun.jersey.spi.container.servlet.WebComponent.level = FATAL
For more information, reference this URL.
One thought on “Catalina.out – another tip”