-
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
相关推荐
A懿轩A20 分钟前
【Maven 构建工具】从零到上手 Maven:安装配置 + IDEA 集成 + 第一个项目(保姆级教程)野犬寒鸦29 分钟前
从零起步学习并发编程 || 第一章:初步认识进程与线程我爱娃哈哈33 分钟前
SpringBoot + Flowable + 自定义节点:可视化工作流引擎,支持请假、报销、审批全场景XiaoFan0121 小时前
将有向工作流图转为结构树的实现小突突突1 小时前
浅谈Java中的反射Anastasiozzzz1 小时前
LeetCode Hot100 295. 数据流的中位数 MedianFinder我真的是大笨蛋2 小时前
Redo Log详解索荣荣2 小时前
Java动态代理实战:从原理到精通兩尛2 小时前
c++的数组和Java数组的不同roman_日积跬步-终至千里2 小时前
【Java并发】多线程/并发问题集