-
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
相关推荐
q***2515 小时前
Spring容器的开启与关闭q***44815 小时前
java进阶--多线程学习0***m8225 小时前
Maven Spring框架依赖包艾斯比的日常5 小时前
Neo4j 完全指南:从核心特性到 Java 实战(附企业级应用场景)K***43065 小时前
三大框架-Spring后端小张5 小时前
【JAVA 进阶】深入探秘Netty之Reactor模型:从理论到实战我命由我123457 小时前
Java NIO 编程 - NIO Echo Server、NIO Client(NIO 异步客户端、NIO Selector 异步客户端)嗯、.7 小时前
使用Itext9生成PDF水印,兼容不同生成引擎的坐标系(如: Skia、OpenPDF)断剑zou天涯10 小时前
【算法笔记】窗口内最大值或最小值的更新结构m***667311 小时前
SQL 实战—递归 SQL:层级结构查询与处理树形数据