{"action":"created","issue":{"url":"https://api.github.com/repos/gogits/gogs/issues/2786","repository_url":"https://api.github.com/repos/gogits/gogs","labels_url":"https://api.github.com/repos/gogits/gogs/issues/2786/labels{/name}","comments_url":"https://api.github.com/repos/gogits/gogs/issues/2786/comments","events_url":"https://api.github.com/repos/gogits/gogs/issues/2786/events","html_url":"https://github.com/gogits/gogs/issues/2786","id":139340136,"number":2786,"title":"High CPU usage and timeout while repository listing","user":{"login":"juanfcocontreras","id":4047415,"avatar_url":"https://avatars.githubusercontent.com/u/4047415?v=3","gravatar_id":"","url":"https://api.github.com/users/juanfcocontreras","html_url":"https://github.com/juanfcocontreras","followers_url":"https://api.github.com/users/juanfcocontreras/followers","following_url":"https://api.github.com/users/juanfcocontreras/following{/other_user}","gists_url":"https://api.github.com/users/juanfcocontreras/gists{/gist_id}","starred_url":"https://api.github.com/users/juanfcocontreras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juanfcocontreras/subscriptions","organizations_url":"https://api.github.com/users/juanfcocontreras/orgs","repos_url":"https://api.github.com/users/juanfcocontreras/repos","events_url":"https://api.github.com/users/juanfcocontreras/events{/privacy}","received_events_url":"https://api.github.com/users/juanfcocontreras/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gogits/gogs/labels/status/needs%20feedback","name":"status/needs feedback","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-03-08T17:25:23Z","updated_at":"2016-03-09T11:37:59Z","closed_at":null,"body":"- Gogs version (or commit ref): 0.9.0 (also with previous versions: 0.8.43, 0.8.25, 0.8.10, 0.7.33). Both binary and built from source code versions\r\n- Git version: 1.8.2.1 (also with 1.7.1)\r\n- Operating system: CentOS 5.4 2.6.18-238.19.1.el5\r\n- Database:\r\n  - [ ] PostgreSQL\r\n  - [x] MySQL\r\n  - [ ] SQLite\r\n- Can you reproduce the bug at http://try.gogs.io:\r\n  - [ ] Yes\r\n  - [ ] No\r\n  - [x] Not relevant\r\n\r\n## Description\r\n\r\nI would like to install Gogs in my linux cluster but I have two major issues. Every time I start Gogs in my 8-core cluster node, Gogs is running at 300-400% CPU for several minutes. Also, this behavior happens every now and then while using Gogs. The other issue is with an empty repository, most of the times I can't browse it because a timeout error happens. Nevertheless, I can browse most of the other options without problem (issues, commits, releases...) and immediately.\r\n\r\nI don't if both issues are related. I've tried all the latest versions, and also with both the binary and source versions. Also, I've tried with Git 1.7.1 and 1.8.2.1 versions. I don't know what more can I do in order to find out what is happening. I've searched but I can't found any issue related or other people with the same problems. I've found that CentOS 5 is not officially supported by Go, but I've heard that most of applications are running without issues.\r\n\r\nIf you could help me to know what is happening, I would be very grateful. I would like a lot to offer Gogs to my cluster users!"},"comment":{"url":"https://api.github.com/repos/gogits/gogs/issues/comments/194255754","html_url":"https://github.com/gogits/gogs/issues/2786#issuecomment-194255754","issue_url":"https://api.github.com/repos/gogits/gogs/issues/2786","id":194255754,"user":{"login":"juanfcocontreras","id":4047415,"avatar_url":"https://avatars.githubusercontent.com/u/4047415?v=3","gravatar_id":"","url":"https://api.github.com/users/juanfcocontreras","html_url":"https://github.com/juanfcocontreras","followers_url":"https://api.github.com/users/juanfcocontreras/followers","following_url":"https://api.github.com/users/juanfcocontreras/following{/other_user}","gists_url":"https://api.github.com/users/juanfcocontreras/gists{/gist_id}","starred_url":"https://api.github.com/users/juanfcocontreras/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juanfcocontreras/subscriptions","organizations_url":"https://api.github.com/users/juanfcocontreras/orgs","repos_url":"https://api.github.com/users/juanfcocontreras/repos","events_url":"https://api.github.com/users/juanfcocontreras/events{/privacy}","received_events_url":"https://api.github.com/users/juanfcocontreras/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T11:37:59Z","updated_at":"2016-03-09T11:37:59Z","body":"Ok, here they are (I've just removed ips and emails from logs).\r\n\r\nOne user (called pythonuser) with one repository (called python). I've started gogs from scratch (removing previous logs):\r\n- user logs in\r\n- user browse to the repository (fast)\r\n- user browse to issues (very fast)\r\n- user browse back to the repository (very very slow)\r\n\r\nPlease, tell me if you need more files or tests.\r\n\r\nThanks!\r\n\r\n[logs.zip](https://github.com/gogits/gogs/files/165014/logs.zip)\r\n\r\n\r\n\r\n\r\n"}}