-
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
相关推荐
萧瑟余晖1 小时前
Java深入解析篇五十五之Unsafe 机制详解kakawzw2 小时前
mybatis源码笔记1——JDBC和整体架构sunshine22 girl2 小时前
Java学习一 环境配置1 安装JDK,配置环境变量秋饼2 小时前
Spring AI Session API 深度实战:从 ChatMemory 平滑迁移到事件溯源的企业级短期记忆QCodingDev2 小时前
Spring AI 2.0企业级RAG实战:引用校验、无依据拒答与知识治理怎么做?吴声子夜歌2 小时前
ApacheCommons——commons-math3(科学计算与线性代数)(一)砚底藏山河2 小时前
行情工程实战 M01|存储选型 CSVSQLiteMySQL名字还没想好☜2 小时前
Java 用 LinkedHashMap 三行实现 LRU 缓存:accessOrder、removeEldestEntry 与线程安全谢亮_vipxieliang2 小时前
ValidX vs Google Guava Preconditions:验证 vs 断言吴声子夜歌2 小时前
ApacheCommons——commons-configuration2(多数据源配置统一管理与热加载)