CI debugging using a reverse shell technique based on SSH.
Go to file
Erik Brakkee 2c42f89547 moved all ui stuff to the ui package.
The structure of converge server is now much more clear in the package
// structure below pkg/server.
2024-08-17 10:37:20 +02:00
.idea added makefile for building. 2024-07-18 19:12:09 +02:00
cmd moved all ui stuff to the ui package. 2024-08-17 10:37:20 +02:00
kubernetes Now optionally enabling thye pprof endpoint with the --pprof flag. 2024-08-14 20:41:49 +02:00
pkg moved all ui stuff to the ui package. 2024-08-17 10:37:20 +02:00
static timezone handling now moved to a separate script that does not leak any symbols. 2024-08-13 11:33:15 +02:00
.dockerignore now also ignoring the .git directory when building. 2024-08-12 21:03:16 +02:00
.gitignore missing files checked in: 2024-07-29 23:58:48 +02:00
compose.yaml eliminated the username. 2024-08-06 22:38:59 +02:00
Dockerfile now upgraded to go 1.22.5 and mofified coker file to use newer alpine 2024-08-12 20:57:08 +02:00
getbootstrapicons.sh getting the bootstrap icons (not checking them in). 2024-08-05 23:19:41 +02:00
go.mod now using maps of Guid to Agent/Client in the state, working towards the definitive solution. 2024-08-15 21:04:31 +02:00
go.sum now using maps of Guid to Agent/Client in the state, working towards the definitive solution. 2024-08-15 21:04:31 +02:00
Makefile now using maps of Guid to Agent/Client in the state, working towards the definitive solution. 2024-08-15 21:04:31 +02:00
README.md Now optionally enabling thye pprof endpoint with the --pprof flag. 2024-08-14 20:41:49 +02:00
render.sh A lot of work in getting cut and paste from the UI to 2024-08-05 22:51: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