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
相关推荐
写代码写到手抽筋3 小时前
5G上行DCI字段判定:端口 流数 PMI选择详解
java·算法·5g
xieliyu.3 小时前
Java算法精讲:双指针(二)
java·开发语言·算法
jeffer_liu4 小时前
Spring AI 生产级实战:裁判员
java·人工智能·后端·spring·大模型
小bo波5 小时前
枚举实战
java·设计模式·枚举·后端开发·代码重构
夜微凉45 小时前
三、Spring
java·后端·spring
橘右今5 小时前
2026 Java后端高频面试宝典
java·开发语言·面试
xyzzklk6 小时前
解决Salesforce无法向外发送邮件
android·java·开发语言·网络·crm·salesforce·客户关系管理
biubiubiu07066 小时前
SpringBoot关于外部化配置
java·spring boot·spring
zzz_23686 小时前
【Spring】面试突击系列(二):SpringBoot 入门与自动配置原理
java·spring boot·spring