-
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
相关推荐
罗超驿2 分钟前
Java数据结构_栈_算法题希望永不加班7 分钟前
SpringBoot 主启动类解释:@SpringBootApplication 到底做了什么蝎子莱莱爱打怪35 分钟前
别再裸用 Claude Code 了!32 个亲测Skills + 8 个 MCP,开发效率直接拉满!野犬寒鸦1 小时前
JVM垃圾回收机制面试常问问题及详解_杨瀚博1 小时前
JAVA找出哪个类import了不存在的类OKkankan1 小时前
深入理解linux进程java1234_小锋2 小时前
Java高频面试题:Spring-AOP通知和执行顺序?番茄去哪了2 小时前
Java基础面试题day02我是咸鱼不闲呀2 小时前
力扣Hot100系列22(Java)——[图论]总结(岛屿数量,腐烂的橘子,课程表,实现Trie(前缀树))1104.北光c°2 小时前
深入浅出 Elasticsearch:从搜索框到精准排序的架构实战