-
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
相关推荐
驱动探索者8 分钟前
[缩略语大全]之[内存管理]篇okseekw14 分钟前
Java反射:解锁框架开发的终极密码,让代码拥有"动态灵魂"!码农水水21 分钟前
腾讯Java面试被问:阻塞队列BlockingQueue的实现原理廋到被风吹走34 分钟前
【Spring】BeanPostProcessor详解bbq粉刷匠39 分钟前
二叉树中两个指定节点的最近公共祖先ppo921 小时前
Spring Boot 集成 Kafka 3.9.0:部署、监控与消息发送教程JavaEdge.1 小时前
IDEA卡死没反应的全部解决方案高山上有一只小老虎1 小时前
使用Memory Analyzer (MAT)分析内存溢出嘴贱欠吻!1 小时前
JavaSE基础知识逝水如流年轻往返染尘1 小时前
Java输入输出