-
Notifications
You must be signed in to change notification settings - Fork 3k
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
is there a way to get the thread state in HHVM? #929
Comments
I run GDB and do info thread and found this trace for all threads at that time when HHVM stop accepting requests. Can anybody tell what exactly these threads waiting for: 27 Thread 0x7fd18afff700 (LWP 25751) __lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:136
|
Here is the stack trace of one thread which is being waiting for lock as per logs above: #0 lll_lock_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:136 |
Huh. What is the callstack of the first thread that is blocked in pthread_cond_wait? Looks like we have a deadlock somewhere in the stats code. If you look at the code, you'll see that all those threads are doing stats logging. What is your stat-related configuration in your .hdf file? That would help as well. |
Log {
} ErrorHandling { ResourceLimit { Server {
}
Http { Preg { Stats = false Debug {
CoreDumpEmail = email address
} Above is the configuration i am using. when i make "StatCache = false". then i am not seeing deadlock. Repo { |
When you do see the deadlock, what is the callstack of the thread that is blocked in pthread_cond_wait? (This is the one that is presumably holding the lock all the other threads are waiting upon.) |
Needs more information |
I am seeing a lot of time that HHVM is being just hanged. The process is running but it is not accepting any request.
I just want to make sure that thread are busy in doing something or HHVM is going in some state where it stop accepting requests.
When i run top command under linux then i am seeing only one HHVM thread, which should be ideally the master process. but i am not seeing any other HHVM thread. is it a situation where all worker thread are dead for some reason.
The text was updated successfully, but these errors were encountered: