-
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
相关推荐
kesifan8 分钟前
JAVA的线程的周期及调度李少兄8 分钟前
解决 Spring Boot 中 YAML 配置文件的 `ArrayIndexOutOfBoundsException: -1` 异常uup18 分钟前
Java 多线程环境下的资源竞争与死锁问题LiuYaoheng22 分钟前
【Android】RecyclerView 刷新方式全解析:从 notifyDataSetChanged 到 DiffUtilWpa.wk26 分钟前
selenium自动化测试-简单PO模式 (java版)洛_尘34 分钟前
JAVA第十一学:认识异常沐浴露z1 小时前
如何应对服务雪崩?详解 服务降级与服务熔断liwulin05061 小时前
【JAVA】AES加密阿宁又菜又爱玩1 小时前
Maven基础知识S***q3771 小时前
【Springboot】@Autowired和@Resource的区别