-
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
相关推荐
雨中飘荡的记忆13 小时前
保证金系统入门到实战Nyarlathotep011313 小时前
Java内存模型暮色妖娆丶17 小时前
不过是吃了几年互联网红利罢了,我高估了自己NE_STOP18 小时前
MyBatis-参数处理与查询结果映射狂奔小菜鸡18 小时前
Day40 | Java中的ReadWriteLock读写锁SimonKing20 小时前
JetBrains 用户狂喜!这个 AI 插件让 IDE 原地进化成「智能编码助手」狂奔小菜鸡20 小时前
Day39 | Java中更灵活的锁ReentrantLockNE_STOP1 天前
MyBatis-配置文件解读及MyBatis为何不用编写Mapper接口的实现类后端AI实验室2 天前
用AI写代码,我差点把漏洞发上线:血泪总结的10个教训