-
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
windchill apache 日志过大的问题解决方法(单个日志超过6G)
ptc学习者2024-07-19 20:45
相关推荐
程序猿大帅12 小时前
别再只当调包侠了:用 Spring AI 落地 Function Calling,我被大模型硬生生砸出了三个大坑程序员晓琪13 小时前
约定大于配置:基于 Java 包名自动生成 API 版本路由的最佳实践Flittly14 小时前
【AgentScope Java新手村系列】(11)中断与恢复众少成多积小致巨14 小时前
JNI (Java Native Interface) 技术手册中文参考指南东坡白菜14 小时前
破局全栈:前端开发的Java入门实战记录—JPA(2)SimonKing20 小时前
艹,维护AI写的代码,我心态崩了......用户2986985301421 小时前
Java Word 文档样式进阶:段落与文本背景色设置完全指南小bo波2 天前
从"任意文件复制"深挖Java I/O:字符流与字节流的本质抉择nanxun8863 天前
记一次诡异的 Docker 容器"串包"故障排查用户1563068103513 天前
Day01 | Java 基础(Java SE)