windchill apache 日志过大的问题解决方法(单个日志超过6G)

  • 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
相关推荐
段小二6 分钟前
服务一重启全丢了——Spring AI Alibaba Agent 三层持久化完整方案
java·后端
段小二14 分钟前
Agent 自动把机票改错了,推理完全正确——这才是真正的风险
java·后端
itjinyin33 分钟前
ShardingSphere-jdbc 5.5.0 + spring boot 基础配置 - 实战篇
java·spring boot·后端
丶小鱼丶36 分钟前
Java虚拟机【JVM】
java·jvm
csdn2015_40 分钟前
IDEA配置Continue
java·ide·intellij-idea
aq55356002 小时前
C语言、C++和C#:三大编程语言核心差异详解
java·开发语言·jvm
老马95272 小时前
opencode4-在已有项目中增加修改功能
java·后端·ai编程
Moe4882 小时前
Spring AI:结构化输出
java·后端·面试
sthnyph2 小时前
TypeScript 与后端开发Node.js
java
逻辑驱动的ken2 小时前
Java高频面试考点场景题08
java·开发语言·面试·求职招聘·春招