-
Notifications
You must be signed in to change notification settings - Fork 5
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
Memory leak? #9
Comments
Maybe I have found the increase memory use reason: in the such EvIoManager class has properties like The framework stop some events or timers : |
I believe the memory leak was coming from the socket created by |
After update
If I pass function loop(Loop $loop = null)
{
static $instance;
if (null !== $loop) {
$instance = $loop;
} elseif (null === $instance) {
$instance = create(false);
}
return $instance;
} zend engine doesn't complain the memory leak. So there is something wrong with the signal handling? |
Eventually try compiling php-src master branch which fixes a bunch of memory leaks. As long as these leaks aren't numerous, there's nothing you need to bother about. (After all, it's just 32 bytes ...) |
@yangxikun What sort of high concurrency are you talking about? I've successfully tested a couple thousand concurrent requests with no issues. Does the server just hang (even with no load) after this happens? I'm going to need a little more information to track down what might be happening. |
Under high concurrency, the server script will hold many connections at the same time. |
I use apache jemeter to make benchmark on the example server(with litter modify):
I found the memory use by the process is increase, and not decrease:
And there have many error output like:
If I continue benchmark, will suffer a fatal error:
Another, If I
ctrl+c
the server script, it print a memory leak message:The text was updated successfully, but these errors were encountered: