Skip to content
Discussion options

You must be logged in to vote

I have to admit that enlarging the memory limit is an effective approach! And it is not hard. I hope this could help others with the same issue.

All you need to do is to create a new file named .wslconfig in C:/Users/[YOUR USERNAME]/ with the content below input and saved:

[wsl2]
memory=15GB

Then restart your wsl with the command in your WINDOWS TERMINAL:

wsl --shutdown

Reopen your ubuntu, now it has a 15GB RAM, which can compile a lot of stuffs.

myubuntu@myubuntu:~/audit/24Jan-Arcadia-Sherlock/2023-12-arcadia-qpdk777/accounts-v2$ forge compile
[⠢] Compiling...
[⠆] Compiling 79 files with 0.7.6
[⠆] Compiling 367 files with 0.8.22
[⠒] Solc 0.7.6 finished in 1.91s
[⠔] Solc 0.8.22 finished…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by TreapGoGo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant