-
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
相关推荐
码哥字节14 小时前
升到 Spring Boot 4.1,虚拟线程开了,HikariCP 连接池却崩了devilnumber14 小时前
java自定义事件处理器极简版:「外卖点餐」场景J2虾虾14 小时前
Spring AI Alibaba - 智能体作为工具(Agent Tool)Hesionberger14 小时前
巧用异或找出唯一数字(多解)铁链鞭策大师14 小时前
javaEE之多线程(2)Devin~Y14 小时前
从内容社区到AIGC客服:Spring Boot、Redis、Kafka、K8s、RAG的三轮大厂Java面试对话(附标准答案)それども14 小时前
怎么理解TCP的状态Xzh042314 小时前
Redis黑马点评 实战复盘与面试高频考点详解YOU OU14 小时前
案例综合练习-博客系统