-
Installing Windows Service s will enable Apache rotatelogs by default.
- Refer CS17799for how to run Apache as Windowsservice.
-
Manually set Apache log rotation by following steps.
-
Execute the commands below within a Windchill Shell (substitute <Apache_Home> with the directory where Apache / PTC HTTPServer is installed):
*cd <APACHE_HOME> ant -f config.xml reconfigure -DRotateLogs=true -DRotateOnFileSize=false -DRotateTime=86400
-
DRotateTimeis in seconds - i.e 86400 is the value to specify 1 day
-
Alternatively, rotate by size with -DRotateOnFileSize=true and -DRotateSize=<size in MB>
-
Apache restart is required after this change
-
-
To disable the log rotation execute the commands below within a Windchill Shell (substitute <Apache_Home> with the directory where Apache / PTC HTTPServer is installed):
*cd <APACHE_HOME> ant -f config.xml reconfigure -DRotateLogs=false
- Apache restart is required after this change
windchill apache 日志过大的问题解决方法(单个日志超过6G)
ptc学习者2024-07-19 20:45
相关推荐
小阳拱白菜1 小时前
java异常学习FrankYoou2 小时前
Jenkins 与 GitLab CI/CD 的核心对比麦兜*2 小时前
Spring Boot启动优化7板斧(延迟初始化、组件扫描精准打击、JVM参数调优):砍掉70%启动时间的魔鬼实践KK溜了溜了3 小时前
JAVA-springboot 整合Redis天河归来3 小时前
使用idea创建springboot单体项目weixin_478689763 小时前
十大排序算法汇总码荼3 小时前
学习开发之hashmapIT_10243 小时前
Spring Boot项目开发实战销售管理系统——数据库设计!ye904 小时前
银河麒麟V10服务器版 + openGuass + JDK +Tomcat武昌库里写JAVA4 小时前
Oracle如何使用序列 Oracle序列使用教程