# What is Run Folder in /application support/Local/ on Mac OS?

**URL:** <https://community.localwp.com/t/what-is-run-folder-in-application-support-local-on-mac-os/41403>\
**Category:** Support\
**Created:** [February 16, 2024, 1:16pm UTC](https://community.localwp.com/t/what-is-run-folder-in-application-support-local-on-mac-os/41403 "2024-02-16T13:16:59Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![kkramer2195](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/kkramer2195/32/4484_2.png) [@kkramer2195](https://community.localwp.com/u/kkramer2195)\
**Post date:** [February 16, 2024, 1:16pm UTC](https://community.localwp.com/t/what-is-run-folder-in-application-support-local-on-mac-os/41403/1 "2024-02-16T13:16:59Z")

</div>

### What issue or error are you experiencing? Noticed 41 GB of disk space used by the folder listed above, can these files be deleted? Or how can they be cleaned up on a regular basis?

### System Details

- **Local Version:** - 8.21

- **Operating System (OS) and OS version:** - Mac OS Ventura

* * *

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [February 16, 2024, 3:11pm UTC](https://community.localwp.com/t/what-is-run-folder-in-application-support-local-on-mac-os/41403/2 "2024-02-16T15:11:41Z")

</div>

Hi @kkramer2195

41 GB is quite large!

Have you used Local for a while and/or have a lot of sites installed? There should be some stuff in there you can clean out but certain things will come back once you use Local to create or start sites again.

---

<div class="post-metadata">

**Author:** ![kkramer2195](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/kkramer2195/32/4484_2.png) [@kkramer2195](https://community.localwp.com/u/kkramer2195)\
**Post date:** [February 16, 2024, 3:30pm UTC](https://community.localwp.com/t/what-is-run-folder-in-application-support-local-on-mac-os/41403/3 "2024-02-16T15:30:29Z")

</div>

Hi Nick,

i have 27 sites, only activate them when I am going to do work on them, I do use WP Migrate to sync sites with them at times, so not sure if it is tied to that or not.

The folder names are random letters/numbers so i can’t say which is tied to which, but in looking at some of the files in one folder, it has a lot of files named binlog.000xxx, where xxx is numbers

The binlog files are over 1gb in size in the MySQL/Data folder

I have been using Local for about 1.5 years now…

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [February 16, 2024, 3:42pm UTC](https://community.localwp.com/t/what-is-run-folder-in-application-support-local-on-mac-os/41403/5 "2024-02-16T15:42:35Z")

</div>

For something more immediate, if you have any sites you’re not currently working on but just want to save you could export those sites to save as zips, and then delete them from Local. Or you could use something like our Cloud Backups feature as well: [Cloud Backups](https://localwp.com/help-docs/local-add-ons-help/cloud-backups/)

I’m going to check with my team about other recommendations for clearing out bloat and optimizing simply because I don’t want to steer you in a direction that could remove something critical. If you do decide to do any tinkering with cleaning stuff as always it’s a good idea to save work and backup along the way 🙂

---

<div class="post-metadata">

**Author:** ![kkramer2195](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/kkramer2195/32/4484_2.png) [@kkramer2195](https://community.localwp.com/u/kkramer2195)\
**Post date:** [February 16, 2024, 4:00pm UTC](https://community.localwp.com/t/what-is-run-folder-in-application-support-local-on-mac-os/41403/6 "2024-02-16T16:00:38Z")

</div>

Thanks Nick,

I can wait till you talk with your team…I will see if any sites can be removed (I am sure there are a couple)

Thanks again!

Ken

---

<div class="post-metadata">

**Author:** ![emmtre](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/emmtre/32/15116_2.png) [@emmtre](https://community.localwp.com/u/emmtre)\
**Post date:** [February 17, 2024, 7:52am UTC](https://community.localwp.com/t/what-is-run-folder-in-application-support-local-on-mac-os/41403/7 "2024-02-17T07:52:49Z")

</div>

@kkramer2195

The mysql folder is about 300 MB for each website in my run folder. How large these log and bin files should be can be preset in a mysql config file somewhere. I just can’t remember right now how I did this but I’ll try to find the documentation. So I have basically set mine so the three log and data files won’t be any larger than 100 MB. There is also difference in how MySQL 5.7 and 8.0 operates and the standard size of these files.

> **[MySQL File Sizes](https://share.cleanshot.com/zzFRxGHBnVMdTlsmFG4V)**
>
> Screenshot uploaded to CleanShot Cloud

---

<div class="post-metadata">

**Author:** ![emmtre](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/emmtre/32/15116_2.png) [@emmtre](https://community.localwp.com/u/emmtre)\
**Post date:** [February 17, 2024, 8:11am UTC](https://community.localwp.com/t/what-is-run-folder-in-application-support-local-on-mac-os/41403/8 "2024-02-17T08:11:22Z")

</div>

Here is my current `my.cnf.hb`s config file for mysql version 5.7.28. But there is a special process to change parameters to not crash or destroy the database. Please notice innodb\_log\_file\_size = 96M

```auto
[mysqld]
{{#unless os.windows}}
skip-name-resolve
{{/unless}}

datadir = {{datadir}}
port = {{port}}
bind-address = {{bindAddress}}
socket = {{socket}}

{{#if os.windows}}
console
{{/if}}

# Fine Tuning
performance_schema = off
max_allowed_packet = 16M
thread_stack = 192K
thread_cache_size = 8

# InnoDB
innodb_buffer_pool_size = 32M
innodb_log_file_size = 96M

[client]
{{#unless os.windows}}
socket = {{socket}}
{{else}}
host = {{clientAddress}}
port = {{port}}
{{/unless}}
user = root
password = root

```

> <https://dba.stackexchange.com/questions/27083/what-exactly-are-iblog-files-in-mysql>

_“If you want to know what the ib\_logfile0 and ib\_logfile1 are for, they are the InnoDB Redo Logs. They should never be erased or resized until a full normal shutdown of mysqld has taken place. If mysqld ever crashes, just start up mysqld. It will read across ib\_logfile0 and ib\_logfile1 to check for any data changes that were not posted to the the double write buffer in ibdata1. It will replay (redo) those changes. Once they are replayed and stored, mysqld becomes ready for new DB Connections.”_

---

<div class="post-metadata">

**Author:** ![kkramer2195](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/kkramer2195/32/4484_2.png) [@kkramer2195](https://community.localwp.com/u/kkramer2195)\
**Post date:** [February 18, 2024, 4:43pm UTC](https://community.localwp.com/t/what-is-run-folder-in-application-support-local-on-mac-os/41403/9 "2024-02-18T16:43:17Z")

</div>

Thanks for the information, I just checked my largest file and I have the same settings for the InnoDB as you, so I wonder if that is now the default size from when you edited yours.

I do appreciate the information, i don’t mind learning more to improve my usage of Local!

Ken

---

<div class="post-metadata">

**Author:** ![emmtre](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/emmtre/32/15116_2.png) [@emmtre](https://community.localwp.com/u/emmtre)\
**Post date:** [February 18, 2024, 5:28pm UTC](https://community.localwp.com/t/what-is-run-folder-in-application-support-local-on-mac-os/41403/10 "2024-02-18T17:28:15Z")

</div>

I read somewhere that binary logs (binlog.00000X) may grow up to 1GB which is the default (max\_binlog\_size). My largest files are the InnoDB redo logs (ib\_logfile0 and ib\_logfile1) which are set by the innodb\_log\_file\_size constant. But I don’t have any binlog.00000X files at all in my run folder? Where are your binary logs located? I’m running macOS and MySQL 5.7.28 for all my local websites. Try to search in the official MySQL reference manual for more info. I had a similar problem a year ago but can’t remember what I did.

---

<div class="post-metadata">

**Author:** ![Nick-B](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nick-b/32/16140_2.png) [@Nick-B](https://community.localwp.com/u/Nick-B)\
**Post date:** [February 21, 2024, 2:20pm UTC](https://community.localwp.com/t/what-is-run-folder-in-application-support-local-on-mac-os/41403/11 "2024-02-21T14:20:51Z")

</div>

Hi @kkramer2195

I just wanted to circle back here and mention that I checked with the team on this. Officially our best and easiest recommendation is to just export/offload old sites that aren’t currently being worked on to save space. Deleting the `Run` folder could definitely be problematic, but if you’re comfortable with the notes from our friend @emmtre you can do some tinkering to try and see if you can get enough benefit from those recommendations.

---

<div class="post-metadata">

**Author:** ![emmtre](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/emmtre/32/15116_2.png) [@emmtre](https://community.localwp.com/u/emmtre)\
**Post date:** [February 21, 2024, 7:13pm UTC](https://community.localwp.com/t/what-is-run-folder-in-application-support-local-on-mac-os/41403/12 "2024-02-21T19:13:12Z")

</div>

Since I don’t have any binary logs in my run folder for any websites I spun up a test website with MySQL 8.0 and then lo and behold there are the binary logs. I then tried to edit the `my.cnf.hbs` config file in the mysql folder for the test website and add a value for `max_binlog_size`. But whatever I tried I couldn’t start the test website and I got an error message that the `max_binlog_size` is an unknown variable. So it didn’t work to try to decrease the size of the the binary logs. There are some other interesting variables like `binlog_expire_logs_seconds`. Please see the documentation for more info. It also looks like there is a purge statement.

_\> You can delete all binary log files with the RESET MASTER statement, or a subset of them with PURGE BINARY LOGS. See Section 15.7.8.6, “RESET Statement”, and Section 15.4.1.1, “PURGE BINARY LOGS Statement”._

[https://dev.mysql.com/doc/refman/8.0/en/binary-log.html](https://dev.mysql.com/doc/refman/8.0/en/binary-log.html)

[https://dev.mysql.com/doc/refman/8.0/en/replication-options-binary-log.html#sysvar\_max\_binlog\_size](https://dev.mysql.com/doc/refman/8.0/en/replication-options-binary-log.html#sysvar_max_binlog_size)

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [May 21, 2024, 7:13pm UTC](https://community.localwp.com/t/what-is-run-folder-in-application-support-local-on-mac-os/41403/13 "2024-05-21T19:13:35Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
