在一些状况下,你能够但愿 Confluence 在系统启动的时候就对属性文件进行打印。若是你的 Confluence 常常进行重启,而且你可能忘记来启动针对系统诊断的属性文件日志开关。web
编辑 CONFLUENCE_HOME\confluence\WEB-INF\web.xml 文件。你应该能够在文件中看到与下面输出内容相似的行。设置 autostart 参数为 true:日志
<filter> <filter-name>profiling</filter-name> <filter-class>com.atlassian.confluence.util.profiling.ConfluenceProfilingFilter</filter-class> <init-param> <!-- specify the which HTTP parameter to use to turn the filter on or off --> <!-- if not specified - defaults to "profile.filter" --> <param-name>activate.param</param-name> <param-value>profile</param-value> </init-param> <init-param> <!-- specify the whether to start the filter automatically --> <!-- if not specified - defaults to "true" --> <param-name>autostart</param-name> <param-value>true</param-value> </init-param> </filter>
若是你但愿 Confluence 在重启的时候不记录属性日志或者你的属性日志过大的话,你能够将这个参数从新设置为 false 。orm
https://www.cwiki.us/display/CONF6ZH/Troubleshooting+Slow+Performance+Using+Page+Request+Profilingxml