-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
New PR - Slow performance on Windows 1.14 #15484
Comments
Seems to be the same issue like #15413 |
yup marking as duplicate. @luiscla27 please try: https://eldritchkitty.com/~andrew/gitea-1.14.0-gogit-windows-4.0-amd64.exe It should be noted that reason that we moved from GoGit was because of memory issues - it is not frugal at all with loading data in to memory, and we made that move over 3 months ago on master. We had around a month of RC to find out these issues and no-one using windows took that time to try the RCs and then report that this was an issue. The underlying issue is that starting git is just slow on Windows for whatever reason - be that due to go, windows or git-for-windows. Not being a windows user myself I am uncertain how to find out how to speed that up , everything I've suggested so far seems to have been ineffective - and no-one using Windows has made suggestions. I've made several attempts at reducing process calls but it is unlikely that the pure git backend can be made performant enough for windows users so we'll have to provide go-git builds for you for the moment. We rely on the community to test our builds and if the community doesn't test until release day - well... this is what happens. In regards to the provided logs - please read the https://docs.gitea.io/en-us/logging-configuration/#debugging-problems when submitting logs. The logs you have submitted are basically just SQL logs which are rarely helpful - and you shouldn't really be logging these anyway - and are running at INFO level only! The logging configuration is highly configurable - you really should consider setting your default log configuration to: [database]
LOG_SQL = false ; SQL logs are rarely helpful unless we specifically ask for them
...
;; Now depending on how you like things to be logged - if it's straight to file - well this way puts everything in one file:
[log]
MODE=file
LEVEL=info ; If you're submitting issues though this needs to be DEBUG
REDIRECT_MACARON_LOG=true
MACARON=,
ROUTER=,
;; If you're a console person - this will give nice colourful logs.
[log]
MODE=console
LEVEL=info ; If you're submitting issues though this needs to be DEBUG
REDIRECT_MACARON_LOG=true
MACARON=console
ROUTER=console The access.log can be set-up as you need with In fact on 1.14 we now have the ability to adjust logging whilst running with For example, you could temporarily add a
(similarly for console) In particular you can add trace logging for particular expressions with:
Where can be anything logged, including the filename that contains the logging expression. |
Thank you for your quick feedback @zeripath, we'll try the go-git build, btw, is there a risk of installing that package? some of my colleagues are concerned that after installing it, later returning to the master version somehow counts as a downgrade that might risk our repository. Also, sorry about the previous log... I just got copy/pasted it. Here I'm attaching a cleaner one which includes only log information since the windows service started to the moment the issue occurs. |
The linked build was built on 1.14.0 ... Just take a backup of your db if you're really concerned. We're currently in the process of getting 1.14.1 ready for submission and gogit builds will be built for windows on that. |
run git repack on the repository |
(This is another reason why we were trying to get off gogit) |
We used one of your downloads, updates are made by gittea's update feature.
Gitea is running as a windows service
[x]
):logs-gitea.zip
Description
First, this is maybe a regression issue, the previous version of GITTEA didn't had this low performance.
I tried to make a pull request with the following characteristics and it got stuck by 10 minutes, my guess that the process that gathers all the revision changes got a performance issue recently.
The reason I think is a regression is because I've done PR's this big before the update with no issue.
...
Screenshots
Just the empty screen while GITTEA renders the PR page:
The text was updated successfully, but these errors were encountered: