-
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 程序员第 45 阶段11:网关统一路由大模型接口,配合 Nacos 配置治理,灰度路由:基于Nacos元数据实现大模型服务灰度发布与权重路由我命由我123452 小时前
Android 开发问题:Cannot resolve method ‘repeat‘ in ‘String‘baozhengw2 小时前
信创改造-SpringBootJar包改为WAR包部署TomcatM1A13 小时前
基于 Spring AOP 构建系统操作日志:从注解设计到异步落库的完整实战RainCity3 小时前
Java Swing 自定义组件库分享(十五)farerboy3 小时前
23-Java 构造函数坚持的小马3 小时前
Rocketmq搭建操作步骤砚底藏山河3 小时前
多家股票数据接口对比、企业级股票数据APIVX_bysjlw9854 小时前
基于微信小程序的宠物用品商城系统-后端74346-计算机毕设原创(免费领源码+带部署教程)JAVA面经实录9174 小时前
图解23种设计模式完整知识体系(Java后端面试完整版)