Skip to content

make repository invalidation easier on the system #3157

@mamh2021

Description

@mamh2021

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:

root     12983     0  0 04:12 ?        00:00:00 [git]
root     13029     1  0 04:12 ?        00:00:00 [git] <defunct>
root     13030     1  0 04:12 ?        00:00:00 [git] <defunct>
root     13037     1  0 04:12 ?        00:00:00 [git]
root     13038     1  0 04:12 ?        00:00:00 [git] <defunct>
root     13039     1  0 04:12 ?        00:00:00 [git] <defunct>
root     13095     1  0 04:12 ?        00:00:00 /usr/bin/git log --format=commit:%H%nDate:%at -n 1 tag_MP_20170522021208 --

tomcat run under the docker, the version is tomcat:9.0
the start docker comamnd is:

 docker run --restart always -d -e JAVA_OPTS='-Xmx60g' -p 80:8080 --name tomcat -v /work/buildsrv-ci:/work/buildsrv-ci -v /work/mirror:/work/mirror -v /opt/git:/opt/git -v /work/buildsrv-ci/web_root:/usr/local/tomcat/webapps   tomcat:9.0

the host server is ubuntu 18.04
the opengrok is 1.3.11 (* 77b6669 - 1.3.11 - Vladimir Kotal - (9 weeks ago))

Screenshots
1

3

the index command in indexer.sh like below:

#!/bin/bash -x
export OPENGROK_HOME=/home/buildsrv-ci/opengrok
export PATH=$PATH:$OPENGROK_HOME/opengrok-tools/bin
export WORK=/work/buildsrv-ci
export SITE=$1

opengrok-indexer \
  -J=-Xmx100g -J=-Djava.util.logging.config.file=$OPENGROK_HOME/etc/logging.properties \
  -a $OPENGROK_HOME/dist/opengrok-1.3.11/lib/opengrok.jar -- \
  -s $WORK/src_root/${SITE} -d $WORK/data_root/${SITE} -H -P -S -G \
  -W $WORK/data_root/${SITE}/configuration.xml -U http://androidxref.example.com/${SITE}

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions