-
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
相关推荐
Helix25029 分钟前
JDK单元测试实战:JUnit 5与Mockito注解、断言、参数化测试、Mock注入完整指南李少兄34 分钟前
Spring Boot 配置占位符与 JNI 原生库容器化适配解析Javatutouhouduan1 小时前
阿里Java面试核心讲(2027最新版)简 洁 冬冬2 小时前
深入理解Result与枚举的分工-外壳花名册与协作全链一起学安全技术2 小时前
Java栈Agent开发 03|Spring AI(二):Tool Calling、MCP 与结构化输出源码_空间2 小时前
基于Springboot的在线错题本与复习计划系统(源码+文档)Rain的Java大神之路2 小时前
别再用“延迟双删”赌一致性:Canal + RocketMQ + Redis 的工业级缓存失效链路,以及 MySQL 分库分表前必须算清的那笔账我命由我123452 小时前
Android Gradle - Android Gradle 配置himobrinehacken2 小时前
HackMyVM靶机Yulian香蕉大香蕉(06敬畏市场)2 小时前
事务隔离级别、MVCC 与锁:一条线串起来