-
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
相关推荐
Wang's Blog12 小时前
Java 项目实战: 交友项目 - FastDFS:入门案例apcipot_rain13 小时前
C++转Java日记(03)皮皮林55113 小时前
Java实现微信扫码登录Yyyyyy~16 小时前
【Java】Day4Web基础知识灿飞屋17 小时前
Kotlin与Java虚拟机三:控制流NE_STOP17 小时前
Spring AI Alibaba - MCP入门nice_lcj52017 小时前
【从零理解 Spring AI · 07】对话记忆:让模型记住上一句说了什么SL_staff18 小时前
制造业交付崩盘?用跨部门节点协同计划打通销售、生产与质量链路文丑颜不良啊19 小时前
LeetCode2261~2280题目解析SL_staff20 小时前
告别规则黑盒:JVS-Rules 在金融风控中的可视化决策编排实践