-
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
相关推荐
2402_857589362 分钟前
SpringBoot框架:作业管理技术新解HBryce246 分钟前
缓存-基础概念一只爱打拳的程序猿21 分钟前
【Spring】更加简单的将对象存入Spring中并使用杨荧22 分钟前
【JAVA毕业设计】基于Vue和SpringBoot的服装商城系统学科竞赛管理系统minDuck24 分钟前
ruoyi-vue集成tianai-captcha验证码为将者,自当识天晓地。43 分钟前
c++多线程daqinzl1 小时前
java获取机器ip、mac激流丶1 小时前
【Kafka 实战】如何解决Kafka Topic数量过多带来的性能问题?Themberfue1 小时前
Java多线程详解⑤(全程干货!!!)线程安全问题 || 锁 || synchronized让学习成为一种生活方式1 小时前
R包下载太慢安装中止的解决策略-R语言003