-
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
相关推荐
考虑考虑7 小时前
JDK25模块导入声明_小马快跑_8 小时前
Java 的 8 大基本数据类型:为何是不可或缺的设计?Re_zero11 小时前
线上日志被清空?这段仅10行的 IO 代码里竟然藏着3个毒瘤洋洋技术笔记11 小时前
Spring Boot条件注解详解程序员清风1 天前
程序员兼职必看:靠谱软件外包平台挑选指南与避坑清单!皮皮林5511 天前
利用闲置 Mac 从零部署 OpenClaw 教程 !华仔啊1 天前
挖到了 1 个 Java 小特性:var,用完就回不去了SimonKing1 天前
SpringBoot整合秘笈:让Mybatis用上Calcite,实现统一SQL查询日月云棠2 天前
各版本JDK对比:JDK 25 特性详解用户8307196840822 天前
Spring Boot 项目中日期处理的最佳实践