-
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
相关推荐
草莓base13 分钟前
【手写一个spring】spring源码的简单实现--bean对象的创建drebander37 分钟前
使用 Java Stream 优雅实现List 转化为Map<key,Map<key,value>>乌啼霜满天24941 分钟前
Spring 与 Spring MVC 与 Spring Boot三者之间的区别与联系tangliang_cn1 小时前
java入门 自定义springboot starter程序猿阿伟1 小时前
《智能指针频繁创建销毁:程序性能的“隐形杀手”》Grey_fantasy1 小时前
高级编程之结构化代码弗锐土豆1 小时前
工业生产安全-安全帽第二篇-用java语言看看opencv实现的目标检测使用过程Elaine2023911 小时前
零碎04 MybatisPlus自定义模版生成代码小小大侠客1 小时前
IText创建加盖公章的pdf文件并生成压缩文件一二小选手1 小时前
【MyBatis】全局配置文件—mybatis.xml 创建xml模板