Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory consumption by extending the log file #74

Closed
proton1k opened this issue Mar 13, 2024 · 3 comments
Closed

Memory consumption by extending the log file #74

proton1k opened this issue Mar 13, 2024 · 3 comments

Comments

@proton1k
Copy link

Hi, I have noticed there's a huge BlockBlock.log file in the Library folder. Above 38 GB used. Makes sense to implement a time-based rolling logs cleanup.

P.S. Thank you for an amazing BlockBlock tool !

@0xmachos
Copy link

0xmachos commented Mar 15, 2024

Confirming this on my machine as well, BlockBlock.log is 69GB.

mikey ~/Documents/Projects
$ ll /Library/Objective-See/BlockBlock/BlockBlock.log
-rw-r--r--@ 1 root  wheel    69G 15 Mar 19:21 /Library/Objective-See/BlockBlock/BlockBlock.log
mikey ~/Documents/Projects
$ wc -l /Library/Objective-See/BlockBlock/BlockBlock.log
526158586 /Library/Objective-See/BlockBlock/BlockBlock.log
mikey  ~/Documents/Projects 

objective-see added a commit that referenced this issue Mar 20, 2024
remove old log file #74
switch to os_log_* APIs
@objective-see
Copy link
Owner

🫣 yikes!

Just switched over all logging to use macOS's os_log_* APIs. Which, yes, will mean the system now handles log sizes, etc. etc. 🙌🏼

...also, on upgrade the installer will remove the old log file, to free up that space.

Doing a bit more testing, as this change touched a ton of files, but expect a new version soon!

@0xmachos
Copy link

0xmachos commented Mar 21, 2024

Updated to 2.2.2

 ll /Library/Objective-See/BlockBlock/BlockBlock.log           
-rw-r--r--@ 1 root  wheel    74G 21 Mar 22:49 /Library/Objective-See/BlockBlock/BlockBlock.log
mikey  ~/Documents/Projects
$ ll /Library/Objective-See/BlockBlock/BlockBlock.log
ls: /Library/Objective-See/BlockBlock/BlockBlock.log: No such file or directory

on upgrade the installer will remove the old log file, to free up that space.

Working for me.

Cheers for the quick turn around mate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants