-
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
相关推荐
Haooog29 分钟前
98.验证二叉搜索树(二叉树算法题)武子康30 分钟前
Java-143 深入浅出 MongoDB NoSQL:MongoDB、Redis、HBase、Neo4j应用场景与对比jackaroo20201 小时前
后端_基于注解实现的请求限流道可到1 小时前
百度面试真题 Java 面试通关笔记 04 |JMM 与 Happens-Before并发正确性的基石(面试可复述版)飞快的蜗牛1 小时前
利用linux系统自带的cron 定时备份数据库,不需要写代码了聪明的笨猪猪2 小时前
Java Spring “IOC + DI”面试清单(含超通俗生活案例与深度理解)ThisIsMirror2 小时前
CompletableFuture并行任务超时处理模板珹洺3 小时前
Java-Spring入门指南(二十一)Thymeleaf 视图解析器源码集结号3 小时前
一套智慧工地云平台源码,支持监管端、项目管理端,Java+Spring Cloud +UniApp +MySql技术开发EnCi Zheng3 小时前
Spring Security 最简配置完全指南-从入门到精通前后端分离安全配置