-
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
相关推荐
段小二6 分钟前
服务一重启全丢了——Spring AI Alibaba Agent 三层持久化完整方案段小二14 分钟前
Agent 自动把机票改错了,推理完全正确——这才是真正的风险itjinyin33 分钟前
ShardingSphere-jdbc 5.5.0 + spring boot 基础配置 - 实战篇丶小鱼丶36 分钟前
Java虚拟机【JVM】csdn2015_40 分钟前
IDEA配置Continueaq55356002 小时前
C语言、C++和C#:三大编程语言核心差异详解老马95272 小时前
opencode4-在已有项目中增加修改功能Moe4882 小时前
Spring AI:结构化输出sthnyph2 小时前
TypeScript 与后端开发Node.js逻辑驱动的ken2 小时前
Java高频面试考点场景题08