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

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

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

Comments

@jagandecapri
Copy link

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
Copy link
Collaborator

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants