-
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
相关推荐
北冥有鱼41 分钟前
从 bean::method 里抠出注解:Java 方法引用元数据反查全记录CoderYanger1 小时前
Java EE 进阶:11. SpringBoot 统一功能处理(第四弹):@ControllerAdvice 源码分析+案例代码玖米GEO运营王总监5 小时前
抖音和视频号算法区别:玖米快跑的双端分发信号与内容适配对比AI人工智能+电脑小能手6 小时前
集合按大小切片分批,这个Java工具类5个方法含基本类型数组SimonKing6 小时前
高星红果短剧的TV版|桌面版都在这里了Rain的Java大神之路6 小时前
大四 Java 校招速成路线:从高频八股到可部署项目,30 天、8 周、12 周都能照着练codigger6 小时前
订单超时自动关闭,7 种方案到底怎么选?挖掘狂人6 小时前
订单超时自动关闭,7 种方案到底怎么选?zhanghaha13147 小时前
C# 系列教程_15 类 Class 保姆级系统教程(面向新手,大量示例 + 底层机理)Helix2507 小时前
JDK 与 Maven 下载获取与构建配置实战:release 参数与 toolchains 编译版本对齐指南