-
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
相关推荐
hgz071036 分钟前
JMeter性能压测执行与Linux环境部署考虑考虑42 分钟前
jdk9中的module模块化冷yan~1 小时前
GPT-5.2 深度技术解析:OpenAI 最强模型的架构与性能突破Dwzun1 小时前
基于SpringBoot+Vue的二手书籍交易平台系统【附源码+文档+部署视频+讲解)期待のcode1 小时前
Wrapper体系中的condition参数雨中飘荡的记忆2 小时前
Spring状态机深度解析BBB努力学习程序设计2 小时前
Java记录类(Records)与数据建模革命:从POJO到不可变数据的范式转变月屯2 小时前
Pandoc 之--pdf-engine10km2 小时前
java: HashMap.merge 的 Null 值陷阱:为什么 Stream API 会抛出 NPE