-
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
相关推荐
mifengxing4 小时前
LeetCode 41.缺失的第一个正数|Hard题O(n)+O(1)最优解法深度解析markinmarkin6 小时前
Spring 中Bean 的作用域有哪些?山荷枝7 小时前
Java学习第十天matlabgoodboy7 小时前
计算机毕设代做|Java Python Matlab APP 全套开发设计程序员雷欧9 小时前
环形缓冲区深度解析:从基础原理到Disruptor源码的全面剖析xiaoqiMikko9 小时前
Dependabot 面板全绿,不代表你的 Tomcat 没洞前端开发张小七9 小时前
Java 学习笔记 · 第三课:多线程与并发编程(线程、同步、死锁、Lock、乐观锁与悲观锁)花生了什么事o9 小时前
JVM 垃圾回收:对象如何被判定和回收evans在进步10 小时前
HashMap 为什么线程不安全?ConcurrentHashMap 如何解决?我命由我1234510 小时前
匈牙利命名法