-
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
相关推荐
光依旧43 分钟前
MCP实战手记系列(二):跑通第一个 MCP Server(文末附github源码链接)白远山1 小时前
上海24小时自助健身房系统软件开发实战指南:从需求到部署MayBaymax1 小时前
Spring AI Alibaba Graph 快速上手:黑板、节点、边斑鸠喳喳1 小时前
可重入锁 ReentrantLockIT枫斗者枫哥1 小时前
Spring AI 聊天记忆落库:重启后,怎样接上上一轮对话devpotato1 小时前
HashMap 扩容机制:从源码细节到工程实践yueping21 小时前
如何用idea打开jar包IT_Octopus1 小时前
从一个应用开发者的角度,搞懂大数据查询的完整链路许彰午2 小时前
51-BpmnDesigner集成