程序一直写一个文件,inode变化

发布时间:2023年12月20日

?lsof -p 22013 | grep log
java? ? 22013 appbank? mem? ? ? ?REG? ? ? ? ? ? ? 253,3? ? ? 4763? 134606123 /app/appbank/front/ares-spring-cloud-front/lib/spring-boot-starter-log4j2-2.3.1.RELEASE.jar

java? ? 22013 appbank? ?95r? ? ? REG? ? ? ? ? ? ? 253,3? ? ? 5923? 134606037 /app/appbank/front/ares-spring-cloud-front/lib/minlog-1.3.1.jar
java? ? 22013 appbank? 153r? ? ? REG? ? ? ? ? ? ? 253,3? ? ? 4763? 134606123 /app/appbank/front/ares-spring-cloud-front/lib/spring-boot-starter-log4j2-2.3.1.RELEASE.jar
java? ? 22013 appbank? 196w? ? ? REG? ? ? ? ? ? ? 253,3? 48211385? 135775925 /app/appbank/logs/application-normal.log

stat application-normal.log
? File: ‘application-normal.log’
? Size: 120050375? Blocks: 262016? ? ?IO Block: 4096? ?regular file
Device: fd03h/64771d Inode: 135775925? ?Links: 1
Access: (0664/-rw-rw-r--)? Uid: ( 1003/ appbank)? ?Gid: ( 1003/ appbank)
Access:?2023-12-20 17:48:09.003765653 +0800
Modify:?2023-12-20 17:48:09.579766257 +0800
Change:?2023-12-20 17:48:09.579766257 +0800
Birth: -

stat application-normal.log
? File: ‘application-normal.log’
? Size: 3133447? ? Blocks: 8064? ? ? ?IO Block: 4096? ?regular file
Device: fd03h/64771d Inode: 135775926? ?Links: 1
Access: (0664/-rw-rw-r--)? Uid: ( 1003/ appbank)? ?Gid: ( 1003/ appbank)
Access:?2023-12-20 17:48:52.281886646 +0800
Modify:?2023-12-20 17:48:53.502890370 +0800
Change:?2023-12-20 17:48:53.502890370 +0800
Birth: -


lsof -p 22013 | grep log

java? ? 22013 appbank? 153r? ? ? REG? ? ? ? ? ? ? 253,3? ? ? 4763? 134606123 /app/appbank/front/ares-spring-cloud-front/lib/spring-boot-starter-log4j2-2.3.1.RELEASE.jar
java? ? 22013 appbank? 196w? ? ? REG? ? ? ? ? ? ? 253,3? 42043643? 135775926 /app/appbank/logs/application-normal.log
java? ? 22013 appbank? 221w? ? ? REG? ? ? ? ? ? ? 253,3? ? ? ?606? 202906197 /app/appbank/logs/nacos/config.log
java? ? 22013 appbank? 223w? ? ? REG? ? ? ? ? ? ? 253,3? ? ?13013? 202921634 /app/appbank/logs/nacos/naming.log
java? ? 22013 appbank? 262w? ? ? REG? ? ? ? ? ? ? 253,3? 71250644? 135775865 /app/appbank/logs/application-monitor.log
java? ? 22013 appbank? 267w? ? ? REG? ? ? ? ? ? ? 253,3 167691546? 135697744 /app/appbank/logs/application-error.log
?

文章来源:https://blog.csdn.net/zhaoyangjian724/article/details/135115134
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。