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

Fix metricbeat service times-out at startup #3056

Merged
merged 2 commits into from
Nov 28, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ https://github.com/elastic/beats/compare/v5.0.1...master[Check the HEAD diff]
*Metricbeat*

- Calculate the fsstat values per mounting point, and not filesystem. {pull}2777[2777]
- Fix service times-out at startup. {pull}3056[3056]

*Packetbeat*

Expand Down
19 changes: 0 additions & 19 deletions metricbeat/module/system/process/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -260,25 +260,6 @@ func (procStats *ProcStats) InitProcStats() error {
procStats.regexps = append(procStats.regexps, reg)
}

pids, err := Pids()
if err != nil {
logp.Warn("Getting the initial list of pids: %v", err)
}

for _, pid := range pids {
process, err := newProcess(pid)
if err != nil {
logp.Debug("metricbeat", "Skip process pid=%d: %v", pid, err)
continue
}
err = process.getDetails("")
if err != nil {
logp.Err("Error getting process details pid=%d: %v", pid, err)
continue
}
procStats.ProcsMap[process.Pid] = process
}

return nil
}

Expand Down