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
相关推荐
小阳拱白菜1 小时前
java异常学习
java
FrankYoou2 小时前
Jenkins 与 GitLab CI/CD 的核心对比
java·docker
麦兜*2 小时前
Spring Boot启动优化7板斧(延迟初始化、组件扫描精准打击、JVM参数调优):砍掉70%启动时间的魔鬼实践
java·jvm·spring boot·后端·spring·spring cloud·系统架构
KK溜了溜了3 小时前
JAVA-springboot 整合Redis
java·spring boot·redis
天河归来3 小时前
使用idea创建springboot单体项目
java·spring boot·intellij-idea
weixin_478689763 小时前
十大排序算法汇总
java·算法·排序算法
码荼3 小时前
学习开发之hashmap
java·python·学习·哈希算法·个人开发·小白学开发·不花钱不花时间crud
IT_10243 小时前
Spring Boot项目开发实战销售管理系统——数据库设计!
java·开发语言·数据库·spring boot·后端·oracle
ye904 小时前
银河麒麟V10服务器版 + openGuass + JDK +Tomcat
java·开发语言·tomcat
武昌库里写JAVA4 小时前
Oracle如何使用序列 Oracle序列使用教程
java·开发语言·spring boot·学习·课程设计