-
Notifications
You must be signed in to change notification settings - Fork 41
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
wp-now: out of memory error when running for many hours #96
Comments
Wow! We definitely didn't test this scenario 😊 That's awesome!
Appreciate the report. There are probably a variety of memory leaks we'll eventually need to solve. We can keep this open as a collecting ground. |
First step would be to figure out whether the memory leak comes from php-wasm or wp-now. I worry it's the former, but the latter would be easier to fix. Edit: Maybe it's both – there are a few related PRs: |
I have been seeing this error as well recently. As I am developing a new plugin, I often (sometimes multiple times a day) get 'Out of Memory' errors in the browser and 'Maximum call stack size exceeded' in the CLI logs. Though sometime it's runs fine for the whole day. CLI Errors$ wp-now start Trace: Error: Maximum call stack size exceeded RangeError: Maximum call stack size exceeded Trace: Error: Maximum call stack size exceeded Problem is, I can not consistently reproduce the crash. It happens during the course of me updating code, reloading, using the site, etc. But, not typically associated with me introducing an error in my code. Most of the time, I simply restart the server (wp-now start) and reload the existing tab, which works fine. |
I often have wp-now running for days and after a while—I think usually > 48 hours—I get something like the following:
Fatal error: Out of memory (allocated 2097152) (tried to allocate 65536 bytes) in /var/www/html/wp-includes/rest-api/endpoints/class-wp-rest-controller.php on line 388
After that I can't recover the instance. I'm not sure what info I can provide to help illuminate the cause. I tracked down the debug.log in
~/.wp-now/…
but not sure the output before the out of memory error is related.debug.log portion
Anyway, it’s a pretty small bother given how quick it is to spin up another instance. Still I thought the report might be appreciated.
I love using this compared to wp-env. Awesome work on it!
The text was updated successfully, but these errors were encountered: