Brave continuously creating too many temp files

Brave creates too many temp files continuously harassing the hard drive with read write access about every two seconds even while the browser is minimized and does not have focus… I checked this via Process Monitor.
Windows 10 machine.

Brave ver 1.78.102 chromium 136.0.7103.113

The temp files are (4 directories found so far)
1/
C:\Users***\AppData\Local\Temp

2/
C:\Users***\AppData\Local\BraveSoftware\Brave-Browser\User Data\Default\Code Cache\wasm

3/
C:\Users***\AppData\Local\BraveSoftware\Brave-Browser\User Data\Default\Code Cache\js

4/
C:\Users***\AppData\Local\BraveSoftware\Brave-Browser\User Data\Default\Cache\Cache_Data

The files are named similar to this eg:
11e4ba1f-831d-410f-929a-20d6858ab15d.tmp

Also hundreds of 0 byte folders named similar to this :
chrome_url_fetcher_6588_1854698865

If I cannot find a solution (very quickly) to stop this continuous read write harassment which is contributing to the eventual early failure of my solid state drive I will be switching back to FireFox which does not exhibit this obnoxious behavior.
End of story.

@Kaieteur

Please edit your Original Post (“OP”) above, in order to include:

  • Brave Browser version numbers
  • Where the files in question, are located on your Windows 10 machine

Brave is also creating tmp files in two other directories, I had found and delete these files two days ago.. since then js directory has over three thousand , the other has only 91 … at the rate this is going Brave will have ended the read/write life of my SS drive in less than a year.
Obnoxious, distasteful, how can this be progress..?

Again, Firefox does not display this unacceptable juvenile behavior.

1 Like

ver 1.78.102 chromium 136.0.7103.113

Another obnoxious behavior just observed, going to check the version Brave started update without giving me a chance to say yes, no or cancel.
Unacceptable terrorist tactics..!

@Kaieteur

The codecache WASM activity, is a JavaScript V8 problem. I am guessing that there may be a JavaScript V8 memory leak.

IIRC, There is a Brave Browser JavaScript V8 setting that can be disabled. Search for that setting and disable it.

Clear as much cache, cookies, etc as you can.

In the Brave Browser > Developer Tools > Network window, look around for the Disable Cache switch and enable that.

For testing, also disable all extensions.

Exit / Quit everything and Restart the computer. Test issue.

@Mattches - maybe a runaway JavaScript V8 issue with a burr under the V8 saddle. Meaning, JV8 is not the source of the issue, but very unsettled by whatever is the actual issue.

Taking a look at this with the team.

@Mattches

Maybe something like the following, is a cause:

Cloudflare’s Turnstile - an excerpt:

When a bot is detected, Turnstile uses “proof of work” to instruct the browser to waste computer resources, for example by executing useless code on the CPU or filling up memory in an attempt to reduce the number of requests emitted per second by each physical machine running a bot.

This wanton file creation nonsense still persists after doing as suggested.

WHats the purpose of these four files..?

found in “C:\Program Files (x86)\BraveSoftware\Brave-Browser\Application\137.1.79.118”
not sure if the last four numbers are ips or ver#

brave_100_percent.pak
brave_200_percent.pak
chrome_100_percent.pak
chrome_200_percent

@Kaieteur

Have you created another Brave Browser user Profile*, and then only use it? (*NOT having any other profile’s windows open.)

Also, you might test by using the Brave Beta build - try Mattches suggestions at:

Logged in today tried to open Brave it flashes on screen than closes - #4 by Mattches

And then let him know the results of your tests.

last four days … no new js files in wasm folder.

How do I turn off caching completely… ?

theres “code cache” folder and “cache_data” folder with tons of $hit every page visit.
This is unacceptable much too much writing to disk getting fedup and ready to totally blacklist brave from my computer.

well since nobody knows I deleted all four files and brave works snappily…
My thoughts were if brave fooks up with those files gone I will just uninstal and move on.

not yet.. since I have stuff I am working on and not ready to redo all my windows.

@Kaieteur

You do not have to “redo all your windows.” Simply create a new Profile and use it for a test purpose → visit some websites and see, if the deluge of files and folders occurs for that new Profile.

Created new profile, deleted all tmp crap brave created and keep adding to.. ..
cache_data and code cache…

nothing has changed still creating files and adding more


as new page loads…
wasm folder is clean.

(I’m a Linux user)
If you have the opportunity to put your temp files in RAMDisk, this will accelerate your browser and free your disk space, it’s working fine in Linux, I don’t know how to proceed with Windows.

Hmmm.. will look into how to setup the RamDrive. /tnx

Yesterday I followed some advice I found here on the board to disable cache by making new shortcut :

“C:\Program Files (x86)\BraveSoftware\Brave-Browser\Application\brave.exe” --disable-application-cache --media-cache-size=1 --disk-cache-size=1 – “%1”

This works and keeps the two brave-browser cache folders (code cache\js, cache_data) somewhat clean but watching process monitor confirms that the files are still created but deleted immediately… this abomination of creating and deleting tons of files must go since its only wearing away my drive.

Why cant we have the option to disable cache totally, no creating and deleting immediately, and let us decide if we want it enabled ??

In the appdata/temp folder its still creating a $hitload of chrome_url_fetcher_**** files and
fbdbd7e5-7cd3-4696-805c-1b5d9087c661.tmp files.
This is only a few locations since I am finding more files being created as I watch process monitor eg; IndexedDB folder.

From what I read I can set my two temp folders to RamDisk but what about all the other sneaky locations that Brave is dumping temp files into, eg appdata/local.

Reading all the various posts here it seems as though the predominant advice is to keep cleaning the folders .. this is unacceptable, I prefer to ditch Brave if that is the solution.

@Kaieteur

Also, a long list of Chromium flags / switches:

https://peter.sh/experiments/chromium-command-line-switches/

Hey tnx for the link.. Had to do the disable via the registry since Brave does not have the relevant menu choices.

But this pertains to google chrome..no?

Restarted and opened brave from the no cache shortcut.
Five chrome_url_fetcher_6560_*** created.

So this doesnt seem to be a fix.

Hi Popol,
Havent got around to that RamDisk yet since I am thinking about Photoshop, which I use in my day to day job.

Photoshop stores its autosave in the same Appdata../temp directory and the program does not provide a way to change it.

If I go ramdisk and I get a crash my autosave will be gone on reboot.

@Kaieteur

Re you created a new Profile. The screenshots that you provided, were of the problematic sub-folders of your Default profile . . . NOT of the new Profile’s sub-folders.

To use a new BB user Profile, you need to exit / quit everything; and preferably, restart the computer.

Select that newly created profile that you see in the sample window (PS. I would keep that Show on startup switch enabled.):