-
-
Notifications
You must be signed in to change notification settings - Fork 203
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
Wordpress(?) over-committing memory #348
Comments
Can this be related to dotnet/aspnetcore#3409 or dotnet/aspnetcore#1976? |
Disabling the server-gc seems to have bought us a modicum of stability but it doesn't last. We also turned off the wp cron. We still experience the same issue: after running for around half an hour with a steady flow of traffic the |
To further add to this issue, I watched the issue happen in real-time today to try and get more details and see if it pinged anything in your minds.
Given the timing nature and how the CPU just becomes consumed in kernel-mode it feels like a deadlock issue? Or something related? Peachpie seems to just stall waiting for whatever kernel operation is happening to complete. Perhaps some sort of internal cache that deadlocks when there's continuous requests incoming? |
I'm still thinking of some Linux specific .NET Core issue. (We're running tens of WordPress websites on .NET Core on Win10 x64 and Azure and the servers are stable for months so far, using 400-600 MB of RAM). Using the default setup https://github.com/iolevel/wpdotnet-sdk/blob/master/app/Program.cs Anyways; it is possible there is a dead-loop in the PeachPie code ... in that case it would be great if you'd be able to debug the process? Or attach when this happens? Is it possible on Linux ? |
Damn, I was seriously hoping you'd have a good idea of what is wrong right away, oh well :/ I admit I'm ignorant about attaching to a running process in production. I'm currently moving the blog network to a dedicated VM that's isolated from the rest of our setup to facilitate that. What information am I looking to dump from the process, with what windows tools equivalents? |
It seems like it might be caused by a plugin that we didn't test yet .. Anyways; in Visual Studio there is Mini dump or actually if you'd have a chance to see stack trace where the OOM happens, that might help too. |
I ended up attaching Anyway, we now have a full 8 or so hours of uptime after disabling WordPress' option to automatically convert smilies to images. I managed to dump a couple of stack traces while the application was dying and found Reading through that function I think it's very likely to be a combination of
I'm going to keep the issue open while I re-enable the WP cron and monitor for more of this behavior but it seems the culprit is found. |
@DevJohnC both are possible - however I was not able to replicate the issue (on Win x64). |
Is it possible for you to run the web site locally? |
I'm currently on my laptop on satellite internet so I can't do a whole lot of debugging until I'm back at my workstation. However, we've had 100% uptime since disabling the WordPress option for It's entirely plausible that I'll try and narrow it down when I can. |
Thank yo, Will try more tests as well. BTW with newly released Peachpie 0.9.30 there is -40% memory utilization. |
So far we cannot repro the issue with memory. (but we are running Windows servers). We are constantly requesting RSS2 feed and nothing weird happens yet. |
closing for now, if you'd have any more details, please comment :) thank you! |
We have peachpie running a Wordpress network which keeps getting killed by the linux out-of-memory process killer.
The
dotnet
process (which is a Peachpie project) is reserving a lot more memory than it's actually using.Are there tuning options to mitigate this situation?
The text was updated successfully, but these errors were encountered: