{"action":"created","issue":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/11852","labels_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/11852/labels{/name}","comments_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/11852/comments","events_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/11852/events","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/issues/11852","id":97182371,"number":11852,"title":"Building take TOO much memory and fails","user":{"login":"andronat","id":793408,"avatar_url":"https://avatars.githubusercontent.com/u/793408?v=3","gravatar_id":"","url":"https://api.github.com/users/andronat","html_url":"https://github.com/andronat","followers_url":"https://api.github.com/users/andronat/followers","following_url":"https://api.github.com/users/andronat/following{/other_user}","gists_url":"https://api.github.com/users/andronat/gists{/gist_id}","starred_url":"https://api.github.com/users/andronat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andronat/subscriptions","organizations_url":"https://api.github.com/users/andronat/orgs","repos_url":"https://api.github.com/users/andronat/repos","events_url":"https://api.github.com/users/andronat/events{/privacy}","received_events_url":"https://api.github.com/users/andronat/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-25T02:11:12Z","updated_at":"2015-07-25T06:17:45Z","closed_at":null,"body":"If I try to run `hack/update-swagger-spec.sh` in my vm with less than **2GB** of RAM it fails with this error:\r\n\r\n```\r\n+++ [0725 01:58:03] Building apiserver\r\n+++ [0725 01:58:10] Building go targets for linux/amd64:\r\n    cmd/kube-apiserver\r\ngo build github.com/GoogleCloudPlatform/kubernetes/pkg/ui/data/swagger: /usr/local/go/pkg/tool/linux_amd64/6g: signal: killed\r\n!!! Error in /home/vagrant/gopath/src/github.com/GoogleCloudPlatform/kubernetes/hack/lib/golang.sh:388\r\n  'CGO_ENABLED=0 go install -installsuffix cgo \"${goflags[@]:+${goflags[@]}}\" -ldflags \"${version_ldflags}\" \"${statics[@]:+${statics[@]}}\"' exited with status 1\r\nCall stack:\r\n  1: /home/vagrant/gopath/src/github.com/GoogleCloudPlatform/kubernetes/hack/lib/golang.sh:388 kube::golang::build_binaries_for_platform(...)\r\n  2: /home/vagrant/gopath/src/github.com/GoogleCloudPlatform/kubernetes/hack/lib/golang.sh:521 kube::golang::build_binaries(...)\r\n  3: /home/vagrant/gopath/src/github.com/GoogleCloudPlatform/kubernetes/hack/build-go.sh:26 main(...)\r\nExiting with status 1\r\n!!! Error in /home/vagrant/gopath/src/github.com/GoogleCloudPlatform/kubernetes/hack/lib/golang.sh:439\r\n  'kube::golang::build_binaries \"$@\"' exited with status 1\r\nCall stack:\r\n  1: /home/vagrant/gopath/src/github.com/GoogleCloudPlatform/kubernetes/hack/lib/golang.sh:439 kube::golang::build_binaries(...)\r\n  2: /home/vagrant/gopath/src/github.com/GoogleCloudPlatform/kubernetes/hack/build-go.sh:26 main(...)\r\nExiting with status 1\r\n!!! Error in hack/update-swagger-spec.sh:40\r\n  '\"${KUBE_ROOT}/hack/build-go.sh\" cmd/kube-apiserver' exited with status 1\r\nCall stack:\r\n  1: hack/update-swagger-spec.sh:40 main(...)\r\nExiting with status 1\r\n+++ [0725 01:58:41] Clean up complete\r\n```\r\n\r\nI found that this file `pkg/ui/data/swagger/datafile.go` for some reason need a lot of memory to be builded. (it is a huge file btw with 48528 lines)\r\n\r\nIs there anything we can do for that? I find it very difficult to run a VM in my laptop with more that 2GB which actually means that I can't work..."},"comment":{"url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/comments/124808188","html_url":"https://github.com/GoogleCloudPlatform/kubernetes/issues/11852#issuecomment-124808188","issue_url":"https://api.github.com/repos/GoogleCloudPlatform/kubernetes/issues/11852","id":124808188,"user":{"login":"bprashanth","id":10927820,"avatar_url":"https://avatars.githubusercontent.com/u/10927820?v=3","gravatar_id":"","url":"https://api.github.com/users/bprashanth","html_url":"https://github.com/bprashanth","followers_url":"https://api.github.com/users/bprashanth/followers","following_url":"https://api.github.com/users/bprashanth/following{/other_user}","gists_url":"https://api.github.com/users/bprashanth/gists{/gist_id}","starred_url":"https://api.github.com/users/bprashanth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bprashanth/subscriptions","organizations_url":"https://api.github.com/users/bprashanth/orgs","repos_url":"https://api.github.com/users/bprashanth/repos","events_url":"https://api.github.com/users/bprashanth/events{/privacy}","received_events_url":"https://api.github.com/users/bprashanth/received_events","type":"User","site_admin":false},"created_at":"2015-07-25T06:17:45Z","updated_at":"2015-07-25T06:17:45Z","body":"have you tried exploiting memory locality via something like taskset <int> make?"}}