-
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
相关推荐
秋天的怀念_David7 分钟前
算法一千零一夜 · 第三十五夜 · 恢复风暴考虑考虑9 分钟前
JDK27中的加密对象的 PEM 编码行者-全栈开发35 分钟前
SpringBoot + GraalVM 原生编译实战:启动时间从8秒到0.5秒的极致优化CoderYanger1 小时前
Java EE 进阶:10. MyBatis-Plus使用(第一弹)大胖爱学习_MJ3 小时前
超越向量检索:用 Spring Boot + Neo4j 手搓 GraphRAG 知识图谱记忆吃我一窝jio3 小时前
Java博客极简写作三支柱知识搬运临时工3 小时前
双路服务器跑得比单路慢:JVM 没看见内存的距离吃我一窝jio4 小时前
Java Bug复盘与性能优化实战Flynn Liang4 小时前
Java 序列化也能成为瓶颈:Jackson、Protobuf 与 Redis 序列化的生产实践Yeats_Liao4 小时前
物联网平台优化系列(三):全局懒加载吞掉 MQTT 初始化