-
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
相关推荐
Flittly1 分钟前
【AgentScope Java新手村系列】(14)人机交互RainCity6 分钟前
Java Swing 自定义组件库分享(十二)吃饱了得干活16 小时前
Spring Cloud Gateway 微服务网关:路由、断言、过滤器lwx5728018 小时前
探秘InnoDB:搞懂它的内存、线程、磁盘与日志刷盘策略Flynt19 小时前
从Spring Boot 4.0升到4.1,我在Maven和gRPC上栽了跟头plainGeekDev20 小时前
Activity 间传值 → Navigation 参数plainGeekDev20 小时前
onActivityResult → ActivityResult APISunia20 小时前
《AgentX 专栏》10-生产部署:3台2C4G云服务器把企业级Agent真正跑起来的完整方案ZhengEnCi21 小时前
J7A-高级Java工程师面试三道灵魂拷问-深度广度与工程素养的终极检验狼爷2 天前
吃透 Java Function 接口,搞定 99% 的 Stream 场景