Skip to content
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

Memory usage more than 80GB #3582

Closed
4 tasks done
bastengao opened this issue Feb 10, 2023 · 2 comments
Closed
4 tasks done

Memory usage more than 80GB #3582

bastengao opened this issue Feb 10, 2023 · 2 comments
Labels
duplicate This issue or pull request already exists

Comments

@bastengao
Copy link

bastengao commented Feb 10, 2023

Welcome

  • Yes, I'm using a binary release within 2 latest major releases. Only such installations are supported.
  • Yes, I've searched similar issues on GitHub and didn't find any.
  • Yes, I've included all information below (version, config, etc.).
  • Yes, I've tried with the standalone linter if available (e.g., gocritic, go vet, etc.). (https://golangci-lint.run/usage/linters/)

Description of the problem

I execute golangci-lint run, the memory usage is more than 80GB

golangci-lint was installed from brew

截屏2023-02-10 15 27 45

Version of golangci-lint

golangci-lint has version 1.51.0 built from 6d3f06c on 2023-02-02T08:18:45Z

Configuration file

run:
  deadline: 5m

linters:
  disable-all: true
  enable:
    - errcheck
    - gosimple
    - govet
    - ineffassign
    - staticcheck
    - typecheck
    - unused
    - revive

Go environment

go version go1.20 darwin/arm64
GO111MODULE="on"
GOARCH="arm64"
GOBIN=""
GOCACHE="/Users/bastengao/Library/Caches/go-build"
GOENV="/Users/bastengao/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/bastengao/go/pkg/mod"
GONOPROXY="git.rtw.team/rtwteam/backend"
GONOSUMDB="git.rtw.team/rtwteam/backend"
GOOS="darwin"
GOPATH="/Users/bastengao/go"
GOPRIVATE="git.rtw.team/rtwteam/backend"
GOPROXY="https://proxy.golang.com.cn,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_arm64"
GOVCS=""
GOVERSION="go1.20"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/bastengao/works/teacup/teacupapi/go.mod"
GOWORK=""
CGO_CFLAGS="-O2 -g"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-O2 -g"
CGO_FFLAGS="-O2 -g"
CGO_LDFLAGS="-O2 -g"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/qs/jk5lkxd10dv6bb9ftq6y_xbh0000gn/T/go-build3764237982=/tmp/go-build -gno-record-gcc-switches -fno-common"

Verbose output of running

INFO [config_reader] Config search paths: [./ /Users/bastengao/works/teacup/teacupapi /Users/bastengao/works/teacup /Users/bastengao/works /Users/bastengao /Users /]
INFO [config_reader] Used config file .golangci.yml
INFO [lintersdb] Active 8 linters: [errcheck gosimple govet ineffassign revive staticcheck typecheck unused]
INFO [loader] Go packages loading at mode 575 (exports_file|files|imports|compiled_files|deps|types_sizes|name) took 1.631643541s
INFO [runner/filename_unadjuster] Pre-built 0 adjustments in 39.280833ms
[1]    18538 killed     golangci-lint run -v

Code example or link to a public repository

// add your code here
@bastengao bastengao added the bug Something isn't working label Feb 10, 2023
@boring-cyborg
Copy link

boring-cyborg bot commented Feb 10, 2023

Hey, thank you for opening your first Issue ! 🙂 If you would like to contribute we have a guide for contributors.

@ldez
Copy link
Member

ldez commented Feb 10, 2023

duplicate of #3565

Brew uses go1.19 instead of go1.20.
#3565 (comment)

So you have to use either our binaries or our Docker image or build/install golangci-lint with go1.20.

golangci-lint requires to be built with go1.20, without that golangci-lint cannot work with go1.20.

Note the latest version of golangci-lint is v1.51.1.

@ldez ldez closed this as completed Feb 10, 2023
@ldez ldez added duplicate This issue or pull request already exists and removed bug Something isn't working labels Feb 10, 2023
renormalize added a commit to gardener/etcd-wrapper that referenced this issue Oct 3, 2024
* The older version of `golangci-lint` on version `v1.52.1` was
  consuming an inordinate amount of memory, and thus ended up getting
  killed by the OS mid run.
  See golangci/golangci-lint#3582.

* Upgrade to a newer version of `golangci-lint`, `v1.61.0`.

* Fix all lint errors reported with the newer version.
renormalize added a commit to gardener/etcd-wrapper that referenced this issue Oct 3, 2024
* The older version of `golangci-lint` on version `v1.52.1` was
  consuming an inordinate amount of memory, and thus ended up getting
  killed by the OS mid run.
  See golangci/golangci-lint#3582.

* Upgrade to a newer version of `golangci-lint`, `v1.61.0`.

* Fix all lint errors reported with the newer version.
renormalize added a commit to gardener/etcd-wrapper that referenced this issue Oct 3, 2024
* The older version of `golangci-lint` on version `v1.52.1` was
  consuming an inordinate amount of memory, and thus ended up getting
  killed by the OS mid run.
  See golangci/golangci-lint#3582.

* Upgrade to a newer version of `golangci-lint`, `v1.61.0`.

* Fix all lint errors reported with the newer version.
renormalize added a commit to gardener/etcd-wrapper that referenced this issue Oct 3, 2024
* The older version of `golangci-lint` on version `v1.52.1` was
  consuming an inordinate amount of memory, and thus ended up getting
  killed by the OS mid run.
  See golangci/golangci-lint#3582.

* Upgrade to a newer version of `golangci-lint`, `v1.61.0`.

* Fix all lint errors reported with the newer version.
renormalize added a commit to gardener/etcd-wrapper that referenced this issue Oct 3, 2024
* The older version of `golangci-lint` on version `v1.52.1` was
  consuming an inordinate amount of memory, and thus ended up getting
  killed by the OS mid run.
  See golangci/golangci-lint#3582.

* Upgrade to a newer version of `golangci-lint`, `v1.61.0`.

* Fix all lint errors reported with the newer version.
renormalize added a commit to gardener/etcd-wrapper that referenced this issue Oct 3, 2024
* Upgrade the go toolchain to `go1.23.1`.

* Upgrade to a newer version of `golangci-lint`, `v1.61.0`.

* The older version of `golangci-lint` on version `v1.52.1` was
  consuming an inordinate amount of memory, and thus ended up getting
  killed by the OS mid run (when run with `go1.23.0` locally).
  See golangci/golangci-lint#3582.

* Fix all lint errors reported with the newer version.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants