-
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
相关推荐
java1234_小锋8 小时前
Java高频面试题:Redis的Key和Value的设计原则有哪些?iPadiPhone8 小时前
流量洪峰下的数据守护者:InnoDB MVCC 全实现深度解析Nuopiane8 小时前
关于C#/Unity中单例的探讨win x8 小时前
JVM类加载及双亲委派模型毕设源码-赖学姐8 小时前
【开题答辩全过程】以 滑雪场租赁管理系统的设计与实现为例,包含答辩的问题和答案Javatutouhouduan8 小时前
SpringBoot整合reids:JSON序列化文件夹操作实录wen__xvn8 小时前
模拟题刷题3bug攻城狮8 小时前
Spring Boot应用内存占用分析与优化無限進步D8 小时前
Java 循环 高级(笔记)小六溜了9 小时前
模块二十三.网络编程&正则表达式&设计模式