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
相关推荐
驱动探索者8 分钟前
[缩略语大全]之[内存管理]篇
java·网络·算法·内存管理
okseekw14 分钟前
Java反射:解锁框架开发的终极密码,让代码拥有"动态灵魂"!
java·后端
码农水水21 分钟前
腾讯Java面试被问:阻塞队列BlockingQueue的实现原理
java·后端·python·面试
廋到被风吹走34 分钟前
【Spring】BeanPostProcessor详解
java·后端·spring
bbq粉刷匠39 分钟前
二叉树中两个指定节点的最近公共祖先
java·算法
ppo921 小时前
Spring Boot 集成 Kafka 3.9.0:部署、监控与消息发送教程
java·架构
JavaEdge.1 小时前
IDEA卡死没反应的全部解决方案
java·ide·intellij-idea
高山上有一只小老虎1 小时前
使用Memory Analyzer (MAT)分析内存溢出
java·jvm
嘴贱欠吻!1 小时前
JavaSE基础知识
java·开发语言
逝水如流年轻往返染尘1 小时前
Java输入输出
java·开发语言