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

Specifying -http=":" to start an interactive web interface throws an error #413

Closed
jagandecapri opened this Issue Aug 19, 2018 · 1 comment

Comments

Projects
None yet
2 participants
@jagandecapri

jagandecapri commented Aug 19, 2018

What version of pprof are you using?

I'm using pprof via go tool pprof installed with Go version go1.10.3 windows/amd64. I'm invoking the go tool pprof from Git bash installed with Git version 2.9.3.windows.1

What operating system and processor architecture are you using?

GOARCH=amd64
GOOS=windows

What did you do?

Start an interactive web-based interface to pprof by specifying -http=":"

What did you expect to see?

An interactive web-based interface is started in my localhost on a random port as documented in https://github.com/google/pprof#run-pprof-via-a-web-interface which states that

-http=":" starts a server locally at a random port.

What did you see instead?

An error is shown; invalid port number: strconv.Atoi: parsing "": invalid syntax

@aalexand

This comment has been minimized.

Collaborator

aalexand commented Aug 20, 2018

Looking at https://github.com/golang/go/blob/go1.10.3/src/cmd/vendor/github.com/google/pprof/internal/driver/webui.go, it appears that go 1.10.3 didn't have the fix 7a927a9#diff-8cab3d39997787bf3d625391eb003743. You can either use latest pprof from this repo, or specify the desired port like "-http :8080".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment