-
Notifications
You must be signed in to change notification settings - Fork 778
Indexer hangs but no error message #3067
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
Comments
I see quite a steady progress in the log. Does it mean there is nothing printed to the log after the last line ? If so, for how long ? What happens if you omit the |
Also, you can try increasing the log level: https://github.com/oracle/opengrok/wiki/Debugging#web-application |
"Does it mean there is nothing printed to the log after the last line ? If so, for how long ?" Log Level is already set to "ALL" but the output also stops here without any error, e.g. the last lines:
With each run it hangs on an other file, its not a problem of "/tools/RH6-32/share/man/man1/git-column.1". Omitting the -U option makes no difference. |
Time to attach a debugger and see what the indexer is doing I'd say. The sources for 1.3.7 are available on https://github.com/oracle/opengrok/releases/tag/1.3.7 Also, possibly the output of |
Or, do some |
I attached a jstack trace: grok.jstack.txt |
I see some 46 threads waiting on lock in
and then one thread with:
that seems to be stuck in Further, there are some 45 threads doing Ctags processing with stacks similar to:
Finally there is the "main" indexer thread:
waiting for the worker threads to finish. |
What does |
Plus, the |
What file system is the |
Yes, the ctags processes are still around:
But unfortunately I can't see any activity on the ctags processes, e.g.:
If I strace the java processes, I get the same |
This means that the ctags processes are waiting for new job to be given to them on standard input however the indexer is not giving them any. |
I am not able to get a lsof output, seems that the command also hangs. |
That's strange. That could mean a file system/kernel issue.
May be worth trying. |
Another idea would be to |
Yay, that was the key. While doing a |
1 similar comment
Yay, that was the key. While doing a |
Great to hear that ! |
I am having the exact same issue using 1.3.6, all tools, source and output are on local disk. and the local disk is xfs. Can we re-open please. |
open a new issue please. |
Hi,
I am using OpenGrok 1.3.7 and Tomcat 9.0.31 on CentOS 7.6.
After the upgrade from Tomcat 9.0.2 to 9.0.31 the OpenGrok Indexer hangs, no matter which source I try to index. But I do not get an error message:
Since I saw the problem after switching to the new Tomcat version, I stopped the Tomcat server, but the Indexer still hangs.
When I strace the Indexer process, I see an endless loop running, e.g.:
Do you have any idea what's going on?
The text was updated successfully, but these errors were encountered: