-
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
相关推荐
苍煜19 分钟前
Java开发IO零基础吃透:BIO、NIO、同步异步、阻塞非阻塞折哥的程序人生 · 物流技术专研1 小时前
Java面试85题图解版(一):基础核心篇AllData公司负责人1 小时前
通过Postgresql同步到Doris,全视角演示AllData数据中台核心功能效果,涵盖:数据入湖仓,数据同步,数据处理,数据服务,BI可视化驾驶舱Hello.Reader1 小时前
算法基础(十)——分治思想把大问题拆成小问题一只大袋鼠1 小时前
JavaWeb四种文件上传方式(下篇)TE-茶叶蛋2 小时前
深入研究 yudao-framework 模块:Java 编程能力提升指南逻辑驱动的ken2 小时前
Java高频考点场景题24兔小盈2 小时前
多线程-(五)线程安全之内存可见性CeshirenTester3 小时前
LangChain的工具调用 vs 原生Skill API:性能差在哪儿?yaoxin5211233 小时前
400. Java 文件操作基础 - 使用 Buffered Stream I/O 读取文本文件