CI debugging using a reverse shell technique based on SSH.
Go to file
Erik Brakkee 140f0f7593 Jenkinsfile v1.
Build, unit test build image using kaniko, integraiton test.

THe nexus docker proxy is used as well as the nexus go proxy. Also for
the normal build, a cache RWX PVC is used.
2024-11-15 23:22:07 +01:00
cmd Fixed issue with throttling go routine not terminating. 2024-09-26 19:14:27 +02:00
integrationtest IMAGE_TAG can now determine the container version to use. 2024-11-15 21:47:01 +01:00
kubernetes added network policy preventing egress of converge 2024-09-10 19:43:12 +02:00
licenses added licensing terms. 2024-09-08 18:51:46 +02:00
pkg Fixed issue with throttling go routine not terminating. 2024-09-26 19:14:27 +02:00
static Updated the about page: 2024-09-08 11:16:49 +02:00
.dockerignore now also ignoring the .git directory when building. 2024-09-08 11:16:49 +02:00
.gitignore missing files checked in: 2024-09-08 11:16:49 +02:00
compose.yaml using the go proxy nexus repo if the env vars are set 2024-11-14 21:56:42 +01:00
Dockerfile.prod using the go proxy nexus repo if the env vars are set 2024-11-14 21:56:42 +01:00
Dockerfile.test Reverted back to multi-stage build. Previous change of extracting baser image was not needed since the test container is a plain alpione container with a few additional packages. 2024-09-08 11:16:49 +02:00
getbootstrapicons.sh move to go1.23.3 2024-11-12 20:48:29 +01:00
go.mod IMAGE_TAG can now determine the container version to use. 2024-11-15 21:47:01 +01:00
go.sum IMAGE_TAG can now determine the container version to use. 2024-11-15 21:47:01 +01:00
Jenkinsfile Jenkinsfile v1. 2024-11-15 23:22:07 +01:00
LICENSE added LICENSE 2024-09-08 11:16:30 +02:00
Makefile test and integrationtest can now be executed separately. 2024-11-12 20:02:57 +01:00
README.md Now optionally enabling thye pprof endpoint with the --pprof flag. 2024-09-08 11:16:49 +02:00
render.sh A lot of work in getting cut and paste from the UI to 2024-09-08 11:16:49 +02:00
teststats.sh small improvement in about.templ 2024-09-08 11:16:49 +02:00

  • Environment

At least go version 1.21 so that it automatically downloads the correct version

go install github.com/a-h/templ/cmd/templ@latest
go install golang.org/x/pkgsite/cmd/pkgsite@latest
go install honnef.co/go/tools/cmd/staticcheck@v0.5.0

Profiling

go tool pprof -http :8081 http://localhost:8000/debug/pprof/profile?seconds=30

# sample for allocations
go tool pprof -http :8081 http://localhost:8000/debug/pprof/heap?seconds=10
# show all memory 
go tool pprof -http :8081 --alloc_space http://localhost:8000/debug/pprof/heap

# sample_index values 
# cpu: CPU time spent in each function
#alloc_objects: Number of allocated heap objects
#alloc_space: Amount of allocated heap memory
#inuse_objects: Number of heap objects in use at the time of profile collection
#inuse_space: Amount of heap memory in use at the time of profile collection
go tool pprof -http :8081 --sample_index=alloc_objects http://localhost:8000/debug/pprof/heap


go tool pprof -http :8081 http://localhost:8000/debug/pprof/goroutine