-
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
相关推荐
白鲸开源15 小时前
Apache SeaTunnel Zeta Engine 的 Basic Auth 是怎么工作的?白鲸开源15 小时前
一文读懂DolphinScheduler插件机制:如何轻松扩展任务类型与数据源用户2986985301419 小时前
Java 实现 Word 文档文本查找与高亮标注宇宙之一粟20 小时前
乐企版式文件生成平台plainGeekDev20 小时前
MVC 写法 → MVVMSL_staff21 小时前
3周搭完MES系统:JVS低代码+JVS-IoT物联网的实战记录MacroZheng21 小时前
斩获20w star!Claude Code最强插件,AI编程必备!唐青枫1 天前
Java Spring WebFlux 实战指南:用 Mono、Flux 和 WebClient 写响应式接口小bo波1 天前
使用Thread子类创建线程 VS 使用Runnable接口创建线程的区别SamDeepThinking2 天前
高并发场景下,CompletableFuture与ForkJoinPool该如何取舍?