-
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
相关推荐
代码什么用5 小时前
Spring基础使用Su米苏5 小时前
Spring AI 中MCP 与普通 @Tool的区别码云数智-园园5 小时前
unique_ptr 还是 shared_ptr?C++ 智能指针选型与内存泄漏实战分析老板一杯拿铁5 小时前
Java 异常体系详解:从字节码原理到最佳实践蜗牛互联网6 小时前
Java 17 HttpClient调用文件转写API的超时与失败回退禾小西6 小时前
07丨Redis 哨兵机制:主库故障后,如何恢复服务?我不是阵雨6 小时前
JDK 21虚拟线程Pinning陷阱:一文拔钉解困小卡车5556 小时前
java反射、自定义注解的应用(自定义分页)BLUcoding7 小时前
接口服务公网超时排查记录:SecureRandom 阻塞问题分析与解决yuniko-n7 小时前
【JUC】Lock 和 synchronzied 锁