-
Notifications
You must be signed in to change notification settings - Fork 762
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
make repository invalidation easier on the system #3157
Comments
All these It's a question whether the slow load of the index page is caused by some internal delays (e.g. caused by locking or because Git repository handling in OpenGrok spawns superfluos One way to work around this would be to avoid setting the configuration at the end of the indexing - assuming the projects/repositories do not change. Same thing for repository scanning (-S). This might lead to switching to different workflow - see https://github.com/oracle/opengrok/wiki/Per-project-management-and-workflow |
For the Git repository handling inefficiency, this is actually a bug - see #2986 |
thanks your reply very much. |
Could you retry with 1.3.16 to see if the problem persists ? |
I see see #2986, thanks your reply. I found that, when redeploy the war to tomcat, this method "buildTagList" in file GItRepository.java will be called. in my git repo, threre are many tags, so the git tag command takes a lot of time . |
When webapp starts, |
I found the buildTagList() run in another thread, ( |
I don't understand , why webappListerner call this method "buildTagList()", thanks your reply |
That's a good question. Quite possibly the tag list is not needed when the webapp is starting. AFAIK it is only used in the history view of particular directory/file. |
maybe we can move all git time-consuming operations to the offline indexer, and save to local file? |
The information about the repositories is already saved to the configuration by the indexer (when running with -W that is). The invalidation is done for the webapp to have fresh view of the repositories I think. |
I have exactly same trouble with OG 1.5.11 and 1.9k projects and 30k Git repos. When restarting Tomcat webapp, it takes ages before to have access to web service. |
It might help a bit. #1113 might have more profound effect for your use case. |
disable tags. |
Thanks @mamh2021 but it does not help. |
I wonder how things changed for you in the recent versions. There are 2 things that can be done here:
|
Also, do not rebuild repository tags in the web app. fixes oracle#3157
Describe the bug
we have five big android code for index.
after restart tomcat the web page load take too long time
the ps command show that: there are many git process:
tomcat run under the docker, the version is tomcat:9.0
the start docker comamnd is:
the host server is ubuntu 18.04
the opengrok is 1.3.11 (* 77b6669 - 1.3.11 - Vladimir Kotal - (9 weeks ago))
Screenshots

the index command in indexer.sh like below:
The text was updated successfully, but these errors were encountered: