bokub / vanity-eth

💎 Browser-based ETH vanity address generator
https://vanity-eth.tk
MIT License
741 stars 264 forks source link

Calculation-heavy webpage crashe,error code "out of memory" #47

Closed zhangguorong1995 closed 1 year ago

zhangguorong1995 commented 1 year ago

I bought a high-performance VPS, 64core, 64G memory, I use offline, online, build, and npm run serve, and I get "out of memory". Observe the memory situation. After using about 12G of memory, the page crashes. I tried to pass in --max-old-space-size=49000 and it didn't have any effect.

error:

image

work: image

zhangguorong1995 commented 1 year ago

node -v v16.18.0

bokub commented 1 year ago

First of all: Hello!

The "out of memory" in your screenshot means your browser is out of memory, not your server. Node parameters won't change anything.

Also, npm run serve runs a development sever which includes lots of debugging features, and takes a lot of server RAM & browser RAM. That could explain your problem.

zhangguorong1995 commented 1 year ago

So the question is browser RAM?Do you have any good solution? I see that running the program requires opening the browser web,Thanks.

bokub commented 1 year ago

Yes Vanity-ETH runs only in the browser. It's a tool designed to be easy to use, for users who don't want to spend time installing technical stuff and don't need exceptional performance

If you have the technical ability and the patience to buy a dedicated VPS, maybe you should use another tool which will probably offer better performances.

zhangguorong1995 commented 1 year ago

OK,thanks