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
相关推荐
维基框架2 小时前
维基框架(Wiki-Framework) 1.2.0:Mybatis 升级为主从读写分离
java·后端·架构
Memory_荒年2 小时前
Java函数式接口:把代码变成“拼乐高”的快乐,你体验过吗?
java
Memory_荒年2 小时前
WebSocket:让服务器学会“主动搭讪”的黑科技
java
Henrii_历小海2 小时前
WhatsApp Business API 2026 计费架构重构:从“对话计费“到“按消息计费“的技术实现与工程应对
java·重构·架构
炸薯条!2 小时前
从零开始学C++ (内存管理)
java·jvm·c++
许彰午3 小时前
100_Python面试常见问题汇总
java·python·面试
weixin_727535623 小时前
Spring @Transactional 事务失效:原理层面深度解析
java·spring
没钥匙的锁14 小时前
16-Java反射机制:Spring IOC背后的核心技术
java·开发语言·spring
geinvse_seg5 小时前
飞算JavaAI:把企业采购协同需求拆成一套可运行的慧采平台
java·ai·飞算
烛影摇红透纱窗6 小时前
ForkJoinPool 与工作窃取
java