-
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
相关推荐
刀法如飞3 小时前
AI时代:DDD领域驱动建模与Ontology语义建模的区别jeffer_liu3 小时前
Spring AI 生产级实战:工具调用比昨天多敲两行3 小时前
linux 线程概念与控制8Qi84 小时前
LeetCode 75:颜色分类(荷兰国旗问题)—— Java 题解 ✅zzhongcy4 小时前
@Transactional 同类内部调用失效 + 两种自代理解决方案AutumnWind04204 小时前
【Intelij IDEA使用手册】就叫_这个吧5 小时前
Java注解、元注解、自定义注解定义及应用Sam_Deep_Thinking6 小时前
聊聊Java中的ofNE_STOP7 小时前
Docker--管理监控平台的应用爱吃羊的老虎7 小时前
【JAVA】python转java:Spring Boot 入门