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
相关推荐
老前端的功夫5 分钟前
【Java从入门到入土】06:String的72变:从字符串拼接到底层优化
java·开发语言
又是忙碌的一天12 分钟前
Java 面向对象三大特性:封装、继承、多态深度解析
java·前端·python
隔壁小邓23 分钟前
在Java中实现优雅的CQRS架构
java·开发语言·架构
河边小咸鱼29 分钟前
pdd校招实习生内推【实时更新链接】2027届实习、2026届春招
java·c++·golang
zzb158033 分钟前
Agent学习-Reflection框架
java·人工智能·python·学习·ai
Holen&&Beer38 分钟前
Spring-Profile与部署说明
java·后端·spring
棉花糖超人38 分钟前
【操作系统】三、线程
java·开发语言·操作系统
liuyao_xianhui1 小时前
优选算法_判断字符是否唯一_C++
java·开发语言·数据结构·c++·算法·链表
代码雕刻家1 小时前
3.4.Maven-idea集成-导入Maven项目
java·maven·intellij-idea
2301_803554521 小时前
c++中的CAS是什么
java·开发语言·c++