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
相关推荐
金銀銅鐵10 分钟前
[Java] 如何将 Lambda 表达式对应的类保存到 class 文件中?
java·后端
それども1 小时前
Gradle 构建疑难杂症 Could not find netty-transport-native-epoll-linux-aarch_64.ja
java·服务器·gradle·maven
正儿八经的少年1 小时前
application.yml 系列配置文件作用与区别
java·配置文件
鱼很腾apoc2 小时前
【学习篇】第20期 超详解 C++ 多态:从语法规则到底层原理
java·c语言·开发语言·c++·学习·算法·青少年编程
cheems95272 小时前
[Spring MVC] 统一功能与拦截器实践总结
java·spring·mvc
Full Stack Developme3 小时前
Spring Boot 事务管理完整教程
java·数据库·spring boot
城管不管3 小时前
前后端远程协作
java
青云计划3 小时前
Feed流
java·后端·spring
java1234_小锋3 小时前
String、StringBuilder、StringBuffer的区别?
java·开发语言
星原望野4 小时前
JAVA集合:List、Set和Map
java·开发语言·list·set·map·集合