-
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
相关推荐
Forget the Dream24 分钟前
设计模式之责任链模式jonyleek27 分钟前
「JVS更新日志」低代码、企业会议、智能BI、智能排产2.26更新说明计算机小白一个1 小时前
蓝桥杯 Java B 组之最短路径算法(Dijkstra、Floyd-Warshall)曼岛_1 小时前
[密码学实战]Java实现SM4加解密(ecb,cbc)及工具验证Forget the Dream1 小时前
设计模式之代理模式帅的飞起来1 小时前
设计模式--spring中用到的设计模式張葒兵3 小时前
记一次命令行启动springboot项目的问题 java -jar的问题zr想努力3 小时前
Lua的table类型的增删改查操作Forget the Dream4 小时前
设计模式之享元模式sanshizhang4 小时前
eclasticsearch文档搜索