-
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
相关推荐
我真的是大笨蛋1 天前
K8S-Pod(下)碳水加碳水1 天前
Java代码审计实战:XML外部实体注入(XXE)深度解析努力也学不会java1 天前
【设计模式】 原型模式方渐鸿1 天前
【2024】k8s集群 图文详细 部署安装使用(两万字)学亮编程手记1 天前
K8S v1.33 版本主要新特性介绍Haven-1 天前
Java-面试八股文-JVM篇我真的是大笨蛋1 天前
JVM调优总结wjs0401 天前
Git常用的命令superlls1 天前
(算法 哈希表)【LeetCode 349】两个数组的交集 思路笔记自留田里的水稻1 天前
C++_队列编码实例,从末端添加对象,同时把头部的对象剔除掉,中的队列长度为设置长度NUM_OBJ