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 小时前
后端视角看 EventBus:发布订阅总线的原理、场景与用法
java·spring boot·guava
前端炒粉1 小时前
手撕小汇总
java·前端·javascript
唐青枫1 小时前
Java Kafka 实战指南:从 Topic、分区到 Spring Boot 可靠消息处理
java
脱胎换骨-军哥2 小时前
C++零成本抽象理论深度拆解:现代C++如何在不牺牲性能的前提下提供高级语法封装
java·开发语言·c++
我是唐青枫2 小时前
Java Netty 实战指南:从 NIO 线程模型到 TCP 编解码和心跳机制
java·tcp/ip·nio
小白说大模型2 小时前
从向量嵌入到复杂 Agent:LLM、LangChain、LangGraph 完整科普
java·开发语言·人工智能·gpt·深度学习·langchain
zhanghaha13144 小时前
Python语言基础:4_数据类型转换
java·前端·python
Devin~Y4 小时前
互联网大厂Java面试实战:Spring Boot、MyBatis、Redis、Kafka、JWT、Spring Cloud 与 AI 场景追问
java·spring boot·redis·spring cloud·kafka·mybatis·spring security
花生了什么事o5 小时前
DDD:领域驱动设计的初步认识
java·数据库
BGK1123585 小时前
基于qemu_v8+optee 4.00 平台构建 ca/ta
java·大数据·数据库