File: //var/log/apache_exporter.log
[ OK ]
runtime: failed to create new OS thread (have 4 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime: failed to create new OS thread (have 5 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc00005c800)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc00005c800)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0x0, 0xc00002c000, 0x3)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0xc00002c000, 0xc00002c000)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.handoffp(0xc00002c000)
/usr/local/go/src/runtime/proc.go:2412 +0x65
runtime.stoplockedm()
/usr/local/go/src/runtime/proc.go:2491 +0xcd
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3103 +0x48c
runtime.park_m(0xc000000180)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [chan receive, locked to thread]:
runtime.gopark(0xa323e8, 0xc000078058, 0x170e, 0x2)
/usr/local/go/src/runtime/proc.go:336 +0xe5
runtime.chanrecv(0xc000078000, 0x0, 0xc000000101, 0x41ac5e)
/usr/local/go/src/runtime/chan.go:576 +0x36f
runtime.chanrecv1(0xc000078000, 0x0)
/usr/local/go/src/runtime/chan.go:439 +0x2b
runtime.gcenable()
/usr/local/go/src/runtime/mgc.go:219 +0x95
runtime.main()
/usr/local/go/src/runtime/proc.go:184 +0x155
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1371 +0x1
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000088000)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000088000)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000031000, 0x4)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00006df01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
[ OK ]
level=info ts=2022-08-02T14:41:25.254Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-02T14:41:25.256Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-02T14:41:25.256Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-02T14:41:25.256Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-02T14:41:25.256Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-02T14:41:25.257Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 16 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000300c00)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000300c00)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000045000, 0xf)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc0002d6780)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait, 230 minutes]:
internal/poll.runtime_pollWait(0x7f3236e5bf18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000236018, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc000236000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc000236000, 0x9c4b5bf69329cb1a, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc000200240, 0x62e937a4, 0xc00015fb48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc000200240, 0xc00015fb98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc000234000, 0xab76f0, 0xc000200240, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc000200240, 0xc000234000, 0x0, 0x0, 0xaaf020, 0xc00007cc30, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc000234000, 0x0, 0x0, 0xaaf020, 0xc00007cc30, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 34 [syscall, 231 minutes]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 35 [chan receive, 231 minutes]:
main.main.func1(0xaaf020, 0xc00007cc30)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 39 [runnable]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc00007c960, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:486 +0x6ed
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f3236e1b238, 0xc0001e4500, 0xc0001ce100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc00022c070, 0x7f3236e1b238, 0xc0001e4500, 0xc0001ce100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f3236e1b238, 0xc0001e4500, 0xc0001ce100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc00021a360, 0x7f3236e1b238, 0xc0001e4500, 0xc0001ce100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0002182a0, 0xc0001ce100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc00021a4e0, 0xab7900, 0xc0002182a0, 0xc0001ce100)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0002182a0, 0xc0001ce100)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc000234000, 0xab7900, 0xc0002182a0, 0xc0001ce100)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc000248000, 0xab8818, 0xc000216200)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 2486 [semacquire]:
sync.runtime_Semacquire(0xc00020d448)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc00020d440)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc00020d440, 0xc0000bbc20, 0xc0000bbc80)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:463 +0x2b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 2485 [runnable]:
net/http.NewRequestWithContext(0xab87a8, 0xc0000220b0, 0xa04fba, 0x3, 0x7ffed55dfef8, 0x28, 0x0, 0x0, 0xc000228c88, 0x596c19, ...)
/usr/local/go/src/net/http/request.go:853 +0x89b
net/http.NewRequest(...)
/usr/local/go/src/net/http/request.go:828
main.(*Exporter).collect(0xc0001a0960, 0xc0000bbc20, 0x0, 0x0)
/app/apache_exporter.go:284 +0x85
main.(*Exporter).Collect(0xc0001a0960, 0xc0000bbc20)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:457 +0x5ce
goroutine 2484 [IO wait, 2 minutes]:
internal/poll.runtime_pollWait(0x7f3236e5be30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000236098, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000236080, 0xc00021a791, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000236080, 0xc00021a791, 0x1, 0x1, 0xc000205ce0, 0x0, 0xc0002162d8)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00022e050, 0xc00021a791, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc00021a780)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
[ OK ]
level=info ts=2022-08-02T20:10:05.484Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-02T20:10:05.486Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-02T20:10:05.486Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-02T20:10:05.486Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-02T20:10:05.486Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-02T20:10:05.486Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 15 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000089000)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000089000)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000045000, 0xe)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc000210480)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait, 114 minutes]:
internal/poll.runtime_pollWait(0x7f8ec2e6cf18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000108818, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc000108800, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc000108800, 0x9e5c92c42e17fe2e, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc0000b70e0, 0x62e98da8, 0xc000233b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc0000b70e0, 0xc000233b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0002b0000, 0xab76f0, 0xc0000b70e0, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc0000b70e0, 0xc0002b0000, 0x0, 0x0, 0xaaf020, 0xc0000d0f00, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0002b0000, 0x0, 0x0, 0xaaf020, 0xc0000d0f00, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 33 [syscall, 150 minutes]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 29 [chan receive, 150 minutes]:
main.main.func1(0xaaf020, 0xc0000d0f00)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 158 [select, 2 minutes]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc0000d0910, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:513 +0xb65
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f8ec2e88ef8, 0xc0000d04b0, 0xc00011c200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc0002a60e0, 0x7f8ec2e88ef8, 0xc0000d04b0, 0xc00011c200)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f8ec2e88ef8, 0xc0000d04b0, 0xc00011c200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0002a83f0, 0x7f8ec2e88ef8, 0xc0000d04b0, 0xc00011c200)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0002b0540, 0xc00011c200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0002a8570, 0xab7900, 0xc0002b0540, 0xc00011c200)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0002b0540, 0xc00011c200)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0002b0000, 0xab7900, 0xc0002b0540, 0xc00011c200)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0001660a0, 0xab8818, 0xc000328000)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 1313 [IO wait, 2 minutes]:
internal/poll.runtime_pollWait(0x7f8ec2e6ce30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a118, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a100, 0xc000184071, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a100, 0xc000184071, 0x1, 0x1, 0xc00007a360, 0x0, 0xc000328558)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000c4020, 0xc000184071, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc000184060)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 1320 [select, 2 minutes]:
net/http.(*persistConn).readLoop(0xc0003f67e0)
/usr/local/go/src/net/http/transport.go:2203 +0x967
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 1321 [select, 2 minutes]:
net/http.(*persistConn).writeLoop(0xc0003f67e0)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
goroutine 1316 [IO wait]:
internal/poll.runtime_pollWait(0x7f8ec2e6cc60, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0001dc218, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0001dc200, 0xc000270000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0001dc200, 0xc000270000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0003300c8, 0xc000270000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0003f67e0, 0xc000270000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc000200f60)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).ReadSlice(0xc000200f60, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/bufio/bufio.go:360 +0x3d
net/http/internal.readChunkLine(0xc000200f60, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/internal/chunked.go:122 +0x34
net/http/internal.(*chunkedReader).beginChunk(0xc0002a8480)
/usr/local/go/src/net/http/internal/chunked.go:48 +0x32
net/http/internal.(*chunkedReader).Read(0xc0002a8480, 0xc0002f4000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/internal/chunked.go:93 +0x134
net/http.(*body).readLocked(0xc0000c8cc0, 0xc0002f4000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/transfer.go:842 +0x5f
net/http.(*body).Read(0xc0000c8cc0, 0xc0002f4000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/transfer.go:834 +0xf9
net/http.(*bodyEOFSignal).Read(0xc0000c8d40, 0xc0002f4000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/transport.go:2764 +0xe2
bufio.(*Reader).fill(0xc0001d24e0)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).ReadByte(0xc0001d24e0, 0xc00046c949, 0x0, 0x0)
/usr/local/go/src/bufio/bufio.go:253 +0x39
compress/flate.(*decompressor).huffSym(0xc00020b300, 0xc00020b328, 0x37, 0x0, 0x0)
/usr/local/go/src/compress/flate/inflate.go:719 +0x85
compress/flate.(*decompressor).huffmanBlock(0xc00020b300)
/usr/local/go/src/compress/flate/inflate.go:494 +0xd2
compress/flate.(*decompressor).Read(0xc00020b300, 0xc00043a000, 0x2000, 0x2000, 0x3580, 0xc65d79d5, 0x0)
/usr/local/go/src/compress/flate/inflate.go:347 +0x79
compress/gzip.(*Reader).Read(0xc0000dc840, 0xc00043a000, 0x2000, 0x2000, 0x1580, 0x0, 0x0)
/usr/local/go/src/compress/gzip/gunzip.go:251 +0x87
net/http.(*gzipReader).Read(0xc0002f0020, 0xc00043a000, 0x2000, 0x2000, 0x1580, 0x0, 0x0)
/usr/local/go/src/net/http/transport.go:2828 +0xcd
io.ReadAll(0x7f8ec2e8a7c8, 0xc0002f0020, 0xc0002f0020, 0x7f8ec2e8a7c8, 0xc0002f0020, 0x0, 0xab26f0)
/usr/local/go/src/io/io.go:633 +0xdf
io/ioutil.ReadAll(...)
/usr/local/go/src/io/ioutil/ioutil.go:27
main.(*Exporter).collect(0xc000156ff0, 0xc00007ab40, 0x0, 0x0)
/app/apache_exporter.go:298 +0x3c8
main.(*Exporter).Collect(0xc000156ff0, 0xc00007ab40)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 1315 [semacquire, 2 minutes]:
sync.runtime_Semacquire(0xc0002dd228)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc0002dd220)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc0002dd220, 0xc00007ab40, 0xc00007aba0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:463 +0x2b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
[ OK ]
level=info ts=2022-08-02T23:09:53.087Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-02T23:09:53.088Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-02T23:09:53.088Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-02T23:09:53.088Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-02T23:09:53.088Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
level=info ts=2022-08-02T23:09:53.088Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
runtime: failed to create new OS thread (have 15 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc00005d800)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc00005d800)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000045000, 0xe)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc00020a900)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait, 71 minutes]:
internal/poll.runtime_pollWait(0x7fb33136ef18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a618, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00002a600, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00002a600, 0x167f4e2c204f8e01, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00000cd08, 0x62e9aef0, 0xc00015fb48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00000cd08, 0xc00015fb98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0001ca000, 0xab76f0, 0xc00000cd08, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00000cd08, 0xc0001ca000, 0x0, 0x0, 0xaaf020, 0xc0000bc410, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0001ca000, 0x0, 0x0, 0xaaf020, 0xc0000bc410, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 9 [syscall, 71 minutes]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 12 [chan receive, 71 minutes]:
main.main.func1(0xaaf020, 0xc0000bc410)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 16 [select]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc00007c960, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:513 +0xb65
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7fb331381c38, 0xc0004043c0, 0xc0000cc200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc0001c0310, 0x7fb331381c38, 0xc0004043c0, 0xc0000cc200)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7fb331381c38, 0xc0004043c0, 0xc0000cc200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0001be840, 0x7fb331381c38, 0xc0004043c0, 0xc0000cc200)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0001ac000, 0xc0000cc200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0001be9c0, 0xab7900, 0xc0001ac000, 0xc0000cc200)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0001ac000, 0xc0000cc200)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0001ca000, 0xab7900, 0xc0001ac000, 0xc0000cc200)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0001b0aa0, 0xab8818, 0xc00011b440)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 840 [IO wait]:
internal/poll.runtime_pollWait(0x7fb33136ee30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a698, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a680, 0xc0001bec71, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a680, 0xc0001bec71, 0x1, 0x1, 0xc0003c1760, 0x0, 0x0)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00000e2c8, 0xc0001bec71, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0001bec60)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 799 [select]:
net/http.(*persistConn).writeLoop(0xc000120360)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
goroutine 842 [semacquire]:
sync.runtime_Semacquire(0xc000022394)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc000022394)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc000022394, 0xc0002045a0, 0xc000204900)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:463 +0x2b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 841 [chan receive]:
net/http.(*persistConn).readLoop.func4(0xaaefc0, 0xc000076070, 0x1000, 0x1000)
/usr/local/go/src/net/http/transport.go:2175 +0xf0
net/http.(*bodyEOFSignal).condfn(...)
/usr/local/go/src/net/http/transport.go:2795
net/http.(*bodyEOFSignal).Read(0xc00011a2c0, 0xc0002ca000, 0x1000, 0x1000, 0x76d, 0xaaefc0, 0xc000076070)
/usr/local/go/src/net/http/transport.go:2771 +0x1b8
bufio.(*Reader).fill(0xc0000ba360)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).ReadByte(0xc0000ba360, 0xc0006b5955, 0x0, 0x0)
/usr/local/go/src/bufio/bufio.go:253 +0x39
compress/flate.(*decompressor).huffSym(0xc000158000, 0xc000158028, 0x6b, 0x0, 0x0)
/usr/local/go/src/compress/flate/inflate.go:719 +0x85
compress/flate.(*decompressor).huffmanBlock(0xc000158000)
/usr/local/go/src/compress/flate/inflate.go:494 +0xd2
compress/flate.(*decompressor).Read(0xc000158000, 0xc000658000, 0x8000, 0x8000, 0xa000, 0x84b76230, 0x0)
/usr/local/go/src/compress/flate/inflate.go:347 +0x79
compress/gzip.(*Reader).Read(0xc00012adc0, 0xc000658000, 0x8000, 0x8000, 0x2000, 0x0, 0x0)
/usr/local/go/src/compress/gzip/gunzip.go:251 +0x87
net/http.(*gzipReader).Read(0xc0002b6060, 0xc000658000, 0x8000, 0x8000, 0x2000, 0x0, 0x0)
/usr/local/go/src/net/http/transport.go:2828 +0xcd
io.ReadAll(0x7fb33114e1a0, 0xc0002b6060, 0xc0002b6060, 0x7fb33114e1a0, 0xc0002b6060, 0x0, 0xab26f0)
/usr/local/go/src/io/io.go:633 +0xdf
io/ioutil.ReadAll(...)
/usr/local/go/src/io/ioutil/ioutil.go:27
main.(*Exporter).collect(0xc0001a00f0, 0xc0002045a0, 0x0, 0x0)
/app/apache_exporter.go:298 +0x3c8
main.(*Exporter).Collect(0xc0001a00f0, 0xc0002045a0)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:457 +0x5ce
goroutine 798 [runnable]:
net/http.(*persistConn).readLoop(0xc000120360)
/usr/local/go/src/net/http/transport.go:2203 +0x967
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
[ OK ]
level=info ts=2022-08-03T02:10:00.658Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-03T02:10:00.658Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-03T02:10:00.658Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-03T02:10:00.658Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-03T02:10:00.659Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
level=info ts=2022-08-03T02:10:00.662Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
runtime: failed to create new OS thread (have 15 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000150800)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000150800)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000045000, 0xe)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc000001680)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait, 104 minutes]:
internal/poll.runtime_pollWait(0x7f40cd1b2f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0002c6318, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc0002c6300, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc0002c6300, 0xfd9d2b29ff08c601, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc000280a38, 0x62e9d920, 0xc00018bb48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc000280a38, 0xc00018bb98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc000310000, 0xab76f0, 0xc000280a38, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc000280a38, 0xc000310000, 0x0, 0x0, 0xaaf020, 0xc000286230, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc000310000, 0x0, 0x0, 0xaaf020, 0xc000286230, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 39 [chan receive, 104 minutes]:
main.main.func1(0xaaf020, 0xc000286230)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 36 [syscall, 104 minutes]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 49 [select]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc0000c8910, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:513 +0xb65
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f40ccfc70a8, 0xc0002863c0, 0xc000342100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc00030e000, 0x7f40ccfc70a8, 0xc0002863c0, 0xc000342100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f40ccfc70a8, 0xc0002863c0, 0xc000342100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0002899e0, 0x7f40ccfc70a8, 0xc0002863c0, 0xc000342100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0003100e0, 0xc000342100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc000289b60, 0xab7900, 0xc0003100e0, 0xc000342100)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0003100e0, 0xc000342100)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc000310000, 0xab7900, 0xc0003100e0, 0xc000342100)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc000112000, 0xab8818, 0xc000120000)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 126 [select]:
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect(0xc000180500, 0xc00007a180)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:312 +0x695
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 1171 [IO wait]:
internal/poll.runtime_pollWait(0x7f40cd1b2d48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000180098, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000180080, 0xc000357000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000180080, 0xc000357000, 0x1000, 0x1000, 0x1, 0x0, 0xc0001a0c88)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0005fc0f8, 0xc000357000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0002d66c0, 0xc000357000, 0x1000, 0x1000, 0x405690, 0x60, 0x0)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc00007aa20)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc00007aa20, 0x1, 0xc000148300, 0xc00015c040, 0xc0001a0e70, 0xc000000002, 0xffffffffffffffff)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0002d66c0)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 127 [semacquire]:
runtime.ReadMemStats(0xc00032b800)
/usr/local/go/src/runtime/mstats.go:473 +0x36
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect.func1(0xc000180500, 0xc00032b800, 0xc000094300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:286 +0x38
created by github.com/prometheus/client_golang/prometheus.(*goCollector).Collect
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:285 +0xa9
goroutine 1085 [IO wait]:
internal/poll.runtime_pollWait(0x7f40cd1b2e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00010c018, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00010c000, 0xc00010e0d1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00010c000, 0xc00010e0d1, 0x1, 0x1, 0xc000488900, 0x0, 0xc0001200d8)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc000110000, 0xc00010e0d1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc00010e0c0)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 1101 [runnable]:
os.newFile(0x9, 0xc0000b82f0, 0x10, 0x1, 0xc000000000)
/usr/local/go/src/os/file_unix.go:127 +0x6c
os.openFileNolog(0xc0000b82f0, 0x10, 0x0, 0xc000000000, 0x3, 0x3, 0xc0000b82f0)
/usr/local/go/src/os/file_unix.go:240 +0x1ad
os.OpenFile(0xc0000b82f0, 0x10, 0x0, 0x0, 0x3, 0xc00022a020, 0xc00010e150)
/usr/local/go/src/os/file.go:331 +0x65
os.Open(...)
/usr/local/go/src/os/file.go:311
github.com/prometheus/procfs/internal/util.ReadFileNoStat(0xc0000b82f0, 0x10, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/internal/util/readfile.go:30 +0x74
github.com/prometheus/procfs.Proc.Stat(0x30a3, 0xa05a30, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/proc_stat.go:116 +0xfd
github.com/prometheus/client_golang/prometheus.(*processCollector).processCollect(0xc0000c8960, 0xc00007a180)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector_other.go:40 +0x366
github.com/prometheus/client_golang/prometheus.(*processCollector).Collect(0xc0000c8960, 0xc00007a180)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector.go:138 +0x33
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 1172 [select]:
net/http.(*persistConn).writeLoop(0xc0002d66c0)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
goroutine 1087 [semacquire]:
sync.runtime_Semacquire(0xc0002b34d8)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc0002b34d0)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc0002b34d0, 0xc00007a180, 0xc00007a4e0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:463 +0x2b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 1088 [select]:
net/http.(*persistConn).roundTrip(0xc0002d66c0, 0xc0002bac40, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/transport.go:2610 +0x765
net/http.(*Transport).roundTrip(0xc000294640, 0xc000342200, 0x30, 0x9db900, 0xc0002b2056)
/usr/local/go/src/net/http/transport.go:592 +0xacb
net/http.(*Transport).RoundTrip(0xc000294640, 0xc000342200, 0xc000294640, 0x0, 0x0)
/usr/local/go/src/net/http/roundtrip.go:17 +0x35
net/http.send(0xc000342200, 0xaaf4e0, 0xc000294640, 0x0, 0x0, 0x0, 0xc0005fc0e0, 0x203000, 0x1, 0x0)
/usr/local/go/src/net/http/client.go:251 +0x454
net/http.(*Client).send(0xc000289560, 0xc000342200, 0x0, 0x0, 0x0, 0xc0005fc0e0, 0x0, 0x1, 0xc000342200)
/usr/local/go/src/net/http/client.go:175 +0xff
net/http.(*Client).do(0xc000289560, 0xc000342200, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/client.go:717 +0x45f
net/http.(*Client).Do(...)
/usr/local/go/src/net/http/client.go:585
main.(*Exporter).collect(0xc0002ce870, 0xc00007a180, 0x0, 0x0)
/app/apache_exporter.go:291 +0x177
main.(*Exporter).Collect(0xc0002ce870, 0xc00007a180)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
[ OK ]
level=info ts=2022-08-03T05:10:34.801Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-03T05:10:34.802Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-03T05:10:34.802Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-03T05:10:34.802Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-03T05:10:34.802Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-03T05:10:34.803Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 14 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc00005dc00)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc00005dc00)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000040000, 0xd)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc000267500)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait, 95 minutes]:
internal/poll.runtime_pollWait(0x7f4b1e447f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000246318, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc000246300, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc000246300, 0xba4cb239b6b4ab01, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc000202a98, 0x62ea0350, 0xc000113b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc000202a98, 0xc000113b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc000318000, 0xab76f0, 0xc000202a98, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc000202a98, 0xc000318000, 0x0, 0x0, 0xaaf020, 0xc000206320, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc000318000, 0x0, 0x0, 0xaaf020, 0xc000206320, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 20 [syscall, 95 minutes]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 41 [chan receive, 95 minutes]:
main.main.func1(0xaaf020, 0xc000206320)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 45 [runnable]:
strconv.formatDigits(0xc000242078, 0x0, 0x18, 0xc000330001, 0xc00033b4a8, 0x20, 0x20, 0x8, 0x8, 0x0, ...)
/usr/local/go/src/strconv/ftoa.go:197 +0x40e
strconv.genericFtoa(0xc000242078, 0x0, 0x18, 0x418f9c0000000000, 0x67, 0xffffffffffffffff, 0x40, 0x556151, 0xc000362075, 0xc0000280e0)
/usr/local/go/src/strconv/ftoa.go:157 +0x3be
strconv.AppendFloat(...)
/usr/local/go/src/strconv/ftoa.go:54
github.com/prometheus/common/expfmt.writeFloat(0xab8738, 0xc000190540, 0x418f9c0000000000, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:449 +0x112
github.com/prometheus/common/expfmt.writeSample(0xab8738, 0xc000190540, 0xc0000280e0, 0x1a, 0x0, 0x0, 0xc0003177a0, 0x0, 0x0, 0x0, ...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:309 +0x17e
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc0001860b0, 0xc00018e780, 0x75, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:172 +0x505
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc00018e780, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f4b1e4034f8, 0xc00007c0a0, 0xc0001f4000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc000316000, 0x7f4b1e4034f8, 0xc00007c0a0, 0xc0001f4000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f4b1e4034f8, 0xc00007c0a0, 0xc0001f4000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0002099e0, 0x7f4b1e4034f8, 0xc00007c0a0, 0xc0001f4000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc000144000, 0xc0001f4000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc000209b60, 0xab7900, 0xc000144000, 0xc0001f4000)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc000144000, 0xc0001f4000)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc000318000, 0xab7900, 0xc000144000, 0xc0001f4000)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc00020e960, 0xab8818, 0xc00023a540)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 830 [select, 1 minutes]:
net/http.(*persistConn).writeLoop(0xc000254240)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
goroutine 1059 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0x7f4b1e447e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000246398, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000246380, 0xc000209e11, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000246380, 0xc000209e11, 0x1, 0x1, 0xc0000c6ba0, 0x0, 0x0)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc000238148, 0xc000209e11, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc000209e00)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 829 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0x7f4b1e447d48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a198, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a180, 0xc000314000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a180, 0xc000314000, 0x1000, 0x1000, 0x439c3c, 0xc0000a5c38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0002f2000, 0xc000314000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc000254240, 0xc000314000, 0x1000, 0x1000, 0xc000250300, 0xc0000a5d40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc00029a420)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc00029a420, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc000254240)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
[ OK ]
level=info ts=2022-08-03T08:09:51.036Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-03T08:09:51.036Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-03T08:09:51.036Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-03T08:09:51.036Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-03T08:09:51.037Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-03T08:09:51.037Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 13 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc0006aa000)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc0006aa000)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003d800, 0xc)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc0002a7f01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f11d4c7ef18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00025c098, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00025c080, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00025c080, 0xfd24085d8c6f4601, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc000202b28, 0x62ea2d80, 0xc000113b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc000202b28, 0xc000113b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc000274000, 0xab76f0, 0xc000202b28, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc000202b28, 0xc000274000, 0x0, 0x0, 0xaaf020, 0xc00007c2d0, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc000274000, 0x0, 0x0, 0xaaf020, 0xc00007c2d0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 35 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 38 [chan receive]:
main.main.func1(0xaaf020, 0xc00007c2d0)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 42 [sync.Cond.Wait]:
sync.runtime_notifyListWait(0xc000220510, 0x0)
/usr/local/go/src/runtime/sema.go:513 +0xf8
sync.(*Cond).Wait(0xc000220500)
/usr/local/go/src/sync/cond.go:56 +0x99
net/http.(*connReader).abortPendingRead(0xc0002199b0)
/usr/local/go/src/net/http/server.go:720 +0xb2
net/http.(*response).finishRequest(0xc0002740e0)
/usr/local/go/src/net/http/server.go:1613 +0x9a
net/http.(*conn).serve(0xc000226aa0, 0xab8818, 0xc000220440)
/usr/local/go/src/net/http/server.go:1937 +0x90b
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 43 [runnable]:
internal/poll.runtime_pollWait(0x7f11d4c7ee30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00025c118, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00025c100, 0xc0002199c1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00025c100, 0xc0002199c1, 0x1, 0x1, 0x461f80, 0x461f80, 0xc0002387e0)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc000204160, 0xc0002199c1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0002199b0)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 25 [IO wait]:
internal/poll.runtime_pollWait(0x7f11d4c7ed48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000108618, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000108600, 0xc0004aa000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000108600, 0xc0004aa000, 0x1000, 0x1000, 0x439c3c, 0xc00009bc38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000bc268, 0xc0004aa000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0001c05a0, 0xc0004aa000, 0x1000, 0x1000, 0xc000094360, 0xc00009bd40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc000239020)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc000239020, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0001c05a0)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 26 [select]:
net/http.(*persistConn).writeLoop(0xc0001c05a0)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-03T11:09:47.067Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-03T11:09:47.068Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-03T11:09:47.068Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-03T11:09:47.068Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-03T11:09:47.069Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
level=info ts=2022-08-03T11:09:47.068Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
runtime: failed to create new OS thread (have 13 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc00005d800)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc00005d800)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000040000, 0xc)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc000300f00)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait, 3 minutes]:
internal/poll.runtime_pollWait(0x7f8d5ad04f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a618, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00002a600, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00002a600, 0xcc85107ead4c7501, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00000ccd8, 0x62ea57b0, 0xc000167b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00000ccd8, 0xc000167b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0001d2000, 0xab76f0, 0xc00000ccd8, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00000ccd8, 0xc0001d2000, 0x0, 0x0, 0xaaf020, 0xc0000b44b0, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0001d2000, 0x0, 0x0, 0xaaf020, 0xc0000b44b0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 8 [syscall, 3 minutes]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 11 [chan receive, 3 minutes]:
main.main.func1(0xaaf020, 0xc0000b44b0)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 15 [runnable]:
compress/flate.newHuffmanBitWriter(...)
/usr/local/go/src/compress/flate/huffman_bit_writer.go:98
compress/flate.(*compressor).init(0xc000700000, 0x7f8d5ad49e40, 0xc000694370, 0xffffffffffffffff, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:579 +0x7d
compress/flate.NewWriter(0x7f8d5ad49e40, 0xc000694370, 0xffffffffffffffff, 0xa, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:671 +0x65
compress/gzip.(*Writer).Write(0xc0000fc0b0, 0xc0003ce000, 0xef, 0x1000, 0x0, 0xc000069610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:191 +0x305
bufio.(*Writer).Flush(0xc000122540, 0xc0000696d0, 0xc000069620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc000122540, 0xc0000697c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc0000fc0b0, 0xc000282c80, 0xef, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc000282c80, 0xc00000cc18, 0xa30c88)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f8d5ad163b8, 0xc000694370, 0xc0001bc100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc0001c6310, 0x7f8d5ad163b8, 0xc000694370, 0xc0001bc100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f8d5ad163b8, 0xc000694370, 0xc0001bc100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0001c4840, 0x7f8d5ad163b8, 0xc000694370, 0xc0001bc100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0001d21c0, 0xc0001bc100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0001c49c0, 0xab7900, 0xc0001d21c0, 0xc0001bc100)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0001d21c0, 0xc0001bc100)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0001d2000, 0xab7900, 0xc0001d21c0, 0xc0001bc100)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0001b8aa0, 0xab8818, 0xc000123440)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 123 [select, 1 minutes]:
net/http.(*persistConn).writeLoop(0xc0000d0240)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
goroutine 122 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0x7f8d5ad04c60, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a198, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a180, 0xc00019e000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a180, 0xc00019e000, 0x1000, 0x1000, 0x439c3c, 0xc00010bc38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000a0018, 0xc00019e000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0000d0240, 0xc00019e000, 0x1000, 0x1000, 0xc0001ca000, 0xc00010bd40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc000690360)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc000690360, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0000d0240)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 69 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0x7f8d5ad04e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a698, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a680, 0xc0001c4c71, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a680, 0xc0001c4c71, 0x1, 0x1, 0xc000626760, 0x0, 0x0)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00000e2c8, 0xc0001c4c71, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0001c4c60)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
[ OK ]
level=info ts=2022-08-03T14:09:54.430Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-03T14:09:54.432Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-03T14:09:54.432Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-03T14:09:54.432Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-03T14:09:54.432Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-03T14:09:54.433Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 13 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc00005dc00)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc00005dc00)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003d800, 0xc)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc000267200)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait, 9 minutes]:
internal/poll.runtime_pollWait(0x7f1ec376af18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000108598, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc000108580, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc000108580, 0xfafc840d0d5ee201, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc0000b6cc0, 0x62ea81e0, 0xc000113b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc0000b6cc0, 0xc000113b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc000280000, 0xab76f0, 0xc0000b6cc0, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc0000b6cc0, 0xc000280000, 0x0, 0x0, 0xaaf020, 0xc0002062d0, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc000280000, 0x0, 0x0, 0xaaf020, 0xc0002062d0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 21 [chan receive, 9 minutes]:
main.main.func1(0xaaf020, 0xc0002062d0)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 38 [syscall, 9 minutes]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 25 [runnable]:
net/http.(*chunkWriter).writeHeader(0xc0000f23c0, 0xc00029c800, 0x800, 0x800)
/usr/local/go/src/net/http/server.go:1240 +0x178
net/http.(*chunkWriter).Write(0xc0000f23c0, 0xc00029c800, 0x800, 0x800, 0x1, 0xc00009b550, 0x6abb36)
/usr/local/go/src/net/http/server.go:370 +0x2e7
bufio.(*Writer).Flush(0xc00023a080, 0xc00000a3e0, 0x76)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
bufio.(*Writer).Write(0xc00023a080, 0xc00000a3e0, 0xd7, 0xf8, 0xc00020a900, 0xc00000a3e0, 0xf0)
/usr/local/go/src/bufio/bufio.go:643 +0xfc
net/http.(*response).write(0xc0000f2380, 0xd7, 0xc00000a3e0, 0xd7, 0xf8, 0x0, 0x0, 0xc00021ae70, 0xc00021a420, 0xc00009b718)
/usr/local/go/src/net/http/server.go:1595 +0x38a
net/http.(*response).Write(0xc0000f2380, 0xc00000a3e0, 0xd7, 0xf8, 0xc00039c000, 0x7f, 0xc00021adc0)
/usr/local/go/src/net/http/server.go:1553 +0x56
github.com/prometheus/client_golang/prometheus/promhttp.(*responseWriterDelegator).Write(0xc00020a900, 0xc00000a3e0, 0xd7, 0xf8, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/delegator.go:74 +0x5b
compress/flate.(*huffmanBitWriter).write(...)
/usr/local/go/src/compress/flate/huffman_bit_writer.go:136
compress/flate.(*huffmanBitWriter).flush(0xc00000a3c0)
/usr/local/go/src/compress/flate/huffman_bit_writer.go:128 +0xe3
compress/flate.(*huffmanBitWriter).writeStoredHeader(0xc00000a3c0, 0x0, 0x7f1ec3789a01)
/usr/local/go/src/compress/flate/huffman_bit_writer.go:412 +0x65
compress/flate.(*compressor).close(0xc000610000, 0x0, 0xc00009b800)
/usr/local/go/src/compress/flate/deflate.go:650 +0x87
compress/flate.(*Writer).Close(...)
/usr/local/go/src/compress/flate/deflate.go:732
compress/gzip.(*Writer).Close(0xc00021a210, 0x0, 0x0)
/usr/local/go/src/compress/gzip/gzip.go:242 +0x6a
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f1ec377c3f8, 0xc00007c550, 0xc00019c300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:205 +0x5fb
net/http.HandlerFunc.ServeHTTP(0xc000176310, 0x7f1ec377c3f8, 0xc00007c550, 0xc00019c300)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f1ec377c3f8, 0xc00007c550, 0xc00019c300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc000174840, 0x7f1ec377c3f8, 0xc00007c550, 0xc00019c300)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0000f2380, 0xc00019c300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0001749c0, 0xab7900, 0xc0000f2380, 0xc00019c300)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0000f2380, 0xc00019c300)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc000280000, 0xab7900, 0xc0000f2380, 0xc00019c300)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc000166a00, 0xab8818, 0xc0000c9440)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 112 [IO wait]:
internal/poll.runtime_pollWait(0x7f1ec376ae30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000108618, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000108600, 0xc000174c71, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000108600, 0xc000174c71, 0x1, 0x1, 0xc00010e120, 0x0, 0xc0000c9518)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000c42c0, 0xc000174c71, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc000174c60)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 195 [select]:
net/http.(*persistConn).writeLoop(0xc0000d25a0)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
goroutine 194 [IO wait]:
internal/poll.runtime_pollWait(0x7f1ec376ac60, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000108098, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000108080, 0xc0001d2000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000108080, 0xc0001d2000, 0x1000, 0x1000, 0x439c3c, 0xc0000a2c38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc000248150, 0xc0001d2000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0000d25a0, 0xc0001d2000, 0x1000, 0x1000, 0xc00009c5a0, 0xc0000a2d40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc00010e5a0)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc00010e5a0, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0000d25a0)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
[ OK ]
level=info ts=2022-08-03T17:09:56.205Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-03T17:09:56.206Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-03T17:09:56.206Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-03T17:09:56.206Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-03T17:09:56.206Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-03T17:09:56.207Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 13 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000700000)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000700000)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003d800, 0xc)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00060df01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f9074201f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a618, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00002a600, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00002a600, 0x44b9b06fa694c201, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00000cf30, 0x62eaac10, 0xc00015fb48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00000cf30, 0xc00015fb98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0001da000, 0xab76f0, 0xc00000cf30, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00000cf30, 0xc0001da000, 0x0, 0x0, 0xaaf020, 0xc0002122d0, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0001da000, 0x0, 0x0, 0xaaf020, 0xc0002122d0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 19 [IO wait]:
internal/poll.runtime_pollWait(0x7f9074201e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a698, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a680, 0xc0001bf811, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a680, 0xc0001bf811, 0x1, 0x1, 0x1, 0xc00005a7a8, 0x82ae3d)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00000e380, 0xc0001bf811, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0001bf800)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 9 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 12 [chan receive]:
main.main.func1(0xaaf020, 0xc0002122d0)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 16 [runnable]:
github.com/prometheus/client_golang/prometheus.processMetric(0xab2740, 0xc00007b260, 0xc0000695f8, 0xc000069628, 0x0, 0xc000069300, 0x1)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:585 +0xeb9
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc00007c960, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:492 +0x9da
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f9074217c78, 0xc0002125f0, 0xc00025c300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc0001ccaf0, 0x7f9074217c78, 0xc0002125f0, 0xc00025c300)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f9074217c78, 0xc0002125f0, 0xc00025c300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0001bf3e0, 0x7f9074217c78, 0xc0002125f0, 0xc00025c300)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0001da380, 0xc00025c300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0001bf560, 0xab7900, 0xc0001da380, 0xc00025c300)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0001da380, 0xc00025c300)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0001da000, 0xab7900, 0xc0001da380, 0xc00025c300)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0001b1540, 0xab8818, 0xc00011b5c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 58 [runnable]:
net/http.(*Transport).dialConn(0xc0001b8780, 0xab87a8, 0xc0000220b0, 0x0, 0x7fff61815ef8, 0x4, 0xc00023bd90, 0xc, 0x0, 0x0, ...)
/usr/local/go/src/net/http/transport.go:1560 +0xbe
net/http.(*Transport).dialConnFor(0xc0001b8780, 0xc0002384d0)
/usr/local/go/src/net/http/transport.go:1442 +0xc6
created by net/http.(*Transport).queueForDial
/usr/local/go/src/net/http/transport.go:1411 +0x40f
goroutine 57 [select]:
net/http.(*Transport).getConn(0xc0001b8780, 0xc000240fc0, 0x0, 0x7fff61815ef8, 0x4, 0xc00023bd90, 0xc, 0x0, 0x0, 0x0, ...)
/usr/local/go/src/net/http/transport.go:1368 +0x589
net/http.(*Transport).roundTrip(0xc0001b8780, 0xc00025c400, 0x30, 0x30, 0x7f90743b3d00)
/usr/local/go/src/net/http/transport.go:579 +0x7eb
net/http.(*Transport).RoundTrip(0xc0001b8780, 0xc00025c400, 0xc0001b8780, 0x0, 0x0)
/usr/local/go/src/net/http/roundtrip.go:17 +0x35
net/http.send(0xc00025c400, 0xaaf4e0, 0xc0001b8780, 0x0, 0x0, 0x0, 0xc0000a8160, 0x203000, 0x1, 0x0)
/usr/local/go/src/net/http/client.go:251 +0x454
net/http.(*Client).send(0xc0001bef60, 0xc00025c400, 0x0, 0x0, 0x0, 0xc0000a8160, 0x0, 0x1, 0x7f907423db00)
/usr/local/go/src/net/http/client.go:175 +0xff
net/http.(*Client).do(0xc0001bef60, 0xc00025c400, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/client.go:717 +0x45f
net/http.(*Client).Do(...)
/usr/local/go/src/net/http/client.go:585
main.(*Exporter).collect(0xc0001a0780, 0xc0002009c0, 0xc000307f3c, 0x2)
/app/apache_exporter.go:291 +0x177
main.(*Exporter).Collect(0xc0001a0780, 0xc0002009c0)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 83 [runnable]:
fmt.(*ss).convertString(0xc00061c060, 0x73, 0xc00063e080, 0x0)
/usr/local/go/src/fmt/scan.go:836 +0x10d
fmt.(*ss).scanOne(0xc00061c060, 0x73, 0x936b40, 0xc00063e080)
/usr/local/go/src/fmt/scan.go:1012 +0xa6b
fmt.(*ss).doScanf(0xc00061c060, 0xa172b2, 0x20, 0xc000320fc0, 0xb, 0xb, 0x0, 0x0, 0x0)
/usr/local/go/src/fmt/scan.go:1230 +0x2a5
fmt.Fscanf(0xaaefe0, 0xc00063e090, 0xa172b2, 0x20, 0xc000320fc0, 0xb, 0xb, 0xc00063813c, 0x91c, 0x40)
/usr/local/go/src/fmt/scan.go:143 +0xd9
fmt.Sscanf(...)
/usr/local/go/src/fmt/scan.go:114
github.com/prometheus/procfs.parseCPUStat(0xc0002065a0, 0x4b, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/stat.go:89 +0x228
github.com/prometheus/procfs.FS.Stat(0xa05a30, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/stat.go:224 +0x4a6
github.com/prometheus/procfs.ProcStat.StartTime(0x90038, 0xc000612040, 0xf, 0xd9c178, 0x1, 0x1, 0x90037, 0x90037, 0x0, 0xffffffffffffffff, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/proc_stat.go:179 +0x85
github.com/prometheus/client_golang/prometheus.(*processCollector).processCollect(0xc00007c9b0, 0xc0002009c0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector_other.go:44 +0xe78
github.com/prometheus/client_golang/prometheus.(*processCollector).Collect(0xc00007c9b0, 0xc0002009c0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector.go:138 +0x33
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:457 +0x5ce
goroutine 84 [runnable]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc0000239f4, 0xc0002009c0, 0xc000200a20)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 85 [runnable]:
sync.(*WaitGroup).Add(0xc0000239f4, 0xffffffffffffffff)
/usr/local/go/src/sync/waitgroup.go:53 +0x14d
sync.(*WaitGroup).Done(...)
/usr/local/go/src/sync/waitgroup.go:99
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:452 +0x76
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 22 [select]:
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect(0xc0000b0000, 0xc0002009c0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:312 +0x695
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 23 [semacquire]:
runtime.ReadMemStats(0xc0000b3800)
/usr/local/go/src/runtime/mstats.go:473 +0x36
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect.func1(0xc0000b0000, 0xc0000b3800, 0xc0000c6060)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:286 +0x38
created by github.com/prometheus/client_golang/prometheus.(*goCollector).Collect
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:285 +0xa9
[ OK ]
level=info ts=2022-08-03T20:09:52.467Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-03T20:09:52.468Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-03T20:09:52.468Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-03T20:09:52.468Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-03T20:09:52.468Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-03T20:09:52.468Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 13 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000081400)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000081400)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003d800, 0xc)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc000083e00)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait, 17 minutes]:
internal/poll.runtime_pollWait(0x7f3894edff18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a418, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00002a400, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00002a400, 0x7b4e92e600a27901, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00000d218, 0x62ead640, 0xc000113b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00000d218, 0xc000113b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0001ee000, 0xab76f0, 0xc00000d218, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00000d218, 0xc0001ee000, 0x0, 0x0, 0xaaf020, 0xc00007c280, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0001ee000, 0x0, 0x0, 0xaaf020, 0xc00007c280, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 8 [syscall, 17 minutes]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 11 [chan receive, 17 minutes]:
main.main.func1(0xaaf020, 0xc00007c280)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 15 [select, 1 minutes]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc0000c8910, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:513 +0xb65
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f3894cf73b8, 0xc0002aa0a0, 0xc000322100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc0001b8c40, 0x7f3894cf73b8, 0xc0002aa0a0, 0xc000322100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f3894cf73b8, 0xc0002aa0a0, 0xc000322100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc000185a10, 0x7f3894cf73b8, 0xc0002aa0a0, 0xc000322100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0002f4000, 0xc000322100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc000185b90, 0xab7900, 0xc0002f4000, 0xc000322100)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0002f4000, 0xc000322100)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0001ee000, 0xab7900, 0xc0002f4000, 0xc000322100)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc000020aa0, 0xab8818, 0xc0001b2540)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 261 [runnable]:
strings.Index(0xc000564681, 0x30, 0xa04cc3, 0x1, 0x41)
/usr/local/go/src/strings/strings.go:1024 +0x70b
strings.genSplit(0xc000564681, 0x30, 0xa04cc3, 0x1, 0x0, 0x1, 0xc0002b0000, 0x2, 0x2)
/usr/local/go/src/strings/strings.go:251 +0xff
strings.SplitN(...)
/usr/local/go/src/strings/strings.go:273
main.splitkv(0xc000564681, 0x30, 0xe, 0x0, 0xc00056467f, 0x1)
/app/apache_exporter.go:244 +0x6d
main.(*Exporter).collect(0xc0001be870, 0xc000200120, 0x0, 0x0)
/app/apache_exporter.go:322 +0x60d
main.(*Exporter).Collect(0xc0001be870, 0xc000200120)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 258 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0x7f3894edfe30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a498, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a480, 0xc000185e41, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a480, 0xc000185e41, 0x1, 0x1, 0xe0f860, 0xa32700, 0x100000001)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00000e168, 0xc000185e41, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc000185e30)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 260 [semacquire, 1 minutes]:
sync.runtime_Semacquire(0xc0000220c8)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc0000220c0)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc0000220c0, 0xc000200120, 0xc000200360)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:463 +0x2b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 265 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0x7f3894edfd48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a218, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a200, 0xc000108000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a200, 0xc000108000, 0x1000, 0x1000, 0x439c3c, 0xc00009bc38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0002b2030, 0xc000108000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0001c4000, 0xc000108000, 0x1000, 0x1000, 0xc0002fa000, 0xc00009bd40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc00032c300)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc00032c300, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0001c4000)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 266 [select, 1 minutes]:
net/http.(*persistConn).writeLoop(0xc0001c4000)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-03T23:09:53.257Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-03T23:09:53.259Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-03T23:09:53.260Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-03T23:09:53.260Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-03T23:09:53.260Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-03T23:09:53.261Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 13 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000109000)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000109000)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003d800, 0xc)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc000631f01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f30deed2f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a198, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00002a180, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00002a180, 0xfea6002bee575101, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00000d368, 0x62eb0070, 0xc00018bb48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00000d368, 0xc00018bb98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc000254000, 0xab76f0, 0xc00000d368, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00000d368, 0xc000254000, 0x0, 0x0, 0xaaf020, 0xc000114c80, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc000254000, 0x0, 0x0, 0xaaf020, 0xc000114c80, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 22 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 10 [chan receive]:
main.main.func1(0xaaf020, 0xc000114c80)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 14 [runnable]:
github.com/prometheus/common/expfmt.glob..func2(0xdcce80, 0x5)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:52 +0x5d
sync.(*Pool).Get(0xdcce80, 0xc00021f27d, 0x0)
/usr/local/go/src/sync/pool.go:148 +0xaa
github.com/prometheus/common/expfmt.writeFloat(0xab8738, 0xc00021f240, 0x406aa00000000000, 0x0, 0x1, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:448 +0xab
github.com/prometheus/common/expfmt.writeSample(0xab8738, 0xc00021f240, 0xc0000240d8, 0x11, 0x0, 0x0, 0xc0000fa0e0, 0x0, 0x0, 0x0, ...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:309 +0x17e
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc0000a4210, 0xc0000a22d0, 0x52, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:172 +0x505
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc0000a22d0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f30dee8fab8, 0xc00020c6e0, 0xc00021c100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc000201e30, 0x7f30dee8fab8, 0xc00020c6e0, 0xc00021c100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f30dee8fab8, 0xc00020c6e0, 0xc00021c100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0002035c0, 0x7f30dee8fab8, 0xc00020c6e0, 0xc00021c100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0002540e0, 0xc00021c100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc000203740, 0xab7900, 0xc0002540e0, 0xc00021c100)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0002540e0, 0xc00021c100)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc000254000, 0xab7900, 0xc0002540e0, 0xc00021c100)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc000020b40, 0xab8818, 0xc00021e440)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 15 [IO wait]:
internal/poll.runtime_pollWait(0x7f30deed2e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a218, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a200, 0xc0002039f1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a200, 0xc0002039f1, 0x1, 0x1, 0x461f80, 0x461f80, 0xc00007a900)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00000e188, 0xc0002039f1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0002039e0)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 37 [IO wait]:
internal/poll.runtime_pollWait(0x7f30deed2d48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000180818, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000180800, 0xc0002c6000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000180800, 0xc0002c6000, 0x1000, 0x1000, 0x439c3c, 0xc00011fc38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0002c4000, 0xc0002c6000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0002227e0, 0xc0002c6000, 0x1000, 0x1000, 0xc000116480, 0xc00011fd40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc0002842a0)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc0002842a0, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0002227e0)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 38 [select]:
net/http.(*persistConn).writeLoop(0xc0002227e0)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-04T02:09:48.546Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-04T02:09:48.547Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-04T02:09:48.547Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-04T02:09:48.547Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-04T02:09:48.548Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
level=info ts=2022-08-04T02:09:48.547Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
runtime: failed to create new OS thread (have 13 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc00031a400)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc00031a400)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003d800, 0xc)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc0005dff01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7ff4e19a2f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a398, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00002a380, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00002a380, 0xed677f9b12f45c01, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00000c9f0, 0x62eb2aa0, 0xc000113b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00000c9f0, 0xc000113b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0002e8000, 0xab76f0, 0xc00000c9f0, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00000c9f0, 0xc0002e8000, 0x0, 0x0, 0xaaf020, 0xc00007c280, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0002e8000, 0x0, 0x0, 0xaaf020, 0xc00007c280, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 24 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 10 [chan receive]:
main.main.func1(0xaaf020, 0xc00007c280)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 14 [runnable]:
sort.Sort(0xab71b0, 0xc0002a4400)
/usr/local/go/src/sort/sort.go:229 +0x86
compress/flate.(*byFreq).sort(...)
/usr/local/go/src/compress/flate/huffman_code.go:333
compress/flate.(*huffmanEncoder).generate(0xc0002a4370, 0xc0000b6300, 0x1e, 0x1e, 0xc00000000f)
/usr/local/go/src/compress/flate/huffman_code.go:306 +0x185
compress/flate.(*huffmanBitWriter).indexTokens(0xc00000a1e0, 0xc0005b2000, 0x6ed, 0x4001, 0xc00038d718, 0x6402fe)
/usr/local/go/src/compress/flate/huffman_bit_writer.go:571 +0x25c
compress/flate.(*huffmanBitWriter).writeBlock(0xc00000a1e0, 0xc0005b2000, 0x6ed, 0x4001, 0x0, 0xc0005a2000, 0x207d, 0x10000)
/usr/local/go/src/compress/flate/huffman_bit_writer.go:440 +0xa8
compress/flate.(*compressor).writeBlock(0xc000500000, 0xc0005b2000, 0x6ec, 0x4001, 0x207d, 0x5, 0x35)
/usr/local/go/src/compress/flate/deflate.go:170 +0xd1
compress/flate.(*compressor).deflate(0xc000500000)
/usr/local/go/src/compress/flate/deflate.go:415 +0x90d
compress/flate.(*compressor).close(0xc000500000, 0x7ff4e16f89f0, 0xc00038d800)
/usr/local/go/src/compress/flate/deflate.go:646 +0x50
compress/flate.(*Writer).Close(...)
/usr/local/go/src/compress/flate/deflate.go:732
compress/gzip.(*Writer).Close(0xc0002a4160, 0x0, 0x0)
/usr/local/go/src/compress/gzip/gzip.go:242 +0x6a
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7ff4e17ba3b8, 0xc00007c7d0, 0xc0002be100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:205 +0x5fb
net/http.HandlerFunc.ServeHTTP(0xc0002e6000, 0x7ff4e17ba3b8, 0xc00007c7d0, 0xc0002be100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7ff4e17ba3b8, 0xc00007c7d0, 0xc0002be100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc00007f9e0, 0x7ff4e17ba3b8, 0xc00007c7d0, 0xc0002be100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0002e80e0, 0xc0002be100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc00007fb60, 0xab7900, 0xc0002e80e0, 0xc0002be100)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0002e80e0, 0xc0002be100)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0002e8000, 0xab7900, 0xc0002e80e0, 0xc0002be100)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc000020960, 0xab8818, 0xc0002a8540)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 15 [IO wait]:
internal/poll.runtime_pollWait(0x7ff4e19a2e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a418, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a400, 0xc00007fe11, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a400, 0xc00007fe11, 0x1, 0x1, 0x461f80, 0x461f80, 0xc00007ab40)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00000e150, 0xc00007fe11, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc00007fe00)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 68 [IO wait]:
internal/poll.runtime_pollWait(0x7ff4e19a2d48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000108618, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000108600, 0xc000364000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000108600, 0xc000364000, 0x1000, 0x1000, 0x439c3c, 0xc00022cc38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc000222030, 0xc000364000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0002bc7e0, 0xc000364000, 0x1000, 0x1000, 0xc00032c060, 0xc00022cd40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc0000bf560)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc0000bf560, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0002bc7e0)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 69 [select]:
net/http.(*persistConn).writeLoop(0xc0002bc7e0)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-04T05:10:50.474Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-04T05:10:50.475Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-04T05:10:50.475Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-04T05:10:50.475Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-04T05:10:50.475Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-04T05:10:50.475Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 13 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000270800)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000270800)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000040000, 0xc)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc000069d01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.goschedImpl(0xc000082f00)
/usr/local/go/src/runtime/proc.go:3333 +0xda
runtime.gopreempt_m(0xc000082f00)
/usr/local/go/src/runtime/proc.go:3361 +0x34
runtime.newstack()
/usr/local/go/src/runtime/stack.go:1045 +0x1bc
runtime.morestack()
/usr/local/go/src/runtime/asm_amd64.s:458 +0x8f
goroutine 1 [IO wait, 14 minutes]:
internal/poll.runtime_pollWait(0x7f1942732f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000108618, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc000108600, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc000108600, 0x86300eb7b9ae0401, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc0000af4a0, 0x62eb550c, 0xc000113b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc0000af4a0, 0xc000113b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc000290000, 0xab76f0, 0xc0000af4a0, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc0000af4a0, 0xc000290000, 0x0, 0x0, 0xaaf020, 0xc000206280, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc000290000, 0x0, 0x0, 0xaaf020, 0xc000206280, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 22 [chan receive, 14 minutes]:
main.main.func1(0xaaf020, 0xc000206280)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 9 [syscall, 14 minutes]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 26 [select]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc0000c8910, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:513 +0xb65
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f1942745bf8, 0xc0006c4410, 0xc00016a000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc000174f50, 0x7f1942745bf8, 0xc0006c4410, 0xc00016a000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f1942745bf8, 0xc0006c4410, 0xc00016a000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc00017c870, 0x7f1942745bf8, 0xc0006c4410, 0xc00016a000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0002480e0, 0xc00016a000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc00017c9f0, 0xab7900, 0xc0002480e0, 0xc00016a000)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0002480e0, 0xc00016a000)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc000290000, 0xab7900, 0xc0002480e0, 0xc00016a000)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc000164be0, 0xab8818, 0xc0000c1440)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 168 [runnable]:
net/http.(*Transport).getConn(0xc00016e500, 0xc00023a040, 0x0, 0x7ffc7f2dcef8, 0x4, 0xc000022150, 0xc, 0x0, 0x0, 0x0, ...)
/usr/local/go/src/net/http/transport.go:1368 +0x589
net/http.(*Transport).roundTrip(0xc00016e500, 0xc000190100, 0x30, 0x30, 0xc000316006)
/usr/local/go/src/net/http/transport.go:579 +0x7eb
net/http.(*Transport).RoundTrip(0xc00016e500, 0xc000190100, 0xc00016e500, 0x0, 0x0)
/usr/local/go/src/net/http/roundtrip.go:17 +0x35
net/http.send(0xc000190100, 0xaaf4e0, 0xc00016e500, 0x0, 0x0, 0x0, 0xc000238068, 0x4182f3, 0x1, 0x0)
/usr/local/go/src/net/http/client.go:251 +0x454
net/http.(*Client).send(0xc00017c3f0, 0xc000190100, 0x0, 0x0, 0x0, 0xc000238068, 0x0, 0x1, 0x7f19693c31f8)
/usr/local/go/src/net/http/client.go:175 +0xff
net/http.(*Client).do(0xc00017c3f0, 0xc000190100, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/client.go:717 +0x45f
net/http.(*Client).Do(...)
/usr/local/go/src/net/http/client.go:585
main.(*Exporter).collect(0xc0001560f0, 0xc0000be180, 0x0, 0x0)
/app/apache_exporter.go:291 +0x177
main.(*Exporter).Collect(0xc0001560f0, 0xc0000be180)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:457 +0x5ce
goroutine 167 [IO wait]:
internal/poll.runtime_pollWait(0x7f1942732e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000108698, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000108680, 0xc00017cca1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000108680, 0xc00017cca1, 0x1, 0x1, 0xc0000be600, 0x0, 0xc0000c1518)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000bc2c8, 0xc00017cca1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc00017cc90)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 169 [semacquire]:
sync.runtime_Semacquire(0xc0006ea0e8)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc0006ea0e0)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc0006ea0e0, 0xc0000be180, 0xc0000be360)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:463 +0x2b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 170 [runnable]:
fmt.(*ss).SkipSpace(0xc0000be7e0)
/usr/local/go/src/fmt/scan.go:420 +0x15a
fmt.(*ss).scanOne(0xc0000be7e0, 0x66, 0x92c700, 0xc00012a5e0)
/usr/local/go/src/fmt/scan.go:1007 +0xeae
fmt.(*ss).doScanf(0xc0000be7e0, 0xa172b2, 0x20, 0xc0005d0fc0, 0xb, 0xb, 0x9, 0x0, 0x0)
/usr/local/go/src/fmt/scan.go:1230 +0x2a5
fmt.Fscanf(0xaaefe0, 0xc0006ec170, 0xa172b2, 0x20, 0xc0005d0fc0, 0xb, 0xb, 0xc0005b3188, 0x8cf, 0x0)
/usr/local/go/src/fmt/scan.go:143 +0xd9
fmt.Sscanf(...)
/usr/local/go/src/fmt/scan.go:114
github.com/prometheus/procfs.parseCPUStat(0xc00012a500, 0x4b, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/stat.go:89 +0x228
github.com/prometheus/procfs.FS.Stat(0xa05a30, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/stat.go:224 +0x4a6
github.com/prometheus/procfs.ProcStat.StartTime(0x9ab1b, 0xc0006c2000, 0xf, 0xd9c178, 0x1, 0x1, 0x9ab1a, 0x9ab1a, 0x0, 0xffffffffffffffff, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/proc_stat.go:179 +0x85
github.com/prometheus/client_golang/prometheus.(*processCollector).processCollect(0xc0000c8960, 0xc0000be180)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector_other.go:44 +0xe78
github.com/prometheus/client_golang/prometheus.(*processCollector).Collect(0xc0000c8960, 0xc0000be180)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector.go:138 +0x33
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 273 [runnable]:
net/http.(*persistConn).readLoop(0xc000198360)
/usr/local/go/src/net/http/transport.go:2048
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 274 [runnable]:
net/http.(*persistConn).writeLoop(0xc000198360)
/usr/local/go/src/net/http/transport.go:2379
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-04T08:09:51.414Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-04T08:09:51.415Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-04T08:09:51.415Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-04T08:09:51.415Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-04T08:09:51.415Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-04T08:09:51.415Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000081000)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000081000)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc000067d01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.goschedImpl(0xc000082d80)
/usr/local/go/src/runtime/proc.go:3333 +0xda
runtime.gopreempt_m(0xc000082d80)
/usr/local/go/src/runtime/proc.go:3361 +0x34
runtime.newstack()
/usr/local/go/src/runtime/stack.go:1045 +0x1bc
runtime.morestack()
/usr/local/go/src/runtime/asm_amd64.s:458 +0x8f
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f30f5984f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a698, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00002a680, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00002a680, 0x6a6b606705e6fb01, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00000d518, 0x62eb7f00, 0xc000167b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00000d518, 0xc000167b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0001da000, 0xab76f0, 0xc00000d518, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00000d518, 0xc0001da000, 0x0, 0x0, 0xaaf020, 0xc0000a8280, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0001da000, 0x0, 0x0, 0xaaf020, 0xc0000a8280, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 10 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 13 [chan receive]:
main.main.func1(0xaaf020, 0xc0000a8280)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 49 [runnable]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc00007c960, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:412 +0xab
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f30f5997bf8, 0xc0000a86e0, 0xc0000f0200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc0001c6f50, 0x7f30f5997bf8, 0xc0000a86e0, 0xc0000f0200)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f30f5997bf8, 0xc0000a86e0, 0xc0000f0200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0001ce870, 0x7f30f5997bf8, 0xc0000a86e0, 0xc0000f0200)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0001da2a0, 0xc0000f0200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0001ce9f0, 0xab7900, 0xc0001da2a0, 0xc0000f0200)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0001da2a0, 0xc0000f0200)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0001da000, 0xab7900, 0xc0001da2a0, 0xc0000f0200)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0001baaa0, 0xab8818, 0xc000123440)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 60 [IO wait]:
internal/poll.runtime_pollWait(0x7f30f5984e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a718, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a700, 0xc0001ceca1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a700, 0xc0001ceca1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00000e2d8, 0xc0001ceca1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0001cec90)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
[ OK ]
level=info ts=2022-08-04T11:09:54.696Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-04T11:09:54.697Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-04T11:09:54.697Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-04T11:09:54.697Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-04T11:09:54.697Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-04T11:09:54.697Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000300400)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000300400)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f8a0007cf18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000280318, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc000280300, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc000280300, 0x89b190978ad64701, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc0000acc18, 0x62eba930, 0xc00015fb48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc0000acc18, 0xc00015fb98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0002ae000, 0xab76f0, 0xc0000acc18, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc0000acc18, 0xc0002ae000, 0x0, 0x0, 0xaaf020, 0xc0000dc370, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0002ae000, 0x0, 0x0, 0xaaf020, 0xc0000dc370, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 34 [runnable]:
runtime/debug.readGCStats(0xc00021c3a8)
/usr/local/go/src/runtime/mstats.go:556 +0x58
runtime/debug.ReadGCStats(0xc00021c380)
/usr/local/go/src/runtime/debug/garbage.go:48 +0x52
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect(0xc00002a580, 0xc00009cfc0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:300 +0x29f
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 12 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 22 [chan receive]:
main.main.func1(0xaaf020, 0xc0000dc370)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 26 [runnable]:
github.com/prometheus/client_golang/prometheus.processMetric(0xab26f0, 0xc000220180, 0xc0002c95f8, 0xc0002c9628, 0x0, 0x0, 0x1)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:651 +0xb0f
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc00007c960, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:492 +0x9da
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f8a000bf438, 0xc0000dc8c0, 0xc0000b2200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc00029a7e0, 0x7f8a000bf438, 0xc0000dc8c0, 0xc0000b2200)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f8a000bf438, 0xc0000dc8c0, 0xc0000b2200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc00029c5a0, 0x7f8a000bf438, 0xc0000dc8c0, 0xc0000b2200)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0002ae0e0, 0xc0000b2200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc00029c720, 0xab7900, 0xc0002ae0e0, 0xc0000b2200)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0002ae0e0, 0xc0000b2200)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0002ae000, 0xab7900, 0xc0002ae0e0, 0xc0000b2200)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0000c54a0, 0xab8818, 0xc0000be6c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 27 [IO wait]:
internal/poll.runtime_pollWait(0x7f8a0007ce30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000280398, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000280380, 0xc00029c9d1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000280380, 0xc00029c9d1, 0x1, 0x1, 0x461f80, 0x461f80, 0xc00009cd80)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000b0208, 0xc00029c9d1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc00029c9c0)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 28 [runnable]:
syscall.Getenv(0xa0783c, 0x7, 0x0, 0x0, 0x0)
/usr/local/go/src/syscall/env_unix.go:83 +0xbb
os.Getenv(0xa0783c, 0x7, 0x0, 0x0)
/usr/local/go/src/os/env.go:103 +0x4d
net/http.(*Transport).onceSetNextProtoDefaults(0xc0000de8c0)
/usr/local/go/src/net/http/transport.go:362 +0x5f
sync.(*Once).doSlow(0xc0000de9d0, 0xc000105660)
/usr/local/go/src/sync/once.go:68 +0xec
sync.(*Once).Do(...)
/usr/local/go/src/sync/once.go:59
net/http.(*Transport).roundTrip(0xc0000de8c0, 0xc0001b4200, 0x30, 0x9db900, 0x7f8a00223900)
/usr/local/go/src/net/http/transport.go:503 +0x111c
net/http.(*Transport).RoundTrip(0xc0000de8c0, 0xc0001b4200, 0xc0000de8c0, 0x0, 0x0)
/usr/local/go/src/net/http/roundtrip.go:17 +0x35
net/http.send(0xc0001b4200, 0xaaf4e0, 0xc0000de8c0, 0x0, 0x0, 0x0, 0xc00000e238, 0x203000, 0x1, 0x0)
/usr/local/go/src/net/http/client.go:251 +0x454
net/http.(*Client).send(0xc00029c120, 0xc0001b4200, 0x0, 0x0, 0x0, 0xc00000e238, 0x0, 0x1, 0xc0001b4200)
/usr/local/go/src/net/http/client.go:175 +0xff
net/http.(*Client).do(0xc00029c120, 0xc0001b4200, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/client.go:717 +0x45f
net/http.(*Client).Do(...)
/usr/local/go/src/net/http/client.go:585
main.(*Exporter).collect(0xc0000e0f00, 0xc00009cfc0, 0x0, 0x0)
/app/apache_exporter.go:291 +0x177
main.(*Exporter).Collect(0xc0000e0f00, 0xc00009cfc0)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:457 +0x5ce
goroutine 29 [runnable]:
sync.runtime_Semacquire(0xc0000ba878)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc0000ba870)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc0000ba870, 0xc00009cfc0, 0xc00009d020)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:463 +0x2b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 30 [runnable]:
fmt.(*ss).SkipSpace(0xc00009d140)
/usr/local/go/src/fmt/scan.go:420 +0x15a
fmt.(*ss).doScanf(0xc00009d140, 0xa19485, 0x23, 0xc0002cafb0, 0xc, 0xc, 0xb, 0x0, 0x0)
/usr/local/go/src/fmt/scan.go:1213 +0x305
fmt.Fscanf(0xaaefe0, 0xc0000bd230, 0xa19485, 0x23, 0xc0002cafb0, 0xc, 0xc, 0xc0002f09f8, 0x60, 0x608)
/usr/local/go/src/fmt/scan.go:143 +0xd9
fmt.Sscanf(...)
/usr/local/go/src/fmt/scan.go:114
github.com/prometheus/procfs.parseSoftIRQStat(0xc0002883c0, 0x5f, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/stat.go:131 +0x247
github.com/prometheus/procfs.FS.Stat(0xa05a30, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/stat.go:217 +0x6f7
github.com/prometheus/procfs.ProcStat.StartTime(0x41e03, 0xc0000ba8c0, 0xf, 0xd9c178, 0x1, 0x1, 0x41e02, 0x41e02, 0x0, 0xffffffffffffffff, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/proc_stat.go:179 +0x85
github.com/prometheus/client_golang/prometheus.(*processCollector).processCollect(0xc00007c9b0, 0xc00009cfc0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector_other.go:44 +0xe78
github.com/prometheus/client_golang/prometheus.(*processCollector).Collect(0xc00007c9b0, 0xc00009cfc0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector.go:138 +0x33
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 35 [runnable]:
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect.func1(0xc00002a580, 0xc000226000, 0xc00022c000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:285
created by github.com/prometheus/client_golang/prometheus.(*goCollector).Collect
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:285 +0xa9
[ OK ]
level=info ts=2022-08-04T14:10:00.857Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-04T14:10:00.858Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-04T14:10:00.858Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-04T14:10:00.858Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-04T14:10:00.858Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-04T14:10:00.859Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000213000)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000213000)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00065df01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7fa9c3b8cf18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a618, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00002a600, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00002a600, 0x6481a67e4311de01, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00000cd08, 0x62ebd360, 0xc000167b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00000cd08, 0xc000167b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0001d2000, 0xab76f0, 0xc00000cd08, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00000cd08, 0xc0001d2000, 0x0, 0x0, 0xaaf020, 0xc000210280, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0001d2000, 0x0, 0x0, 0xaaf020, 0xc000210280, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 9 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 12 [chan receive]:
main.main.func1(0xaaf020, 0xc000210280)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 16 [runnable]:
compress/flate.(*compressor).deflate(0xc000580000)
/usr/local/go/src/compress/flate/deflate.go:429 +0x251
compress/flate.(*compressor).write(0xc000580000, 0xc00056e000, 0x14e, 0x1000, 0x1000, 0xead2226, 0x61)
/usr/local/go/src/compress/flate/deflate.go:554 +0x85
compress/flate.(*Writer).Write(...)
/usr/local/go/src/compress/flate/deflate.go:712
compress/gzip.(*Writer).Write(0xc00013b600, 0xc00056e000, 0x14e, 0x1000, 0xc000069610, 0xc000069610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:196 +0xc5
bufio.(*Writer).Flush(0xc0000c8cc0, 0xc0000696d0, 0xc000069620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc0000c8cc0, 0xc0000697c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc00013b600, 0xc000210370, 0x14e, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc000210370, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7fa9c3b9e3f8, 0xc00007cfa0, 0xc0001bc200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc0001c8310, 0x7fa9c3b9e3f8, 0xc00007cfa0, 0xc0001bc200)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7fa9c3b9e3f8, 0xc00007cfa0, 0xc0001bc200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0001c6840, 0x7fa9c3b9e3f8, 0xc00007cfa0, 0xc0001bc200)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0001d20e0, 0xc0001bc200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0001c69c0, 0xab7900, 0xc0001d20e0, 0xc0001bc200)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0001d20e0, 0xc0001bc200)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0001d2000, 0xab7900, 0xc0001d20e0, 0xc0001bc200)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0001b8aa0, 0xab8818, 0xc000123440)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 49 [IO wait]:
internal/poll.runtime_pollWait(0x7fa9c3b8ce30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a698, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a680, 0xc0001c6c71, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a680, 0xc0001c6c71, 0x1, 0x1, 0x461f80, 0x461f80, 0xc00007b2c0)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00000e2c8, 0xc0001c6c71, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0001c6c60)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 68 [IO wait]:
internal/poll.runtime_pollWait(0x7fa9c3b8cd48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000a8118, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0000a8100, 0xc0003c0000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0000a8100, 0xc0003c0000, 0x1000, 0x1000, 0x439c3c, 0xc00010fc38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00000e318, 0xc0003c0000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc000128a20, 0xc0003c0000, 0x1000, 0x1000, 0xc00007e3c0, 0xc00010fd40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc000200c00)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc000200c00, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc000128a20)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 69 [select]:
net/http.(*persistConn).writeLoop(0xc000128a20)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-04T17:09:54.873Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-04T17:09:54.874Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-04T17:09:54.875Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-04T17:09:54.875Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-04T17:09:54.875Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
level=info ts=2022-08-04T17:09:54.875Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000089000)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000089000)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003d800, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc00008af00)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait, 20 minutes]:
internal/poll.runtime_pollWait(0x7f7be66b3f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a618, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00002a600, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00002a600, 0xf8f25fc67001c001, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00000cd38, 0x62ebfd90, 0xc00015fb48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00000cd38, 0xc00015fb98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0001ca000, 0xab76f0, 0xc00000cd38, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00000cd38, 0xc0001ca000, 0x0, 0x0, 0xaaf020, 0xc0000bc460, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0001ca000, 0x0, 0x0, 0xaaf020, 0xc0000bc460, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 9 [syscall, 20 minutes]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 12 [chan receive, 20 minutes]:
main.main.func1(0xaaf020, 0xc0000bc460)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 16 [runnable]:
runtime.Gosched(...)
/usr/local/go/src/runtime/proc.go:292
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc00007c960, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:540 +0xe5e
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f7be66c6c38, 0xc00028a230, 0xc0000cc300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc0001be310, 0x7f7be66c6c38, 0xc00028a230, 0xc0000cc300)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f7be66c6c38, 0xc00028a230, 0xc0000cc300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0001bc840, 0x7f7be66c6c38, 0xc00028a230, 0xc0000cc300)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0004e00e0, 0xc0000cc300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0001bc9c0, 0xab7900, 0xc0004e00e0, 0xc0000cc300)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0004e00e0, 0xc0000cc300)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0001ca000, 0xab7900, 0xc0004e00e0, 0xc0000cc300)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0001b0aa0, 0xab8818, 0xc00011b440)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 247 [select]:
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect(0xc0000b0000, 0xc0002d0240)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:312 +0x695
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 248 [semacquire]:
runtime.ReadMemStats(0xc0000b2000)
/usr/local/go/src/runtime/mstats.go:473 +0x36
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect.func1(0xc0000b0000, 0xc0000b2000, 0xc000290060)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:286 +0x38
created by github.com/prometheus/client_golang/prometheus.(*goCollector).Collect
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:285 +0xa9
goroutine 277 [IO wait]:
internal/poll.runtime_pollWait(0x7f7be66b3e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a698, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a680, 0xc0001bcc71, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a680, 0xc0001bcc71, 0x1, 0x1, 0xc0000ba000, 0x0, 0x100000001)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00000e2d0, 0xc0001bcc71, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0001bcc60)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 308 [runnable]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:442
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 278 [runnable]:
strings.Fields(0xc0002fab40, 0x4c, 0x4c, 0xc0002fab40, 0x4c)
/usr/local/go/src/strings/strings.go:320 +0x25e
github.com/prometheus/procfs.FS.Stat(0xa05a30, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/stat.go:179 +0x347
github.com/prometheus/procfs.ProcStat.StartTime(0x66217, 0xc0002220b0, 0xf, 0xd9c178, 0x1, 0x1, 0x66216, 0x66216, 0x0, 0xffffffffffffffff, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/proc_stat.go:179 +0x85
github.com/prometheus/client_golang/prometheus.(*processCollector).processCollect(0xc00007c9b0, 0xc0002d0240)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector_other.go:44 +0xe78
github.com/prometheus/client_golang/prometheus.(*processCollector).Collect(0xc00007c9b0, 0xc0002d0240)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector.go:138 +0x33
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:457 +0x5ce
goroutine 279 [semacquire]:
sync.runtime_Semacquire(0xc000222028)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc000222020)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc000222020, 0xc0002d0240, 0xc0002d02a0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:463 +0x2b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 280 [select]:
net/http.(*Transport).getConn(0xc0001b8500, 0xc0000d02c0, 0x0, 0x7ffd6c34fef8, 0x4, 0xc000222030, 0xc, 0x0, 0x0, 0x0, ...)
/usr/local/go/src/net/http/transport.go:1368 +0x589
net/http.(*Transport).roundTrip(0xc0001b8500, 0xc0001b4100, 0x30, 0x9db900, 0x7f7be6866300)
/usr/local/go/src/net/http/transport.go:579 +0x7eb
net/http.(*Transport).RoundTrip(0xc0001b8500, 0xc0001b4100, 0xc0001b8500, 0x0, 0x0)
/usr/local/go/src/net/http/roundtrip.go:17 +0x35
net/http.send(0xc0001b4100, 0xaaf4e0, 0xc0001b8500, 0x0, 0x0, 0x0, 0xc00000e028, 0x418257, 0x1, 0x0)
/usr/local/go/src/net/http/client.go:251 +0x454
net/http.(*Client).send(0xc0001bc3c0, 0xc0001b4100, 0x0, 0x0, 0x0, 0xc00000e028, 0x0, 0x1, 0xc0001b4100)
/usr/local/go/src/net/http/client.go:175 +0xff
net/http.(*Client).do(0xc0001bc3c0, 0xc0001b4100, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/client.go:717 +0x45f
net/http.(*Client).Do(...)
/usr/local/go/src/net/http/client.go:585
main.(*Exporter).collect(0xc0001a00f0, 0xc0002d0240, 0x0, 0x0)
/app/apache_exporter.go:291 +0x177
main.(*Exporter).Collect(0xc0001a00f0, 0xc0002d0240)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 281 [runnable]:
syscall.Syscall6(0x37, 0x8, 0x1, 0x4, 0xc0002b11f4, 0xc0002b11f0, 0x0, 0x0, 0x4, 0x0)
/usr/local/go/src/syscall/asm_linux_amd64.s:43 +0x5
syscall.getsockopt(0x8, 0x1, 0x4, 0xc0002b11f4, 0xc0002b11f0, 0x77, 0x0)
/usr/local/go/src/syscall/zsyscall_linux_amd64.go:1461 +0x85
syscall.GetsockoptInt(0x8, 0x1, 0x4, 0x0, 0x0, 0x0)
/usr/local/go/src/syscall/syscall_unix.go:277 +0x65
net.(*netFD).connect(0xc00002a100, 0xab87a8, 0xc0000220b0, 0x0, 0x0, 0xaaf8e0, 0xc0000ae2c0, 0x0, 0x0, 0x0, ...)
/usr/local/go/src/net/fd_unix.go:149 +0x2bf
net.(*netFD).dial(0xc00002a100, 0xab87a8, 0xc0000220b0, 0xabb9b0, 0x0, 0xabb9b0, 0xc0001bccf0, 0x0, 0x7f7c0d3888e0, 0x10)
/usr/local/go/src/net/sock_posix.go:149 +0x10b
net.socket(0xab87a8, 0xc0000220b0, 0xa051b5, 0x3, 0x2, 0x1, 0x0, 0x0, 0xabb9b0, 0x0, ...)
/usr/local/go/src/net/sock_posix.go:70 +0x1c5
net.internetSocket(0xab87a8, 0xc0000220b0, 0xa051b5, 0x3, 0xabb9b0, 0x0, 0xabb9b0, 0xc0001bccf0, 0x1, 0x0, ...)
/usr/local/go/src/net/ipsock_posix.go:141 +0x145
net.(*sysDialer).doDialTCP(0xc00002a080, 0xab87a8, 0xc0000220b0, 0x0, 0xc0001bccf0, 0xc0000a81d0, 0x0, 0x1)
/usr/local/go/src/net/tcpsock_posix.go:65 +0xc5
net.(*sysDialer).dialTCP(0xc00002a080, 0xab87a8, 0xc0000220b0, 0x0, 0xc0001bccf0, 0xc000222030, 0xc0002b1768, 0x40d91b)
/usr/local/go/src/net/tcpsock_posix.go:61 +0xd7
net.(*sysDialer).dialSingle(0xc00002a080, 0xab87a8, 0xc0000220b0, 0xab3258, 0xc0001bccf0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/net/dial.go:580 +0x5e8
net.(*sysDialer).dialSerial(0xc00002a080, 0xab87a8, 0xc0000220b0, 0xc000076cd0, 0x1, 0x1, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/net/dial.go:548 +0x15e
net.(*Dialer).DialContext(0xde0c60, 0xab87a8, 0xc0000220b0, 0xa051b5, 0x3, 0xc000222030, 0xc, 0x0, 0x0, 0x0, ...)
/usr/local/go/src/net/dial.go:425 +0x6e5
net/http.(*Transport).dial(0xc0001b8500, 0xab87a8, 0xc0000220b0, 0xa051b5, 0x3, 0xc000222030, 0xc, 0x0, 0xc0000a81d0, 0x0, ...)
/usr/local/go/src/net/http/transport.go:1171 +0x16f
net/http.(*Transport).dialConn(0xc0001b8500, 0xab87a8, 0xc0000220b0, 0x0, 0x7ffd6c34fef8, 0x4, 0xc000222030, 0xc, 0x0, 0xc0000d8000, ...)
/usr/local/go/src/net/http/transport.go:1600 +0x1b85
net/http.(*Transport).dialConnFor(0xc0001b8500, 0xc0000fe370)
/usr/local/go/src/net/http/transport.go:1442 +0xc6
created by net/http.(*Transport).queueForDial
/usr/local/go/src/net/http/transport.go:1411 +0x40f
[ OK ]
level=info ts=2022-08-04T20:10:37.392Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-04T20:10:37.394Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-04T20:10:37.394Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-04T20:10:37.394Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-04T20:10:37.394Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-04T20:10:37.396Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000080400)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000080400)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc000302300)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f65604d5f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000176598, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc000176580, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc000176580, 0x608298e9a439b401, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc000124d08, 0x62ec27c0, 0xc000187b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc000124d08, 0xc000187b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0001f8000, 0xab76f0, 0xc000124d08, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc000124d08, 0xc0001f8000, 0x0, 0x0, 0xaaf020, 0xc00007c230, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0001f8000, 0x0, 0x0, 0xaaf020, 0xc00007c230, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 21 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 24 [chan receive]:
main.main.func1(0xaaf020, 0xc00007c230)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 28 [runnable]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc000108960, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:412 +0xab
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f65604ef538, 0xc000312730, 0xc0000c4200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc0001ee310, 0x7f65604ef538, 0xc000312730, 0xc0000c4200)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f65604ef538, 0xc000312730, 0xc0000c4200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0001ec840, 0x7f65604ef538, 0xc000312730, 0xc0000c4200)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0000f00e0, 0xc0000c4200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0001ec9c0, 0xab7900, 0xc0000f00e0, 0xc0000c4200)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0000f00e0, 0xc0000c4200)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0001f8000, 0xab7900, 0xc0000f00e0, 0xc0000c4200)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0001d6aa0, 0xab8818, 0xc000139440)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 42 [IO wait]:
internal/poll.runtime_pollWait(0x7f65604d5e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000176618, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000176600, 0xc0001ecc71, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000176600, 0xc0001ecc71, 0x1, 0x1, 0xc00007a780, 0x0, 0xc000139518)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0001322c0, 0xc0001ecc71, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0001ecc60)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
[ OK ]
level=info ts=2022-08-04T23:09:51.387Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-04T23:09:51.388Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-04T23:09:51.388Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-04T23:09:51.388Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-04T23:09:51.388Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-04T23:09:51.389Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000080800)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000080800)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003d800, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc000083980)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait, 2 minutes]:
internal/poll.runtime_pollWait(0x7f321e828f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000264318, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc000264300, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc000264300, 0x71c34f605b49e301, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc000210be8, 0x62ec51f0, 0xc000167b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc000210be8, 0xc000167b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc000296000, 0xab76f0, 0xc000210be8, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc000210be8, 0xc000296000, 0x0, 0x0, 0xaaf020, 0xc00023e370, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc000296000, 0x0, 0x0, 0xaaf020, 0xc00023e370, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 11 [syscall, 2 minutes]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 38 [chan receive, 2 minutes]:
main.main.func1(0xaaf020, 0xc00023e370)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 42 [runnable]:
hash/crc32.Update(0x7f3200000000, 0xc000140000, 0xc0001fa000, 0xef, 0x1000, 0x0)
/usr/local/go/src/hash/crc32/crc32.go:214 +0x15a
compress/gzip.(*Writer).Write(0xc0002a4370, 0xc0001fa000, 0xef, 0x1000, 0x0, 0xc00008f610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:195 +0x85
bufio.(*Writer).Flush(0xc00021f0c0, 0xc00008f6d0, 0xc00008f620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc00021f0c0, 0xc00008f7c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc0002a4370, 0xc00023f090, 0xef, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc00023f090, 0xc000210b28, 0xa30c88)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f321e7eb438, 0xc00023e870, 0xc0002e2000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc00027a7e0, 0x7f321e7eb438, 0xc00023e870, 0xc0002e2000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f321e7eb438, 0xc00023e870, 0xc0002e2000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc00027c5a0, 0x7f321e7eb438, 0xc00023e870, 0xc0002e2000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0002960e0, 0xc0002e2000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc00027c720, 0xab7900, 0xc0002960e0, 0xc0002e2000)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0002960e0, 0xc0002e2000)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc000296000, 0xab7900, 0xc0002960e0, 0xc0002e2000)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc000225400, 0xab8818, 0xc00021e6c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 120 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0x7f321e828e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000264398, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000264380, 0xc00027c9d1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000264380, 0xc00027c9d1, 0x1, 0x1, 0xc0000b2000, 0x0, 0x1000000010000)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00023c1f8, 0xc00027c9d1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc00027c9c0)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 127 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0x7f321e828d48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a298, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a280, 0xc0000d2000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a280, 0xc0000d2000, 0x1000, 0x1000, 0x439c3c, 0xc00010ac38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc000320118, 0xc0000d2000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc000226000, 0xc0000d2000, 0x1000, 0x1000, 0xc0000c2180, 0xc00010ad40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc0002aa0c0)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc0002aa0c0, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc000226000)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 128 [select, 1 minutes]:
net/http.(*persistConn).writeLoop(0xc000226000)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-05T02:09:52.836Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-05T02:09:52.837Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-05T02:09:52.837Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-05T02:09:52.837Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-05T02:09:52.837Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-05T02:09:52.837Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000268800)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000268800)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc000267080)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7fb549e0ef18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a618, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00002a600, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00002a600, 0xc82b7d9fd49b701, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00000cd08, 0x62ec7c20, 0xc000167b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00000cd08, 0xc000167b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0001d2000, 0xab76f0, 0xc00000cd08, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00000cd08, 0xc0001d2000, 0x0, 0x0, 0xaaf020, 0xc000206280, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0001d2000, 0x0, 0x0, 0xaaf020, 0xc000206280, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 11 [chan receive]:
main.main.func1(0xaaf020, 0xc000206280)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 20 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 15 [runnable]:
compress/flate.(*compressor).deflate(0xc000580000)
/usr/local/go/src/compress/flate/deflate.go:426 +0x224
compress/flate.(*compressor).write(0xc000580000, 0xc000318000, 0x14e, 0x1000, 0x1000, 0x221b12f2, 0x61)
/usr/local/go/src/compress/flate/deflate.go:554 +0x85
compress/flate.(*Writer).Write(...)
/usr/local/go/src/compress/flate/deflate.go:712
compress/gzip.(*Writer).Write(0xc000316000, 0xc000318000, 0x14e, 0x1000, 0xc000069610, 0xc000069610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:196 +0xc5
bufio.(*Writer).Flush(0xc000310080, 0xc0000696d0, 0xc000069620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc000310080, 0xc0000697c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc000316000, 0xc00007d270, 0x14e, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc00007d270, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7fb549e203b8, 0xc00007cfa0, 0xc0001bc200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc0001c6310, 0x7fb549e203b8, 0xc00007cfa0, 0xc0001bc200)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7fb549e203b8, 0xc00007cfa0, 0xc0001bc200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0001c4840, 0x7fb549e203b8, 0xc00007cfa0, 0xc0001bc200)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0001d20e0, 0xc0001bc200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0001c49c0, 0xab7900, 0xc0001d20e0, 0xc0001bc200)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0001d20e0, 0xc0001bc200)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0001d2000, 0xab7900, 0xc0001d20e0, 0xc0001bc200)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0001b6be0, 0xab8818, 0xc000123440)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 16 [IO wait]:
internal/poll.runtime_pollWait(0x7fb549e0ee30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a698, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a680, 0xc0001c4c71, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a680, 0xc0001c4c71, 0x1, 0x1, 0x461f80, 0x461f80, 0xc00007b2c0)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00000e2c8, 0xc0001c4c71, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0001c4c60)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 24 [IO wait]:
internal/poll.runtime_pollWait(0x7fb549e0ed48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000a8118, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0000a8100, 0xc0002be000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0000a8100, 0xc0002be000, 0x1000, 0x1000, 0x439c3c, 0xc00010fc38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000a0118, 0xc0002be000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc000128b40, 0xc0002be000, 0x1000, 0x1000, 0xc00007e3c0, 0xc00010fd40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc0000b2900)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc0000b2900, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc000128b40)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 25 [select]:
net/http.(*persistConn).writeLoop(0xc000128b40)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-05T05:10:32.461Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-05T05:10:32.462Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-05T05:10:32.462Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-05T05:10:32.462Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-05T05:10:32.462Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-05T05:10:32.462Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000080c00)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000080c00)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00031ff01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait, 3 minutes]:
internal/poll.runtime_pollWait(0x7f8368f29f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000176898, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc000176880, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc000176880, 0xb6f6cf96fb1a6101, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc000125638, 0x62eca650, 0xc000187b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc000125638, 0xc000187b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc000296000, 0xab76f0, 0xc000125638, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc000125638, 0xc000296000, 0x0, 0x0, 0xaaf020, 0xc000108d20, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc000296000, 0x0, 0x0, 0xaaf020, 0xc000108d20, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 36 [syscall, 3 minutes]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 26 [chan receive, 3 minutes]:
main.main.func1(0xaaf020, 0xc000108d20)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 30 [runnable]:
compress/flate.newHuffmanBitWriter(...)
/usr/local/go/src/compress/flate/huffman_bit_writer.go:98
compress/flate.(*compressor).init(0xc000600000, 0x7f8368d49558, 0xc0005da370, 0xffffffffffffffff, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:579 +0x7d
compress/flate.NewWriter(0x7f8368d49558, 0xc0005da370, 0xffffffffffffffff, 0xa, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:671 +0x65
compress/gzip.(*Writer).Write(0xc000153970, 0xc00018a000, 0xef, 0x1000, 0x0, 0xc00008f610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:191 +0x305
bufio.(*Writer).Flush(0xc000232840, 0xc00008f6d0, 0xc00008f620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc000232840, 0xc00008f7c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc000153970, 0xc000206cd0, 0xef, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc000206cd0, 0xc00000caf8, 0xa30c88)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f8368f49738, 0xc0005da370, 0xc0000aa200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc00028a540, 0x7f8368f49738, 0xc0005da370, 0xc0000aa200)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f8368f49738, 0xc0005da370, 0xc0000aa200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0001ef860, 0x7f8368f49738, 0xc0005da370, 0xc0000aa200)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0002960e0, 0xc0000aa200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0001ef9e0, 0xab7900, 0xc0002960e0, 0xc0000aa200)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0002960e0, 0xc0000aa200)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc000296000, 0xab7900, 0xc0002960e0, 0xc0000aa200)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0001d72c0, 0xab8818, 0xc0001396c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 62 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0x7f8368f29e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000176918, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000176900, 0xc0001efc91, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000176900, 0xc0001efc91, 0x1, 0x1, 0xe0f860, 0xa32700, 0xc0002237a8)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc000132368, 0xc0001efc91, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0001efc80)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 115 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0x7f8368f29d48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000176118, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000176100, 0xc0001f0000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000176100, 0xc0001f0000, 0x1000, 0x1000, 0x439c3c, 0xc000113c38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc000318128, 0xc0001f0000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc000140360, 0xc0001f0000, 0x1000, 0x1000, 0xc000240300, 0xc000113d40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc0000cc0c0)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc0000cc0c0, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc000140360)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 116 [select, 1 minutes]:
net/http.(*persistConn).writeLoop(0xc000140360)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-05T08:09:50.438Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-05T08:09:50.440Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-05T08:09:50.440Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-05T08:09:50.440Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-05T08:09:50.440Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-05T08:09:50.440Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc00005d800)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc00005d800)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc000069d01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.goschedImpl(0xc000001380)
/usr/local/go/src/runtime/proc.go:3333 +0xda
runtime.gopreempt_m(0xc000001380)
/usr/local/go/src/runtime/proc.go:3361 +0x34
runtime.newstack()
/usr/local/go/src/runtime/stack.go:1045 +0x1bc
runtime.morestack()
/usr/local/go/src/runtime/asm_amd64.s:458 +0x8f
goroutine 1 [IO wait, 4 minutes]:
internal/poll.runtime_pollWait(0x7f6728ed9f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000a8398, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc0000a8380, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc0000a8380, 0xd504a0fe74f6db01, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc0000971e8, 0x62ecd080, 0xc000167b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc0000971e8, 0xc000167b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc00029e000, 0xab76f0, 0xc0000971e8, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc0000971e8, 0xc00029e000, 0x0, 0x0, 0xaaf020, 0xc0000b4280, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc00029e000, 0x0, 0x0, 0xaaf020, 0xc0000b4280, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 10 [syscall, 4 minutes]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 23 [chan receive, 4 minutes]:
main.main.func1(0xaaf020, 0xc0000b4280)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 27 [select, 1 minutes]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc00007c960, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:513 +0xb65
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f6728f193b8, 0xc0000b4460, 0xc000218200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc0000e4c40, 0x7f6728f193b8, 0xc0000b4460, 0xc000218200)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f6728f193b8, 0xc0000b4460, 0xc000218200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0000a3a10, 0x7f6728f193b8, 0xc0000b4460, 0xc000218200)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc00029e0e0, 0xc000218200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0000a3b90, 0xab7900, 0xc00029e0e0, 0xc000218200)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc00029e0e0, 0xc000218200)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc00029e000, 0xab7900, 0xc00029e0e0, 0xc000218200)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0000bc8c0, 0xab8818, 0xc0000de540)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 76 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0x7f6728ed9e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000a8418, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0000a8400, 0xc0000a3e41, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0000a8400, 0xc0000a3e41, 0x1, 0x1, 0xc000200180, 0x0, 0xc0000de618)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000a0148, 0xc0000a3e41, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0000a3e30)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 89 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0x7f6728ed9d48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000a8218, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0000a8200, 0xc000099000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0000a8200, 0xc000099000, 0x1000, 0x1000, 0x439c3c, 0xc00010dc38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000a0088, 0xc000099000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0000f2000, 0xc000099000, 0x1000, 0x1000, 0xc000326180, 0xc00010dd40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc0000b2780)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc0000b2780, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0000f2000)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 77 [runnable]:
strings.Index(0xc0005d2000, 0x2deb1, 0xa30880, 0x1, 0xbc2)
/usr/local/go/src/strings/strings.go:1024 +0x70b
strings.genSplit(0xc0005d2000, 0x2deb1, 0xa30880, 0x1, 0x0, 0xbc2, 0x0, 0xc0000a2e40, 0x0)
/usr/local/go/src/strings/strings.go:251 +0xff
strings.Split(...)
/usr/local/go/src/strings/strings.go:299
main.(*Exporter).collect(0xc0000ec870, 0xc0002002a0, 0x0, 0x0)
/app/apache_exporter.go:307 +0x4ac
main.(*Exporter).Collect(0xc0000ec870, 0xc0002002a0)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:457 +0x5ce
goroutine 78 [semacquire, 1 minutes]:
sync.runtime_Semacquire(0xc0000dd638)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc0000dd630)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc0000dd630, 0xc0002002a0, 0xc000200300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:463 +0x2b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 90 [select, 1 minutes]:
net/http.(*persistConn).writeLoop(0xc0000f2000)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-05T11:09:51.825Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-05T11:09:51.827Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-05T11:09:51.827Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-05T11:09:51.827Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-05T11:09:51.827Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-05T11:09:51.828Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000088c00)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000088c00)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003d800, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc000299080)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait, 20 minutes]:
internal/poll.runtime_pollWait(0x7fc33a072f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a918, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00002a900, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00002a900, 0x711bc577c5897901, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00000d938, 0x62ecfab0, 0xc00015fb48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00000d938, 0xc00015fb98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0001fe000, 0xab76f0, 0xc00000d938, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00000d938, 0xc0001fe000, 0x0, 0x0, 0xaaf020, 0xc00007cfa0, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0001fe000, 0x0, 0x0, 0xaaf020, 0xc00007cfa0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 17 [syscall, 20 minutes]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 34 [chan receive, 20 minutes]:
main.main.func1(0xaaf020, 0xc00007cfa0)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 38 [runnable]:
github.com/prometheus/client_golang/prometheus.populateMetric(0x2, 0x4024000000000000, 0x0, 0x0, 0x0, 0x0, 0xc0001ae000, 0xc00029f301, 0xc0001ae000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/value.go:139 +0x1c5
github.com/prometheus/client_golang/prometheus.(*constMetric).Write(0xc00028d1d0, 0xc0001ae000, 0x2, 0x2)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/value.go:124 +0x68
github.com/prometheus/client_golang/prometheus.processMetric(0xab26f0, 0xc00028d1d0, 0xc00029f5f8, 0xc00029f628, 0x0, 0xc000292800, 0x1)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:598 +0xa2
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc00007c960, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:492 +0x9da
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7fc33a090738, 0xc00031e9b0, 0xc000158100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc0001dad20, 0x7fc33a090738, 0xc00031e9b0, 0xc000158100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7fc33a090738, 0xc00031e9b0, 0xc000158100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0001f6420, 0x7fc33a090738, 0xc00031e9b0, 0xc000158100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0001fe0e0, 0xc000158100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0001f65a0, 0xab7900, 0xc0001fe0e0, 0xc000158100)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0001fe0e0, 0xc000158100)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0001fe000, 0xab7900, 0xc0001fe0e0, 0xc000158100)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0001b1f40, 0xab8818, 0xc00011b840)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 307 [runnable]:
syscall.Syscall6(0x101, 0xffffffffffffff9c, 0xc000022180, 0x80000, 0x0, 0x0, 0x0, 0x8, 0x80000, 0x0)
/usr/local/go/src/syscall/asm_linux_amd64.s:43 +0x5
syscall.openat(0xffffffffffffff9c, 0xc000022150, 0xa, 0x80000, 0x0, 0x1, 0x6, 0x4)
/usr/local/go/src/syscall/zsyscall_linux_amd64.go:68 +0xc7
syscall.Open(...)
/usr/local/go/src/syscall/syscall_linux.go:152
os.openFileNolog(0xc000022150, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/os/file_unix.go:216 +0x8f
os.OpenFile(0xc000022150, 0xa, 0x0, 0x0, 0xc000022150, 0xa, 0xc000022150)
/usr/local/go/src/os/file.go:331 +0x65
os.Open(...)
/usr/local/go/src/os/file.go:311
github.com/prometheus/procfs/internal/util.ReadFileNoStat(0xc000022150, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/internal/util/readfile.go:30 +0x74
github.com/prometheus/procfs.FS.Stat(0xa05a30, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/stat.go:169 +0x18d
github.com/prometheus/procfs.ProcStat.StartTime(0x3b374, 0xc0002c2100, 0xf, 0xd9c178, 0x1, 0x1, 0x3b373, 0x3b373, 0x0, 0xffffffffffffffff, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/proc_stat.go:179 +0x85
github.com/prometheus/client_golang/prometheus.(*processCollector).processCollect(0xc00007c9b0, 0xc00009c120)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector_other.go:44 +0xe78
github.com/prometheus/client_golang/prometheus.(*processCollector).Collect(0xc00007c9b0, 0xc00009c120)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector.go:138 +0x33
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 306 [semacquire]:
sync.runtime_Semacquire(0xc0002c20b8)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc0002c20b0)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc0002c20b0, 0xc00009c120, 0xc00009c300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:463 +0x2b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 288 [runnable]:
net/http.(*connReader).backgroundRead(0xc0001f6840)
/usr/local/go/src/net/http/server.go:671
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 231 [runnable]:
net/url.parse(0x7ffe6c36aef8, 0x28, 0xc000030100, 0x7ffe6c36aef8, 0x28, 0x0)
/usr/local/go/src/net/url/url.go:519 +0xd8
net/url.Parse(0x7ffe6c36aef8, 0x28, 0xa32218, 0xc000103b01, 0xffffffffffffffff)
/usr/local/go/src/net/url/url.go:478 +0x85
net/http.NewRequestWithContext(0xab87a8, 0xc0000220b0, 0xa04fba, 0x3, 0x7ffe6c36aef8, 0x28, 0x0, 0x0, 0xc000055488, 0x596c19, ...)
/usr/local/go/src/net/http/request.go:866 +0xa8
net/http.NewRequest(...)
/usr/local/go/src/net/http/request.go:828
main.(*Exporter).collect(0xc0001a0ff0, 0xc00009c120, 0x0, 0x0)
/app/apache_exporter.go:284 +0x85
main.(*Exporter).Collect(0xc0001a0ff0, 0xc00009c120)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 293 [waiting]:
runtime.ReadMemStats(0xc0000c9800)
/usr/local/go/src/runtime/mstats.go:473 +0x36
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect.func1(0xc00002a580, 0xc0000c9800, 0xc0000f6000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:286 +0x38
created by github.com/prometheus/client_golang/prometheus.(*goCollector).Collect
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:285 +0xa9
goroutine 305 [semacquire]:
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect(0xc00002a580, 0xc00009c120)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:304 +0x34b
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:457 +0x5ce
[ OK ]
level=info ts=2022-08-05T14:10:05.473Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-05T14:10:05.474Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-05T14:10:05.474Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-05T14:10:05.474Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-05T14:10:05.475Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-05T14:10:05.475Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000278800)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000278800)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait, 11 minutes]:
internal/poll.runtime_pollWait(0x7f94275b8f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000264318, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc000264300, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc000264300, 0xda85c35e5b620201, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00020cc18, 0x62ed24e0, 0xc0000e7b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00020cc18, 0xc0000e7b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc000296000, 0xab76f0, 0xc00020cc18, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00020cc18, 0xc000296000, 0x0, 0x0, 0xaaf020, 0xc0002403c0, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc000296000, 0x0, 0x0, 0xaaf020, 0xc0002403c0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 37 [syscall, 11 minutes]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 23 [chan receive, 11 minutes]:
main.main.func1(0xaaf020, 0xc0002403c0)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 27 [runnable]:
compress/flate.newHuffmanBitWriter(...)
/usr/local/go/src/compress/flate/huffman_bit_writer.go:97
compress/flate.(*compressor).init(0xc000620000, 0x7f9427359998, 0xc00061c320, 0xffffffffffffffff, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:579 +0x51
compress/flate.NewWriter(0x7f9427359998, 0xc00061c320, 0xffffffffffffffff, 0xa, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:671 +0x65
compress/gzip.(*Writer).Write(0xc000376000, 0xc000400000, 0xef, 0x1000, 0x0, 0xc00018f610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:191 +0x305
bufio.(*Writer).Flush(0xc0002ac180, 0xc00018f6d0, 0xc00018f620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc0002ac180, 0xc00018f7c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc000376000, 0xc00007c3c0, 0xef, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc00007c3c0, 0xc00020ca98, 0xa30c88)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f942757f578, 0xc00061c320, 0xc000216100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc00027a7e0, 0x7f942757f578, 0xc00061c320, 0xc000216100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f942757f578, 0xc00061c320, 0xc000216100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc00027c5a0, 0x7f942757f578, 0xc00061c320, 0xc000216100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0002960e0, 0xc000216100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc00027c720, 0xab7900, 0xc0002960e0, 0xc000216100)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0002960e0, 0xc000216100)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc000296000, 0xab7900, 0xc0002960e0, 0xc000216100)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc000227400, 0xab8818, 0xc0002206c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 191 [select]:
net/http.(*persistConn).writeLoop(0xc0000a8360)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
goroutine 185 [IO wait]:
internal/poll.runtime_pollWait(0x7f94275b8e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000264398, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000264380, 0xc00027c9d1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000264380, 0xc00027c9d1, 0x1, 0x1, 0xc000604180, 0x0, 0xc000220798)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0002121f0, 0xc00027c9d1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc00027c9c0)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 190 [IO wait]:
internal/poll.runtime_pollWait(0x7f94275b8c60, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a198, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a180, 0xc000348000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a180, 0xc000348000, 0x1000, 0x1000, 0x439c3c, 0xc00008ec38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc000212260, 0xc000348000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0000a8360, 0xc000348000, 0x1000, 0x1000, 0xc00007e180, 0xc00008ed40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc0006041e0)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc0006041e0, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0000a8360)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
[ OK ]
level=info ts=2022-08-05T17:09:53.496Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-05T17:09:53.497Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-05T17:09:53.497Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-05T17:09:53.497Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-05T17:09:53.498Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
level=info ts=2022-08-05T17:09:53.497Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc00011e400)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc00011e400)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc0002a7f01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7fc9c3ef3f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000214118, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc000214100, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc000214100, 0x8fcb4f7288751901, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc0002030f8, 0x62ed4f10, 0xc00018bb48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc0002030f8, 0xc00018bb98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc000262000, 0xab76f0, 0xc0002030f8, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc0002030f8, 0xc000262000, 0x0, 0x0, 0xaaf020, 0xc0000c8e60, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc000262000, 0x0, 0x0, 0xaaf020, 0xc0000c8e60, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 37 [chan receive]:
main.main.func1(0xaaf020, 0xc0000c8e60)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 50 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 41 [runnable]:
hash/crc32.Update(0x7fc900000000, 0xc0000e2000, 0xc0002b8000, 0xf0, 0x1000, 0x0)
/usr/local/go/src/hash/crc32/crc32.go:214 +0x15a
compress/gzip.(*Writer).Write(0xc0002b6000, 0xc0002b8000, 0xf0, 0x1000, 0x0, 0xc000235610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:195 +0x85
bufio.(*Writer).Flush(0xc0002ac080, 0xc0002356d0, 0xc000235620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc0002ac080, 0xc0002357c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc0002b6000, 0xc0001083c0, 0xf0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc0001083c0, 0xc000203a58, 0xa30c88)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7fc9c3eab278, 0xc000220550, 0xc000308000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc000207650, 0x7fc9c3eab278, 0xc000220550, 0xc000308000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7fc9c3eab278, 0xc000220550, 0xc000308000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc00020ea20, 0x7fc9c3eab278, 0xc000220550, 0xc000308000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0002620e0, 0xc000308000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc00020eba0, 0xab7900, 0xc0002620e0, 0xc000308000)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0002620e0, 0xc000308000)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc000262000, 0xab7900, 0xc0002620e0, 0xc000308000)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc000274000, 0xab8818, 0xc00023a2c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 42 [IO wait]:
internal/poll.runtime_pollWait(0x7fc9c3ef3e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000214198, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000214180, 0xc00020ee51, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000214180, 0xc00020ee51, 0x1, 0x1, 0x461f80, 0x461f80, 0xc00021e5a0)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00020c0b8, 0xc00020ee51, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc00020ee40)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 8 [IO wait]:
internal/poll.runtime_pollWait(0x7fc9c3ef3d48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000180818, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000180800, 0xc0003b6000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000180800, 0xc0003b6000, 0x1000, 0x1000, 0x439c3c, 0xc00009cc38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc000152030, 0xc0003b6000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0000caea0, 0xc0003b6000, 0x1000, 0x1000, 0xc000140240, 0xc00009cd40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc00010a720)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc00010a720, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0000caea0)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 9 [select]:
net/http.(*persistConn).writeLoop(0xc0000caea0)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-05T20:09:59.297Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-05T20:09:59.297Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-05T20:09:59.298Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-05T20:09:59.298Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-05T20:09:59.298Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-05T20:09:59.298Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000600000)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000600000)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc0005c1f01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f708e297f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000a8118, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc0000a8100, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc0000a8100, 0x2b990a8e1c457c01, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc0000970e0, 0x62ed794e, 0xc000167b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc0000970e0, 0xc000167b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0000ea000, 0xab76f0, 0xc0000970e0, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc0000970e0, 0xc0000ea000, 0x0, 0x0, 0xaaf020, 0xc00020e280, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0000ea000, 0x0, 0x0, 0xaaf020, 0xc00020e280, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 19 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 22 [chan receive]:
main.main.func1(0xaaf020, 0xc00020e280)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 26 [runnable]:
hash/crc32.Update(0x7f7000000000, 0xc000140000, 0xc0004e0000, 0xef, 0x1000, 0x0)
/usr/local/go/src/hash/crc32/crc32.go:214 +0x15a
compress/gzip.(*Writer).Write(0xc000282160, 0xc0004e0000, 0xef, 0x1000, 0x0, 0xc000093610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:195 +0x85
bufio.(*Writer).Flush(0xc00023ea00, 0xc0000936d0, 0xc000093620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc00023ea00, 0xc0000937c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc000282160, 0xc0004da1e0, 0xef, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc0004da1e0, 0xc00020ac60, 0xa30c88)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f708e2d7278, 0xc0000b4550, 0xc000290000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc00009b650, 0x7f708e2d7278, 0xc0000b4550, 0xc000290000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f708e2d7278, 0xc0000b4550, 0xc000290000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0000a2a20, 0x7f708e2d7278, 0xc0000b4550, 0xc000290000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0000ea0e0, 0xc000290000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0000a2ba0, 0xab7900, 0xc0000ea0e0, 0xc000290000)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0000ea0e0, 0xc000290000)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0000ea000, 0xab7900, 0xc0000ea0e0, 0xc000290000)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0000fc000, 0xab8818, 0xc0000c22c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 27 [IO wait]:
internal/poll.runtime_pollWait(0x7f708e297e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000a8198, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0000a8180, 0xc0000a2e51, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0000a8180, 0xc0000a2e51, 0x1, 0x1, 0x461f80, 0x461f80, 0xc0000b2600)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000a00a8, 0xc0000a2e51, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0000a2e40)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 40 [IO wait]:
internal/poll.runtime_pollWait(0x7f708e297d48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000a8318, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0000a8300, 0xc000338000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0000a8300, 0xc000338000, 0x1000, 0x1000, 0x439c3c, 0xc00010ec38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000a00f8, 0xc000338000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc000128b40, 0xc000338000, 0x1000, 0x1000, 0xc000254240, 0xc00010ed40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc0000b2e40)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc0000b2e40, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc000128b40)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 41 [select]:
net/http.(*persistConn).writeLoop(0xc000128b40)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-05T21:39:36.008Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-05T21:39:36.011Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-05T21:39:36.011Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-05T21:39:36.011Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-05T21:39:36.011Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-05T21:39:36.011Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc00044e000)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc00044e000)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0x0, 0xc000031000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0xc000031000, 0xc000031000)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.handoffp(0xc000031000)
/usr/local/go/src/runtime/proc.go:2412 +0x65
runtime.entersyscallblock_handoff()
/usr/local/go/src/runtime/proc.go:3687 +0x30
runtime.systemstack(0x0)
/usr/local/go/src/runtime/asm_amd64.s:379 +0x66
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1246
goroutine 21 [syscall]:
runtime.notetsleepg(0xe108b8, 0xffffffffffffffff, 0xc000542e01)
/usr/local/go/src/runtime/lock_futex.go:235 +0x34 fp=0xc000542e08 sp=0xc000542dd8 pc=0x40c474
runtime.gcBgMarkStartWorkers()
/usr/local/go/src/runtime/mgc.go:1837 +0x50 fp=0xc000542e30 sp=0xc000542e08 pc=0x41d930
runtime.gcStart(0x0, 0x0, 0xc000000000)
/usr/local/go/src/runtime/mgc.go:1358 +0x1ca fp=0xc000542ea8 sp=0xc000542e30 pc=0x41c30a
runtime.mallocgc(0x400, 0x0, 0xc000542f00, 0x486423)
/usr/local/go/src/runtime/malloc.go:1166 +0x495 fp=0xc000542f30 sp=0xc000542ea8 pc=0x40da55
runtime.growslice(0x9463a0, 0xc000544200, 0x200, 0x200, 0x201, 0x0, 0x0, 0x0)
/usr/local/go/src/runtime/slice.go:224 +0x154 fp=0xc000542f98 sp=0xc000542f30 pc=0x44ec14
io.ReadAll(0xaaf2e0, 0xc00000ce70, 0x0, 0x0, 0xc0000a8200, 0x0, 0x0)
/usr/local/go/src/io/io.go:631 +0x1d9 fp=0xc000543018 sp=0xc000542f98 pc=0x486bf9
io/ioutil.ReadAll(...)
/usr/local/go/src/io/ioutil/ioutil.go:27
github.com/prometheus/procfs/internal/util.ReadFileNoStat(0xc000023a40, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/internal/util/readfile.go:37 +0xfd fp=0xc000543080 sp=0xc000543018 pc=0x7eb5bd
github.com/prometheus/procfs.FS.Stat(0xa05a30, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/stat.go:169 +0x18d fp=0xc0005434e0 sp=0xc000543080 pc=0x7eeb0d
github.com/prometheus/procfs.ProcStat.StartTime(0x3d5b, 0xc0000239e0, 0xf, 0xd9c178, 0x1, 0x1, 0x3d5a, 0x3d5a, 0x0, 0xffffffffffffffff, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/proc_stat.go:179 +0x85 fp=0xc000543828 sp=0xc0005434e0 pc=0x7edc65
github.com/prometheus/client_golang/prometheus.(*processCollector).processCollect(0xc00007c9b0, 0xc0000ba840)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector_other.go:44 +0xe78 fp=0xc000543ee8 sp=0xc000543828 pc=0x8045f8
github.com/prometheus/client_golang/prometheus.(*processCollector).processCollect-fm(0xc0000ba840)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector_other.go:27 +0x3d fp=0xc000543f08 sp=0xc000543ee8 pc=0x81117d
github.com/prometheus/client_golang/prometheus.(*processCollector).Collect(0xc00007c9b0, 0xc0000ba840)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector.go:138 +0x33 fp=0xc000543f20 sp=0xc000543f08 pc=0x803753
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b fp=0xc000543fe0 sp=0xc000543f20 pc=0x810c6b
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1371 +0x1 fp=0xc000543fe8 sp=0xc000543fe0 pc=0x46cda1
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f2d5f9b6f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a618, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00002a600, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00002a600, 0xdc16f8c33cf57e01, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00000ccd8, 0x62ed8e2a, 0xc00015fb48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00000ccd8, 0xc00015fb98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0001ca000, 0xab76f0, 0xc00000ccd8, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00000ccd8, 0xc0001ca000, 0x0, 0x0, 0xaaf020, 0xc0002062d0, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0001ca000, 0x0, 0x0, 0xaaf020, 0xc0002062d0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 8 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 11 [chan receive]:
main.main.func1(0xaaf020, 0xc0002062d0)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 15 [semacquire]:
github.com/prometheus/client_golang/prometheus.processMetric(0xab26f0, 0xc0000ab560, 0xc0000695f8, 0xc000069628, 0x0, 0x0, 0x1)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:597 +0x7e
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc00007c960, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:492 +0x9da
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f2d5f9c83f8, 0xc0000bc870, 0xc0001b4500)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc0001c0310, 0x7f2d5f9c83f8, 0xc0000bc870, 0xc0001b4500)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f2d5f9c83f8, 0xc0000bc870, 0xc0001b4500)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0001be840, 0x7f2d5f9c83f8, 0xc0000bc870, 0xc0001b4500)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0001ca2a0, 0xc0001b4500)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0001be9c0, 0xab7900, 0xc0001ca2a0, 0xc0001b4500)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0001ca2a0, 0xc0001b4500)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0001ca000, 0xab7900, 0xc0001ca2a0, 0xc0001b4500)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0001b0b40, 0xab8818, 0xc00011b440)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 55 [IO wait]:
internal/poll.runtime_pollWait(0x7f2d5f9b6e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a698, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a680, 0xc0001bec71, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a680, 0xc0001bec71, 0x1, 0x1, 0xc00007b800, 0x0, 0xc00011b518)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00000e2c0, 0xc0001bec71, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0001bec60)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 40 [semacquire]:
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect(0xc0000b0000, 0xc0000ba840)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:304 +0x34b
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 41 [semacquire]:
runtime.ReadMemStats(0xc0002a7800)
/usr/local/go/src/runtime/mstats.go:473 +0x36
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect.func1(0xc0000b0000, 0xc0002a7800, 0xc000250300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:286 +0x38
created by github.com/prometheus/client_golang/prometheus.(*goCollector).Collect
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:285 +0xa9
goroutine 57 [semacquire]:
sync.runtime_Semacquire(0xc0000ce828)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc0000ce820)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc0000ce820, 0xc0000ba840, 0xc0000ba8a0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:463 +0x2b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 58 [runnable]:
net.JoinHostPort(...)
/usr/local/go/src/net/ipsock.go:233
net/http.canonicalAddr(0xc0001e02d0, 0x40e078, 0x38)
/usr/local/go/src/net/http/transport.go:2728 +0x20a
net/http.(*Transport).connectMethodForRequest(0xc0001b8500, 0xc00023a340, 0x0, 0x7ffd353a9ef8, 0x4, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/transport.go:828 +0x65
net/http.(*Transport).roundTrip(0xc0001b8500, 0xc0001b4600, 0x30, 0x9db900, 0x0)
/usr/local/go/src/net/http/transport.go:569 +0x733
net/http.(*Transport).RoundTrip(0xc0001b8500, 0xc0001b4600, 0xc0001b8500, 0x0, 0x0)
/usr/local/go/src/net/http/roundtrip.go:17 +0x35
net/http.send(0xc0001b4600, 0xaaf4e0, 0xc0001b8500, 0x0, 0x0, 0x0, 0xc00000e388, 0x203000, 0x1, 0x0)
/usr/local/go/src/net/http/client.go:251 +0x454
net/http.(*Client).send(0xc0001be3c0, 0xc0001b4600, 0x0, 0x0, 0x0, 0xc00000e388, 0x0, 0x1, 0xc0001b4600)
/usr/local/go/src/net/http/client.go:175 +0xff
net/http.(*Client).do(0xc0001be3c0, 0xc0001b4600, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/client.go:717 +0x45f
net/http.(*Client).Do(...)
/usr/local/go/src/net/http/client.go:585
main.(*Exporter).collect(0xc0001a00f0, 0xc0000ba840, 0x0, 0x0)
/app/apache_exporter.go:291 +0x177
main.(*Exporter).Collect(0xc0001a00f0, 0xc0000ba840)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
[ OK ]
level=info ts=2022-08-05T23:09:56.316Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-05T23:09:56.316Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-05T23:09:56.316Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-05T23:09:56.316Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-05T23:09:56.317Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-05T23:09:56.317Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000680000)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000680000)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc000275f01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7ff1f1436f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0002cc098, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc0002cc080, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc0002cc080, 0xa38c0813fa7de401, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc000286888, 0x62eda37e, 0xc000113b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc000286888, 0xc000113b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0002d0000, 0xab76f0, 0xc000286888, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc000286888, 0xc0002d0000, 0x0, 0x0, 0xaaf020, 0xc00007c370, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0002d0000, 0x0, 0x0, 0xaaf020, 0xc00007c370, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 35 [chan receive]:
main.main.func1(0xaaf020, 0xc00007c370)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 11 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 39 [runnable]:
compress/flate.(*compressor).deflate(0xc000580000)
/usr/local/go/src/compress/flate/deflate.go:429 +0x251
compress/flate.(*compressor).write(0xc000580000, 0xc000516000, 0x14e, 0x1000, 0x1000, 0xe38ce854, 0x61)
/usr/local/go/src/compress/flate/deflate.go:554 +0x85
compress/flate.(*Writer).Write(...)
/usr/local/go/src/compress/flate/deflate.go:712
compress/gzip.(*Writer).Write(0xc0000e49a0, 0xc000516000, 0x14e, 0x1000, 0xc000095610, 0xc000095610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:196 +0xc5
bufio.(*Writer).Flush(0xc00022af00, 0xc0000956d0, 0xc000095620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc00022af00, 0xc0000957c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc0000e49a0, 0xc0000d0c30, 0x14e, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc0000d0c30, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7ff1f1252378, 0xc00029e4b0, 0xc0002f8000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc000282a10, 0x7ff1f1252378, 0xc00029e4b0, 0xc0002f8000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7ff1f1252378, 0xc00029e4b0, 0xc0002f8000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc00028e9f0, 0x7ff1f1252378, 0xc00029e4b0, 0xc0002f8000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0002d00e0, 0xc0002f8000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc00028eb70, 0xab7900, 0xc0002d00e0, 0xc0002f8000)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0002d00e0, 0xc0002f8000)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0002d0000, 0xab7900, 0xc0002d00e0, 0xc0002f8000)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0002e2000, 0xab8818, 0xc0002962c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 40 [IO wait]:
internal/poll.runtime_pollWait(0x7ff1f1436e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0002cc118, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0002cc100, 0xc00028ee21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0002cc100, 0xc00028ee21, 0x1, 0x1, 0x461f80, 0x461f80, 0xc00028a540)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc000290098, 0xc00028ee21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc00028ee10)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 15 [IO wait]:
internal/poll.runtime_pollWait(0x7ff1f1436d48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000108618, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000108600, 0xc00027a000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000108600, 0xc00027a000, 0x1000, 0x1000, 0x439c3c, 0xc0002ebc38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00000e1f0, 0xc00027a000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc00023c360, 0xc00027a000, 0x1000, 0x1000, 0xc0002ce180, 0xc0002ebd40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc00028ad80)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc00028ad80, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc00023c360)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 16 [select]:
net/http.(*persistConn).writeLoop(0xc00023c360)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-06T02:09:50.307Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-06T02:09:50.308Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-06T02:09:50.308Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-06T02:09:50.308Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-06T02:09:50.308Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-06T02:09:50.308Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc00005d800)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc00005d800)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc000331f01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f37fe4a2018, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000176818, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc000176800, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc000176800, 0xb9d7595dbf2d401, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc000125080, 0x62edcd72, 0xc000187b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc000125080, 0xc000187b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0002a0000, 0xab76f0, 0xc000125080, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc000125080, 0xc0002a0000, 0x0, 0x0, 0xaaf020, 0xc000108eb0, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0002a0000, 0x0, 0x0, 0xaaf020, 0xc000108eb0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 36 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 27 [chan receive]:
main.main.func1(0xaaf020, 0xc000108eb0)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 31 [runnable]:
compress/flate.(*compressor).findMatch(0xc0006a2000, 0x21, 0xe, 0x3, 0x169, 0x4, 0x13, 0xc0000e0101)
/usr/local/go/src/compress/flate/deflate.go:233 +0x37e
compress/flate.(*compressor).deflate(0xc0006a2000)
/usr/local/go/src/compress/flate/deflate.go:443 +0x826
compress/flate.(*compressor).write(0xc0006a2000, 0xc0000e0000, 0x14e, 0x1000, 0x1000, 0x86da134d, 0x61)
/usr/local/go/src/compress/flate/deflate.go:554 +0x85
compress/flate.(*Writer).Write(...)
/usr/local/go/src/compress/flate/deflate.go:712
compress/gzip.(*Writer).Write(0xc0004ac160, 0xc0000e0000, 0x14e, 0x1000, 0xc00008f610, 0xc00008f610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:196 +0xc5
bufio.(*Writer).Flush(0xc0004ae3c0, 0xc00008f6d0, 0xc00008f620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc0004ae3c0, 0xc00008f7c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc0004ac160, 0xc000108320, 0x14e, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc000108320, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f37fe4c1ff8, 0xc0000fe320, 0xc0001da000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc0002960e0, 0x7f37fe4c1ff8, 0xc0000fe320, 0xc0001da000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f37fe4c1ff8, 0xc0000fe320, 0xc0001da000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0002983f0, 0x7f37fe4c1ff8, 0xc0000fe320, 0xc0001da000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0002a01c0, 0xc0001da000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc000298570, 0xab7900, 0xc0002a01c0, 0xc0001da000)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0002a01c0, 0xc0001da000)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0002a0000, 0xab7900, 0xc0002a01c0, 0xc0001da000)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0001d7e00, 0xab8818, 0xc000139840)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 61 [IO wait]:
internal/poll.runtime_pollWait(0x7f37fe4a1f30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000176898, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000176880, 0xc000298821, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000176880, 0xc000298821, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc000132418, 0xc000298821, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc000298810)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 87 [IO wait]:
internal/poll.runtime_pollWait(0x7f37fe4a1e48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000a8198, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0000a8180, 0xc0001ba000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0000a8180, 0xc0001ba000, 0x1000, 0x1000, 0x439c3c, 0xc000110c38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc000318020, 0xc0001ba000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc00047a5a0, 0xc0001ba000, 0x1000, 0x1000, 0xc0002161e0, 0xc000110d40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc0001344e0)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc0001344e0, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc00047a5a0)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 88 [select]:
net/http.(*persistConn).writeLoop(0xc00047a5a0)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-06T05:12:51.565Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-06T05:12:51.567Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-06T05:12:51.567Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-06T05:12:51.567Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-06T05:12:51.567Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-06T05:12:51.568Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc00005dc00)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc00005dc00)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc000397f01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait, 4 minutes]:
internal/poll.runtime_pollWait(0x7f09860def18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000a8398, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc0000a8380, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc0000a8380, 0x7e13312884b90c01, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc000097200, 0x62edf856, 0xc000167b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc000097200, 0xc000167b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc00029e000, 0xab76f0, 0xc000097200, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc000097200, 0xc00029e000, 0x0, 0x0, 0xaaf020, 0xc0000b4280, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc00029e000, 0x0, 0x0, 0xaaf020, 0xc0000b4280, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 10 [syscall, 4 minutes]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 23 [chan receive, 4 minutes]:
main.main.func1(0xaaf020, 0xc0000b4280)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 27 [select]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc00007c960, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:513 +0xb65
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f098611e3b8, 0xc0002dc230, 0xc0001bc100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc0000e4c40, 0x7f098611e3b8, 0xc0002dc230, 0xc0001bc100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f098611e3b8, 0xc0002dc230, 0xc0001bc100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0000a3a10, 0x7f098611e3b8, 0xc0002dc230, 0xc0001bc100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc00029e2a0, 0xc0001bc100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0000a3b90, 0xab7900, 0xc00029e2a0, 0xc0001bc100)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc00029e2a0, 0xc0001bc100)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc00029e000, 0xab7900, 0xc00029e2a0, 0xc0001bc100)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0000bc8c0, 0xab8818, 0xc0000de540)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 114 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0x7f09860dee30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000a8418, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0000a8400, 0xc0000a3e41, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0000a8400, 0xc0000a3e41, 0x1, 0x1, 0xe0f860, 0xa32700, 0x1000000000001)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000a0158, 0xc0000a3e41, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0000a3e30)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 111 [select, 1 minutes]:
net/http.(*persistConn).writeLoop(0xc0000f2000)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
goroutine 92 [runnable]:
strings.TrimSpace(0xc0004bb703, 0x30, 0xa04cc3, 0x1)
/usr/local/go/src/strings/strings.go:867 +0x1ab
main.splitkv(0xc0004bb703, 0x33, 0xe, 0x0, 0xc0004bb701, 0x1)
/app/apache_exporter.go:250 +0xb2
main.(*Exporter).collect(0xc0000ec870, 0xc00007a2a0, 0x0, 0x0)
/app/apache_exporter.go:322 +0x60d
main.(*Exporter).Collect(0xc0000ec870, 0xc00007a2a0)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 110 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0x7f09860dec60, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a198, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a180, 0xc00016b000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a180, 0xc00016b000, 0x1000, 0x1000, 0x439c3c, 0xc00010bc38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000a01f0, 0xc00016b000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0000f2000, 0xc00016b000, 0x1000, 0x1000, 0xc0000ee480, 0xc00010bd40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc0002d6540)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc0002d6540, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0000f2000)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 116 [semacquire, 1 minutes]:
sync.runtime_Semacquire(0xc000022248)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc000022240)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc000022240, 0xc00007a2a0, 0xc00007a300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:463 +0x2b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
[ OK ]
level=info ts=2022-08-06T08:09:48.233Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-06T08:09:48.236Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-06T08:09:48.236Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-06T08:09:48.236Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-06T08:09:48.236Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-06T08:09:48.237Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000400400)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000400400)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc00021c180)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7efd388d1f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00024c098, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00024c080, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00024c080, 0x1ab250a912483301, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc0002008d0, 0x62ee21d2, 0xc00015fb48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc0002008d0, 0xc00015fb98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc000250000, 0xab76f0, 0xc0002008d0, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc0002008d0, 0xc000250000, 0x0, 0x0, 0xaaf020, 0xc0000bc370, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc000250000, 0x0, 0x0, 0xaaf020, 0xc0000bc370, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 36 [chan receive]:
main.main.func1(0xaaf020, 0xc0000bc370)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 24 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 40 [runnable]:
hash/crc32.Update(0x7efd00000000, 0xc000138000, 0xc0002d2000, 0xef, 0x1000, 0x0)
/usr/local/go/src/hash/crc32/crc32.go:214 +0x15a
compress/gzip.(*Writer).Write(0xc0000e2160, 0xc0002d2000, 0xef, 0x1000, 0x0, 0xc000095610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:195 +0x85
bufio.(*Writer).Flush(0xc00011b940, 0xc0000956d0, 0xc000095620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc00011b940, 0xc0000957c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc0000e2160, 0xc0000bc910, 0xef, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc0000bc910, 0xc000201290, 0xa30c88)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7efd38891278, 0xc000206500, 0xc000278000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc00020aa10, 0x7efd38891278, 0xc000206500, 0xc000278000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7efd38891278, 0xc000206500, 0xc000278000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0002109f0, 0x7efd38891278, 0xc000206500, 0xc000278000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0002500e0, 0xc000278000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc000210b70, 0xab7900, 0xc0002500e0, 0xc000278000)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0002500e0, 0xc000278000)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc000250000, 0xab7900, 0xc0002500e0, 0xc000278000)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc000262000, 0xab8818, 0xc0002182c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 41 [IO wait]:
internal/poll.runtime_pollWait(0x7efd388d1e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00024c118, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00024c100, 0xc000210e21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00024c100, 0xc000210e21, 0x1, 0x1, 0x461f80, 0x461f80, 0xc000204540)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc000212098, 0xc000210e21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc000210e10)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 27 [IO wait]:
internal/poll.runtime_pollWait(0x7efd388d1d48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000b0418, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0000b0400, 0xc0002ce000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0000b0400, 0xc0002ce000, 0x1000, 0x1000, 0x439c3c, 0xc000103c38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0002120d0, 0xc0002ce000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc000120d80, 0xc0002ce000, 0x1000, 0x1000, 0xc00024e180, 0xc000103d40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc000204d80)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc000204d80, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc000120d80)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 28 [select]:
net/http.(*persistConn).writeLoop(0xc000120d80)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-06T11:09:51.959Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-06T11:09:51.960Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-06T11:09:51.960Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-06T11:09:51.960Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-06T11:09:51.961Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
level=info ts=2022-08-06T11:09:51.960Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000108800)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000108800)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc0003b5f01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f8a4509bf18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00012a398, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00012a380, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00012a380, 0x3e78ae4d1d36ad01, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc000119278, 0x62ee4c02, 0xc00018bb48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc000119278, 0xc00018bb98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0002a6000, 0xab76f0, 0xc000119278, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc000119278, 0xc0002a6000, 0x0, 0x0, 0xaaf020, 0xc000114370, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0002a6000, 0x0, 0x0, 0xaaf020, 0xc000114370, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 51 [IO wait]:
internal/poll.runtime_pollWait(0x7f8a4509be30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00012a418, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00012a400, 0xc000125e41, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00012a400, 0xc000125e41, 0x1, 0x1, 0x1, 0xc0000547a8, 0x82ae3d)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc000122150, 0xc000125e41, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc000125e30)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 20 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 41 [chan receive]:
main.main.func1(0xaaf020, 0xc000114370)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 45 [runnable]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc0000c8910, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:486 +0x6ed
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f8a450573b8, 0xc00020c140, 0xc0001e2500)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc000164c40, 0x7f8a450573b8, 0xc00020c140, 0xc0001e2500)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f8a450573b8, 0xc00020c140, 0xc0001e2500)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc000125a10, 0x7f8a450573b8, 0xc00020c140, 0xc0001e2500)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0003060e0, 0xc0001e2500)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc000125b90, 0xab7900, 0xc0003060e0, 0xc0001e2500)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0003060e0, 0xc0001e2500)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0002a6000, 0xab7900, 0xc0003060e0, 0xc0001e2500)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc00013c8c0, 0xab8818, 0xc00015e540)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 27 [runnable]:
github.com/prometheus/client_golang/prometheus.NewConstMetric(0xc00011c000, 0x2, 0x4022000000000000, 0x0, 0x0, 0x0, 0x0, 0x1, 0x2, 0xc000210140)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/value.go:87 +0x1d4
github.com/prometheus/client_golang/prometheus.MustNewConstMetric(...)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/value.go:105
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect(0xc00012a000, 0xc000134fc0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:294 +0xf6
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:457 +0x5ce
goroutine 28 [semacquire]:
sync.runtime_Semacquire(0xc0000b8e78)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc0000b8e70)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc0000b8e70, 0xc000134fc0, 0xc0002001e0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:463 +0x2b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 29 [runnable]:
syscall.fstatat(0xffffffffffffff9c, 0xa05a30, 0x5, 0xc0001ea6b8, 0x0, 0x0, 0x0)
/usr/local/go/src/syscall/zsyscall_linux_amd64.go:1434 +0x1dc
syscall.Stat(...)
/usr/local/go/src/syscall/syscall_linux_amd64.go:66
os.statNolog.func1(...)
/usr/local/go/src/os/stat_unix.go:32
os.ignoringEINTR(...)
/usr/local/go/src/os/file_posix.go:245
os.statNolog(0xa05a30, 0x5, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/os/stat_unix.go:31 +0x77
os.Stat(0xa05a30, 0x5, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/os/stat.go:13 +0x4d
github.com/prometheus/procfs/internal/fs.NewFS(0xa05a30, 0x5, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/internal/fs/fs.go:40 +0x3f
github.com/prometheus/procfs.NewFS(...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/fs.go:38
github.com/prometheus/procfs.NewProc(0xe9033, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/proc.go:54 +0x3a
github.com/prometheus/client_golang/prometheus.(*processCollector).processCollect(0xc0000c8960, 0xc000134fc0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector_other.go:34 +0x1a5
github.com/prometheus/client_golang/prometheus.(*processCollector).Collect(0xc0000c8960, 0xc000134fc0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector.go:138 +0x33
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 81 [runnable]:
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect.func1(0xc00012a000, 0xc00012f000, 0xc0003b8000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:285
created by github.com/prometheus/client_golang/prometheus.(*goCollector).Collect
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:285 +0xa9
[ OK ]
level=info ts=2022-08-06T14:09:51.886Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-06T14:09:51.887Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-06T14:09:51.887Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-06T14:09:51.887Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-06T14:09:51.887Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-06T14:09:51.887Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc0006a2000)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc0006a2000)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc000311f01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f9ccde67f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000108598, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc000108580, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc000108580, 0x836e2ed65d4ee301, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc0000b6cf0, 0x62ee7632, 0xc000113b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc0000b6cf0, 0xc000113b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc000280000, 0xab76f0, 0xc0000b6cf0, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc0000b6cf0, 0xc000280000, 0x0, 0x0, 0xaaf020, 0xc00007c4b0, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc000280000, 0x0, 0x0, 0xaaf020, 0xc00007c4b0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 23 [chan receive]:
main.main.func1(0xaaf020, 0xc00007c4b0)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 11 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 27 [runnable]:
compress/flate.(*compressor).deflate(0xc000600000)
/usr/local/go/src/compress/flate/deflate.go:429 +0x251
compress/flate.(*compressor).write(0xc000600000, 0xc00053e000, 0x14e, 0x1000, 0x1000, 0xd45aa802, 0x61)
/usr/local/go/src/compress/flate/deflate.go:554 +0x85
compress/flate.(*Writer).Write(...)
/usr/local/go/src/compress/flate/deflate.go:712
compress/gzip.(*Writer).Write(0xc0000e4a50, 0xc00053e000, 0x14e, 0x1000, 0xc00009b610, 0xc00009b610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:196 +0xc5
bufio.(*Writer).Flush(0xc00047c2c0, 0xc00009b6d0, 0xc00009b620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc00047c2c0, 0xc00009b7c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc0000e4a50, 0xc00007c730, 0x14e, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc00007c730, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f9ccde7d4f8, 0xc0000d0f50, 0xc00016c200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc000176310, 0x7f9ccde7d4f8, 0xc0000d0f50, 0xc00016c200)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f9ccde7d4f8, 0xc0000d0f50, 0xc00016c200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc000174840, 0x7f9ccde7d4f8, 0xc0000d0f50, 0xc00016c200)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0002800e0, 0xc00016c200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0001749c0, 0xab7900, 0xc0002800e0, 0xc00016c200)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0002800e0, 0xc00016c200)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc000280000, 0xab7900, 0xc0002800e0, 0xc00016c200)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc000168a00, 0xab8818, 0xc0000c9440)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 28 [IO wait]:
internal/poll.runtime_pollWait(0x7f9ccde67e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000108618, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000108600, 0xc000174c71, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000108600, 0xc000174c71, 0x1, 0x1, 0x461f80, 0x461f80, 0xc0000c7260)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000c42b8, 0xc000174c71, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc000174c60)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 36 [IO wait]:
internal/poll.runtime_pollWait(0x7f9ccde67d48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000108718, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000108700, 0xc000258000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000108700, 0xc000258000, 0x1000, 0x1000, 0x439c3c, 0xc00021dc38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc000220038, 0xc000258000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0001a27e0, 0xc000258000, 0x1000, 0x1000, 0xc00009c480, 0xc00021dd40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc00022c480)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc00022c480, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0001a27e0)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 37 [select]:
net/http.(*persistConn).writeLoop(0xc0001a27e0)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-06T17:09:48.595Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-06T17:09:48.596Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-06T17:09:48.596Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-06T17:09:48.596Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-06T17:09:48.596Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-06T17:09:48.597Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc00005d800)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc00005d800)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc0002c3f01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f4d47de6f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00034c098, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00034c080, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00034c080, 0x14bef9b73a360301, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc0003068a0, 0x62eea062, 0xc000113b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc0003068a0, 0xc000113b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc000350000, 0xab76f0, 0xc0003068a0, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc0003068a0, 0xc000350000, 0x0, 0x0, 0xaaf020, 0xc0000c8dc0, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc000350000, 0x0, 0x0, 0xaaf020, 0xc0000c8dc0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 8 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 51 [chan receive]:
main.main.func1(0xaaf020, 0xc0000c8dc0)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 55 [runnable]:
compress/flate.(*compressor).initDeflate(...)
/usr/local/go/src/compress/flate/deflate.go:372
compress/flate.(*compressor).init(0xc000604000, 0x7f4d47afe358, 0xc00031e4b0, 0xffffffffffffffff, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:602 +0x5d2
compress/flate.NewWriter(0x7f4d47afe358, 0xc00031e4b0, 0xffffffffffffffff, 0xa, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:671 +0x65
compress/gzip.(*Writer).Write(0xc000480160, 0xc00055e000, 0xef, 0x1000, 0x0, 0xc000375610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:191 +0x305
bufio.(*Writer).Flush(0xc000316b80, 0xc0003756d0, 0xc000375620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc000316b80, 0xc0003757c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc000480160, 0xc0002142d0, 0xef, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc0002142d0, 0xc000307380, 0xa30c88)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f4d47bfe278, 0xc00031e4b0, 0xc000380000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc000302a10, 0x7f4d47bfe278, 0xc00031e4b0, 0xc000380000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f4d47bfe278, 0xc00031e4b0, 0xc000380000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc00030e9f0, 0x7f4d47bfe278, 0xc00031e4b0, 0xc000380000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0003500e0, 0xc000380000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc00030eb70, 0xab7900, 0xc0003500e0, 0xc000380000)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0003500e0, 0xc000380000)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc000350000, 0xab7900, 0xc0003500e0, 0xc000380000)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc000362000, 0xab8818, 0xc0003162c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 56 [IO wait]:
internal/poll.runtime_pollWait(0x7f4d47de6e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00034c118, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00034c100, 0xc00030ee21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00034c100, 0xc00030ee21, 0x1, 0x1, 0x461f80, 0x461f80, 0xc00030a540)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0003100a0, 0xc00030ee21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc00030ee10)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 25 [IO wait]:
internal/poll.runtime_pollWait(0x7f4d47de6d48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000108818, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000108800, 0xc0002de000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000108800, 0xc0002de000, 0x1000, 0x1000, 0x439c3c, 0xc00009cc38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00000e088, 0xc0002de000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0000caea0, 0xc0002de000, 0x1000, 0x1000, 0xc00040a000, 0xc00009cd40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc000200660)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc000200660, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0000caea0)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 26 [select]:
net/http.(*persistConn).writeLoop(0xc0000caea0)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-06T20:09:54.182Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-06T20:09:54.183Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-06T20:09:54.183Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-06T20:09:54.183Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-06T20:09:54.183Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-06T20:09:54.183Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000214c00)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000214c00)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc000291f01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7fb6bcfdbf18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a898, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00002a880, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00002a880, 0xc0cff257693dc801, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00000ce70, 0x62eeca92, 0xc000167b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00000ce70, 0xc000167b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0001ee000, 0xab76f0, 0xc00000ce70, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00000ce70, 0xc0001ee000, 0x0, 0x0, 0xaaf020, 0xc00007cd20, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0001ee000, 0x0, 0x0, 0xaaf020, 0xc00007cd20, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 12 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 15 [chan receive]:
main.main.func1(0xaaf020, 0xc00007cd20)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 51 [runnable]:
compress/flate.(*compressor).initDeflate(...)
/usr/local/go/src/compress/flate/deflate.go:374
compress/flate.(*compressor).init(0xc000584000, 0x7fb6bcedf380, 0xc00007d270, 0xffffffffffffffff, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:602 +0x629
compress/flate.NewWriter(0x7fb6bcedf380, 0xc00007d270, 0xffffffffffffffff, 0xa, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:671 +0x65
compress/gzip.(*Writer).Write(0xc000404160, 0xc0004de000, 0xef, 0x1000, 0x0, 0xc00028f610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:191 +0x305
bufio.(*Writer).Flush(0xc00022c740, 0xc00028f6d0, 0xc00028f620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc00022c740, 0xc00028f7c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc000404160, 0xc0000b45a0, 0xef, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc0000b45a0, 0xc00031eb58, 0xa30c88)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7fb6bcff4e78, 0xc00007d270, 0xc0001bc300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc0001cb8f0, 0x7fb6bcff4e78, 0xc00007d270, 0xc0001bc300)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7fb6bcff4e78, 0xc00007d270, 0xc0001bc300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0001c9830, 0x7fb6bcff4e78, 0xc00007d270, 0xc0001bc300)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0001ee0e0, 0xc0001bc300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0001c99b0, 0xab7900, 0xc0001ee0e0, 0xc0001bc300)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0001ee0e0, 0xc0001bc300)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0001ee000, 0xab7900, 0xc0001ee0e0, 0xc0001bc300)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0001b9360, 0xab8818, 0xc0001236c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 52 [IO wait]:
internal/poll.runtime_pollWait(0x7fb6bcfdbe30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a918, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a900, 0xc0001c9c61, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a900, 0xc0001c9c61, 0x1, 0x1, 0x461f80, 0x461f80, 0xc00007b860)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00000e370, 0xc0001c9c61, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0001c9c50)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 68 [IO wait]:
internal/poll.runtime_pollWait(0x7fb6bcfdbd48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000a8118, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0000a8100, 0xc00034c000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0000a8100, 0xc00034c000, 0x1000, 0x1000, 0x439c3c, 0xc00010fc38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000a00f0, 0xc00034c000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc000128fc0, 0xc00034c000, 0x1000, 0x1000, 0xc000402000, 0xc00010fd40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc000200600)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc000200600, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc000128fc0)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 69 [select]:
net/http.(*persistConn).writeLoop(0xc000128fc0)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-06T23:09:49.372Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-06T23:09:49.373Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-06T23:09:49.373Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-06T23:09:49.373Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-06T23:09:49.373Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-06T23:09:49.374Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000524400)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000524400)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc000001980)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait, 2 minutes]:
internal/poll.runtime_pollWait(0x7f442b742f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a618, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00002a600, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00002a600, 0xe7f6b5c697056401, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00000cd98, 0x62eef4c2, 0xc00015fb48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00000cd98, 0xc00015fb98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0001d2000, 0xab76f0, 0xc00000cd98, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00000cd98, 0xc0001d2000, 0x0, 0x0, 0xaaf020, 0xc0000bc410, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0001d2000, 0x0, 0x0, 0xaaf020, 0xc0000bc410, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 13 [chan receive, 2 minutes]:
main.main.func1(0xaaf020, 0xc0000bc410)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 22 [syscall, 2 minutes]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 33 [runnable]:
compress/flate.newHuffmanBitWriter(...)
/usr/local/go/src/compress/flate/huffman_bit_writer.go:99
compress/flate.(*compressor).init(0xc0007f2000, 0x7f442b789658, 0xc00007c190, 0xffffffffffffffff, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:579 +0xa9
compress/flate.NewWriter(0x7f442b789658, 0xc00007c190, 0xffffffffffffffff, 0xa, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:671 +0x65
compress/gzip.(*Writer).Write(0xc0000fe580, 0xc000162000, 0xef, 0x1000, 0x0, 0xc000095610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:191 +0x305
bufio.(*Writer).Flush(0xc0000d06c0, 0xc0000956d0, 0xc000095620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc0000d06c0, 0xc0000957c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc0000fe580, 0xc0000bcdc0, 0xef, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc0000bcdc0, 0xc00000cc48, 0xa30c88)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f442b755c38, 0xc00007c190, 0xc000470300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc0001c8310, 0x7f442b755c38, 0xc00007c190, 0xc000470300)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f442b755c38, 0xc00007c190, 0xc000470300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0001c6840, 0x7f442b755c38, 0xc00007c190, 0xc000470300)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0001d20e0, 0xc000470300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0001c69c0, 0xab7900, 0xc0001d20e0, 0xc000470300)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0001d20e0, 0xc000470300)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0001d2000, 0xab7900, 0xc0001d20e0, 0xc000470300)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0001b0b40, 0xab8818, 0xc00011b440)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 71 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0x7f442b742e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a698, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a680, 0xc0001c6c71, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a680, 0xc0001c6c71, 0x1, 0x1, 0xc00007ba40, 0x0, 0x0)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00000e2d0, 0xc0001c6c71, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0001c6c60)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 79 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0x7f442b742c60, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a118, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a100, 0xc00018f000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a100, 0xc00018f000, 0x1000, 0x1000, 0x439c3c, 0xc000107c38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00059c000, 0xc00018f000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0000d8120, 0xc00018f000, 0x1000, 0x1000, 0xc00007e480, 0xc000107d40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc0000ba000)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc0000ba000, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0000d8120)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 80 [select, 1 minutes]:
net/http.(*persistConn).writeLoop(0xc0000d8120)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-07T02:09:51.056Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-07T02:09:51.058Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-07T02:09:51.058Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-07T02:09:51.058Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-07T02:09:51.058Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-07T02:09:51.058Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000252c00)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000252c00)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000031000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc00008be00)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait, 11 minutes]:
internal/poll.runtime_pollWait(0x7f889abf4f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000de098, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc0000de080, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc0000de080, 0xd19ed2096af93101, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc0000a8930, 0x62ef1ef2, 0xc00015fb48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc0000a8930, 0xc00015fb98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0000e2000, 0xab76f0, 0xc0000a8930, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc0000a8930, 0xc0000e2000, 0x0, 0x0, 0xaaf020, 0xc00007cd20, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0000e2000, 0x0, 0x0, 0xaaf020, 0xc00007cd20, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 36 [chan receive, 11 minutes]:
main.main.func1(0xaaf020, 0xc00007cd20)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 12 [syscall, 11 minutes]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 40 [select, 1 minutes]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc00007c960, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:513 +0xb65
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f889ac38378, 0xc000214a00, 0xc0001b4300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc0000b2a10, 0x7f889ac38378, 0xc000214a00, 0xc0001b4300)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f889ac38378, 0xc000214a00, 0xc0001b4300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0000b89f0, 0x7f889ac38378, 0xc000214a00, 0xc0001b4300)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0000e2380, 0xc0001b4300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0000b8b70, 0xab7900, 0xc0000e2380, 0xc0001b4300)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0000e2380, 0xc0001b4300)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0000e2000, 0xab7900, 0xc0000e2380, 0xc0001b4300)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0000f4000, 0xab8818, 0xc0000be2c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 163 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0x7f889abf4e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000de118, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0000de100, 0xc0000b8e21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0000de100, 0xc0000b8e21, 0x1, 0x1, 0xe0f860, 0xa32700, 0xc000625fa8)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000aa0b8, 0xc0000b8e21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0000b8e10)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 165 [semacquire, 1 minutes]:
sync.runtime_Semacquire(0xc0003122c8)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc0003122c0)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc0003122c0, 0xc00031e540, 0xc00031e5a0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:463 +0x2b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 166 [runnable]:
compress/flate.(*decompressor).huffSym(0xc000281300, 0xc000281328, 0x34, 0x0, 0x0)
/usr/local/go/src/compress/flate/inflate.go:707 +0x273
compress/flate.(*decompressor).huffmanBlock(0xc000281300)
/usr/local/go/src/compress/flate/inflate.go:494 +0xd2
compress/flate.(*decompressor).Read(0xc000281300, 0xc0005ce000, 0x8000, 0x8000, 0xa000, 0xb585172b, 0x0)
/usr/local/go/src/compress/flate/inflate.go:347 +0x79
compress/gzip.(*Reader).Read(0xc00012a840, 0xc0005ce000, 0x8000, 0x8000, 0x2000, 0x0, 0x0)
/usr/local/go/src/compress/gzip/gunzip.go:251 +0x87
net/http.(*gzipReader).Read(0xc000318160, 0xc0005ce000, 0x8000, 0x8000, 0x2000, 0x0, 0x0)
/usr/local/go/src/net/http/transport.go:2828 +0xcd
io.ReadAll(0x7f889a98d028, 0xc000318160, 0xc000318160, 0x7f889a98d028, 0xc000318160, 0x0, 0xab26f0)
/usr/local/go/src/io/io.go:633 +0xdf
io/ioutil.ReadAll(...)
/usr/local/go/src/io/ioutil/ioutil.go:27
main.(*Exporter).collect(0xc0000c2000, 0xc00031e540, 0x0, 0x0)
/app/apache_exporter.go:298 +0x3c8
main.(*Exporter).Collect(0xc0000c2000, 0xc00031e540)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 169 [IO wait]:
internal/poll.runtime_pollWait(0x7f889abf4d48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000de318, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0000de300, 0xc0001c4000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0000de300, 0xc0001c4000, 0x1000, 0x1000, 0x439c3c, 0xc000104c38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00000e348, 0xc0001c4000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc000226000, 0xc0001c4000, 0x1000, 0x1000, 0xc00007e660, 0xc000104d40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc00007a960)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc00007a960, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc000226000)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 170 [select, 1 minutes]:
net/http.(*persistConn).writeLoop(0xc000226000)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-07T05:12:30.175Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-07T05:12:30.176Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-07T05:12:30.176Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-07T05:12:30.176Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-07T05:12:30.177Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
level=info ts=2022-08-07T05:12:30.178Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000622000)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000622000)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc000093f01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7fed47be7f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a398, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00002a380, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00002a380, 0xc33bcaa5b20be501, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00000cab0, 0x62ef49d6, 0xc000113b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00000cab0, 0xc000113b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc000270000, 0xab76f0, 0xc00000cab0, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00000cab0, 0xc000270000, 0x0, 0x0, 0xaaf020, 0xc00007c320, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc000270000, 0x0, 0x0, 0xaaf020, 0xc00007c320, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 13 [chan receive]:
main.main.func1(0xaaf020, 0xc00007c320)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 10 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 49 [runnable]:
runtime.Gosched(...)
/usr/local/go/src/runtime/proc.go:292
compress/flate.(*compressor).initDeflate(...)
/usr/local/go/src/compress/flate/deflate.go:374
compress/flate.(*compressor).init(0xc000580000, 0x7fed47984ad8, 0xc00029a0a0, 0xffffffffffffffff, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:602 +0x629
compress/flate.NewWriter(0x7fed47984ad8, 0xc00029a0a0, 0xffffffffffffffff, 0xa, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:671 +0x65
compress/gzip.(*Writer).Write(0xc000310160, 0xc000514000, 0xef, 0x1000, 0x0, 0xc0002c1610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:191 +0x305
bufio.(*Writer).Flush(0xc0001b4880, 0xc0002c16d0, 0xc0002c1620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc0001b4880, 0xc0002c17c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc000310160, 0xc0000c8d20, 0xef, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc0000c8d20, 0xc0001835c0, 0xa30c88)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7fed47b1c0a8, 0xc00029a0a0, 0xc0002cc000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc00026e000, 0x7fed47b1c0a8, 0xc00029a0a0, 0xc0002cc000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7fed47b1c0a8, 0xc00029a0a0, 0xc0002cc000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0002099e0, 0x7fed47b1c0a8, 0xc00029a0a0, 0xc0002cc000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0002dc000, 0xc0002cc000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc000209b60, 0xab7900, 0xc0002dc000, 0xc0002cc000)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0002dc000, 0xc0002cc000)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc000270000, 0xab7900, 0xc0002dc000, 0xc0002cc000)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc000298000, 0xab8818, 0xc0002b0000)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 50 [IO wait]:
internal/poll.runtime_pollWait(0x7fed47be7e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000292018, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000292000, 0xc0002940d1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000292000, 0xc0002940d1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc000296000, 0xc0002940d1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0002940c0)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 68 [IO wait]:
internal/poll.runtime_pollWait(0x7fed47be7d48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000108598, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000108580, 0xc0003b6000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000108580, 0xc0003b6000, 0x1000, 0x1000, 0x439c3c, 0xc00009ac38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00000e1a8, 0xc0003b6000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0002446c0, 0xc0003b6000, 0x1000, 0x1000, 0xc0002d80c0, 0xc00009ad40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc00019e780)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc00019e780, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0002446c0)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 69 [select]:
net/http.(*persistConn).writeLoop(0xc0002446c0)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-07T08:09:48.162Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-07T08:09:48.163Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-07T08:09:48.163Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-07T08:09:48.163Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-07T08:09:48.163Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
level=info ts=2022-08-07T08:09:48.163Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc00020ec00)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc00020ec00)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc0003adf01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait, 7 minutes]:
internal/poll.runtime_pollWait(0x7fe9f70b0f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000108598, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc000108580, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc000108580, 0xa4baa3e38a5e5901, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc0000aed08, 0x62ef7352, 0xc000113b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc0000aed08, 0xc000113b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc000280000, 0xab76f0, 0xc0000aed08, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc0000aed08, 0xc000280000, 0x0, 0x0, 0xaaf020, 0xc00007c460, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc000280000, 0x0, 0x0, 0xaaf020, 0xc00007c460, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 21 [syscall, 7 minutes]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 24 [chan receive, 7 minutes]:
main.main.func1(0xaaf020, 0xc00007c460)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 28 [select]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc0000c8910, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:513 +0xb65
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7fe9f70c64f8, 0xc0002f80f0, 0xc00019c100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc000176310, 0x7fe9f70c64f8, 0xc0002f80f0, 0xc00019c100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7fe9f70c64f8, 0xc0002f80f0, 0xc00019c100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc000174840, 0x7fe9f70c64f8, 0xc0002f80f0, 0xc00019c100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0002801c0, 0xc00019c100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0001749c0, 0xab7900, 0xc0002801c0, 0xc00019c100)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0002801c0, 0xc00019c100)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc000280000, 0xab7900, 0xc0002801c0, 0xc00019c100)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc000166a00, 0xab8818, 0xc0000c1440)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 149 [select]:
net/http.(*persistConn).writeLoop(0xc0000ca360)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
goroutine 148 [IO wait]:
internal/poll.runtime_pollWait(0x7fe9f70b0d48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000108098, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000108080, 0xc0001db000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000108080, 0xc0001db000, 0x1000, 0x1000, 0x1, 0x0, 0xc000056c88)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0002b4020, 0xc0001db000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0000ca360, 0xc0001db000, 0x1000, 0x1000, 0x405690, 0x60, 0x0)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc0000be660)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc0000be660, 0x1, 0xc000094300, 0xc000056d90, 0x44912c, 0xc000094478, 0x18)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0000ca360)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 135 [IO wait]:
internal/poll.runtime_pollWait(0x7fe9f70b0e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000108618, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000108600, 0xc000174c71, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000108600, 0xc000174c71, 0x1, 0x1, 0xc000539f60, 0x0, 0x0)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000bc2c0, 0xc000174c71, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc000174c60)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 136 [select]:
net/http.(*persistConn).roundTrip(0xc0000ca360, 0xc000224000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/transport.go:2610 +0x765
net/http.(*Transport).roundTrip(0xc00016e500, 0xc0001de100, 0x30, 0x9db900, 0x0)
/usr/local/go/src/net/http/transport.go:592 +0xacb
net/http.(*Transport).RoundTrip(0xc00016e500, 0xc0001de100, 0xc00016e500, 0x0, 0x0)
/usr/local/go/src/net/http/roundtrip.go:17 +0x35
net/http.send(0xc0001de100, 0xaaf4e0, 0xc00016e500, 0x0, 0x0, 0x0, 0xc0002b4008, 0x418257, 0x1, 0x0)
/usr/local/go/src/net/http/client.go:251 +0x454
net/http.(*Client).send(0xc0001743c0, 0xc0001de100, 0x0, 0x0, 0x0, 0xc0002b4008, 0x0, 0x1, 0xc0001de100)
/usr/local/go/src/net/http/client.go:175 +0xff
net/http.(*Client).do(0xc0001743c0, 0xc0001de100, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/client.go:717 +0x45f
net/http.(*Client).Do(...)
/usr/local/go/src/net/http/client.go:585
main.(*Exporter).collect(0xc0001560f0, 0xc00007a120, 0x0, 0x0)
/app/apache_exporter.go:291 +0x177
main.(*Exporter).Collect(0xc0001560f0, 0xc00007a120)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:457 +0x5ce
goroutine 137 [semacquire]:
sync.runtime_Semacquire(0xc000022198)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc000022190)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc000022190, 0xc00007a120, 0xc00007a1e0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:463 +0x2b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
[ OK ]
level=info ts=2022-08-07T11:09:53.265Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-07T11:09:53.266Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-07T11:09:53.266Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-07T11:09:53.266Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-07T11:09:53.266Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-07T11:09:53.266Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc00005d800)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc00005d800)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc000266f00)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait, 3 minutes]:
internal/poll.runtime_pollWait(0x7fe11a26bf18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a598, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00002a580, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00002a580, 0xf0043b19c90d701, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00000c9c0, 0x62ef9d82, 0xc000167b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00000c9c0, 0xc000167b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0001ea000, 0xab76f0, 0xc00000c9c0, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00000c9c0, 0xc0001ea000, 0x0, 0x0, 0xaaf020, 0xc000206230, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0001ea000, 0x0, 0x0, 0xaaf020, 0xc000206230, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 16 [runnable]:
compress/flate.(*compressor).initDeflate(...)
/usr/local/go/src/compress/flate/deflate.go:374
compress/flate.(*compressor).init(0xc000680000, 0x7fe11a16b298, 0xc0002060f0, 0xffffffffffffffff, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:602 +0x629
compress/flate.NewWriter(0x7fe11a16b298, 0xc0002060f0, 0xffffffffffffffff, 0xa, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:671 +0x65
compress/gzip.(*Writer).Write(0xc00013a580, 0xc0001f4000, 0xf0, 0x1000, 0x0, 0xc00028b610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:191 +0x305
bufio.(*Writer).Flush(0xc00023a240, 0xc00028b6d0, 0xc00028b620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc00023a240, 0xc00028b7c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc00013a580, 0xc0004724b0, 0xf0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc0004724b0, 0xc000200900, 0xa30c88)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7fe11a2834f8, 0xc0002060f0, 0xc000262300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc0001d41c0, 0x7fe11a2834f8, 0xc0002060f0, 0xc000262300)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7fe11a2834f8, 0xc0002060f0, 0xc000262300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0001c6e40, 0x7fe11a2834f8, 0xc0002060f0, 0xc000262300)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0001ea1c0, 0xc000262300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0001c6fc0, 0xab7900, 0xc0001ea1c0, 0xc000262300)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0001ea1c0, 0xc000262300)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0001ea000, 0xab7900, 0xc0001ea1c0, 0xc000262300)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0001b7680, 0xab8818, 0xc000123580)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 19 [syscall, 3 minutes]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 12 [chan receive, 3 minutes]:
main.main.func1(0xaaf020, 0xc000206230)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 42 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0x7fe11a26be30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a618, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a600, 0xc0001c7271, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a600, 0xc0001c7271, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00000e340, 0xc0001c7271, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0001c7260)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 113 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0x7fe11a26bc60, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a318, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a300, 0xc0000e3000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a300, 0xc0000e3000, 0x1000, 0x1000, 0x439c3c, 0xc000109c38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0004482d8, 0xc0000e3000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc000256120, 0xc0000e3000, 0x1000, 0x1000, 0xc0002504e0, 0xc000109d40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc0000b2780)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc0000b2780, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc000256120)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 114 [select, 1 minutes]:
net/http.(*persistConn).writeLoop(0xc000256120)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-07T14:09:50.534Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-07T14:09:50.535Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-07T14:09:50.535Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-07T14:09:50.535Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-07T14:09:50.535Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-07T14:09:50.535Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000080800)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000080800)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc000313f01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait, 3 minutes]:
internal/poll.runtime_pollWait(0x7f1d3edbcf18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000256098, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc000256080, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc000256080, 0x694a19c879901, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc0002068b8, 0x62efc7b2, 0xc000167b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc0002068b8, 0xc000167b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc00025a000, 0xab76f0, 0xc0002068b8, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc0002068b8, 0xc00025a000, 0x0, 0x0, 0xaaf020, 0xc00007ce10, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc00025a000, 0x0, 0x0, 0xaaf020, 0xc00007ce10, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 36 [chan receive, 3 minutes]:
main.main.func1(0xaaf020, 0xc00007ce10)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 21 [syscall, 3 minutes]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 40 [runnable]:
hash/crc32.Update(0x7f1d00000000, 0xc000140000, 0xc00016e000, 0xf0, 0x1000, 0x0)
/usr/local/go/src/hash/crc32/crc32.go:214 +0x15a
compress/gzip.(*Writer).Write(0xc00031c0b0, 0xc00016e000, 0xf0, 0x1000, 0x0, 0xc00008f610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:195 +0x85
bufio.(*Writer).Flush(0xc0005ea100, 0xc00008f6d0, 0xc00008f620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc0005ea100, 0xc00008f7c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc00031c0b0, 0xc00047e500, 0xf0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc00047e500, 0xc0002069c0, 0xa30c88)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f1d3ed7c278, 0xc00047e1e0, 0xc0001bc100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc00021aa10, 0x7f1d3ed7c278, 0xc00047e1e0, 0xc0001bc100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f1d3ed7c278, 0xc00047e1e0, 0xc0001bc100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0002209f0, 0x7f1d3ed7c278, 0xc00047e1e0, 0xc0001bc100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc00025a0e0, 0xc0001bc100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc000220b70, 0xab7900, 0xc00025a0e0, 0xc0001bc100)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc00025a0e0, 0xc0001bc100)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc00025a000, 0xab7900, 0xc00025a0e0, 0xc0001bc100)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc00026c000, 0xab8818, 0xc0002282c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 64 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0x7f1d3edbcd48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a198, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a180, 0xc000165000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a180, 0xc000165000, 0x1000, 0x1000, 0x439c3c, 0xc00010ac38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc000222100, 0xc000165000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0001285a0, 0xc000165000, 0x1000, 0x1000, 0xc0002582a0, 0xc00010ad40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc000200240)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc000200240, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0001285a0)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 113 [select, 1 minutes]:
net/http.(*persistConn).writeLoop(0xc0001285a0)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
goroutine 78 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0x7f1d3edbce30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000256118, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000256100, 0xc000220e21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000256100, 0xc000220e21, 0x1, 0x1, 0xc000200060, 0x0, 0x0)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc000222098, 0xc000220e21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc000220e10)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
[ OK ]
level=info ts=2022-08-07T17:09:50.196Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-07T17:09:50.196Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-07T17:09:50.196Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-07T17:09:50.196Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-07T17:09:50.197Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-07T17:09:50.197Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000081000)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000081000)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc000277b00)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait, 2 minutes]:
internal/poll.runtime_pollWait(0x7f676b2d1018, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000264318, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc000264300, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc000264300, 0x170afc674ef1701, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc000208c60, 0x62eff1e2, 0xc000113b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc000208c60, 0xc000113b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0002a6000, 0xab76f0, 0xc000208c60, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc000208c60, 0xc0002a6000, 0x0, 0x0, 0xaaf020, 0xc0002403c0, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0002a6000, 0x0, 0x0, 0xaaf020, 0xc0002403c0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 21 [syscall, 2 minutes]:
os/signal.signal_recv(0x46cda6)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 39 [chan receive, 2 minutes]:
main.main.func1(0xaaf020, 0xc0002403c0)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 43 [select]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc0000c8910, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:513 +0xb65
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f676b12b438, 0xc00007c0a0, 0xc00016a100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc0002927e0, 0x7f676b12b438, 0xc00007c0a0, 0xc00016a100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f676b12b438, 0xc00007c0a0, 0xc00016a100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0002945a0, 0x7f676b12b438, 0xc00007c0a0, 0xc00016a100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0002a60e0, 0xc00016a100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc000294720, 0xab7900, 0xc0002a60e0, 0xc00016a100)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0002a60e0, 0xc00016a100)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0002a6000, 0xab7900, 0xc0002a60e0, 0xc00016a100)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc000229360, 0xab8818, 0xc0002226c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 85 [IO wait]:
internal/poll.runtime_pollWait(0x7f676b2d0e48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000264118, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000264100, 0xc0002b5000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000264100, 0xc0002b5000, 0x1000, 0x1000, 0x439c3c, 0xc0001bbc38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00020a2c0, 0xc0002b5000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc00022a000, 0xc0002b5000, 0x1000, 0x1000, 0xc00026c2a0, 0xc0001bbd40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc000200120)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc000200120, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc00022a000)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 86 [select]:
net/http.(*persistConn).writeLoop(0xc00022a000)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
goroutine 73 [IO wait]:
internal/poll.runtime_pollWait(0x7f676b2d0f30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000264398, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000264380, 0xc0002949d1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000264380, 0xc0002949d1, 0x1, 0x1, 0xc000602f30, 0x465300, 0x10000c000302300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00020a210, 0xc0002949d1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0002949c0)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 75 [semacquire]:
sync.runtime_Semacquire(0xc00030e028)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc00030e020)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc00030e020, 0xc0000be180, 0xc0000be240)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:463 +0x2b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 76 [runnable]:
strings.genSplit(0xc000456000, 0x2df57, 0xa30880, 0x1, 0x0, 0xffffffffffffffff, 0x0, 0xc00021d740, 0x0)
/usr/local/go/src/strings/strings.go:236 +0x2c5
strings.Split(...)
/usr/local/go/src/strings/strings.go:299
main.(*Exporter).collect(0xc000244f00, 0xc0000be180, 0x0, 0x0)
/app/apache_exporter.go:307 +0x4ac
main.(*Exporter).Collect(0xc000244f00, 0xc0000be180)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
[ OK ]
level=info ts=2022-08-07T20:09:53.371Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-07T20:09:53.372Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-07T20:09:53.372Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-07T20:09:53.372Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-07T20:09:53.372Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-07T20:09:53.373Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000081000)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000081000)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc0003ddf01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f7b40ef6f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000234098, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc000234080, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc000234080, 0xfd17ea5915ed8901, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc0002088e8, 0x62f01c12, 0xc000113b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc0002088e8, 0xc000113b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc000250000, 0xab76f0, 0xc0002088e8, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc0002088e8, 0xc000250000, 0x0, 0x0, 0xaaf020, 0xc00007c370, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc000250000, 0x0, 0x0, 0xaaf020, 0xc00007c370, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 34 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 37 [chan receive]:
main.main.func1(0xaaf020, 0xc00007c370)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 41 [runnable]:
compress/flate.(*compressor).initDeflate(...)
/usr/local/go/src/compress/flate/deflate.go:374
compress/flate.(*compressor).init(0xc00069a000, 0x7f7b40db79d8, 0xc000404190, 0xffffffffffffffff, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:602 +0x629
compress/flate.NewWriter(0x7f7b40db79d8, 0xc000404190, 0xffffffffffffffff, 0xa, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:671 +0x65
compress/gzip.(*Writer).Write(0xc0001b0160, 0xc000437000, 0xef, 0x1000, 0x0, 0xc00008d610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:191 +0x305
bufio.(*Writer).Flush(0xc0000c0840, 0xc00008d6d0, 0xc00008d620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc0000c0840, 0xc00008d7c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc0001b0160, 0xc000214230, 0xef, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc000214230, 0xc0000aeb10, 0xa30c88)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f7b40eb2278, 0xc000404190, 0xc00016a000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc000222a10, 0x7f7b40eb2278, 0xc000404190, 0xc00016a000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f7b40eb2278, 0xc000404190, 0xc00016a000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0002289f0, 0x7f7b40eb2278, 0xc000404190, 0xc00016a000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0002501c0, 0xc00016a000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc000228b70, 0xab7900, 0xc0002501c0, 0xc00016a000)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0002501c0, 0xc00016a000)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc000250000, 0xab7900, 0xc0002501c0, 0xc00016a000)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc000262000, 0xab8818, 0xc00022e2c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 59 [IO wait]:
internal/poll.runtime_pollWait(0x7f7b40ef6c60, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a218, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a200, 0xc000575000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a200, 0xc000575000, 0x1000, 0x1000, 0x439c3c, 0xc0002a2c38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00020a078, 0xc000575000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0000ca360, 0xc000575000, 0x1000, 0x1000, 0xc000094240, 0xc0002a2d40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc0003902a0)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc0003902a0, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0000ca360)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 15 [IO wait]:
internal/poll.runtime_pollWait(0x7f7b40ef6e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000234118, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000234100, 0xc000228e21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000234100, 0xc000228e21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00020a0a0, 0xc000228e21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc000228e10)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 60 [select]:
net/http.(*persistConn).writeLoop(0xc0000ca360)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-07T23:09:50.758Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-07T23:09:50.759Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-07T23:09:50.759Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-07T23:09:50.759Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-07T23:09:50.760Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-07T23:09:50.760Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000400400)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000400400)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000038800, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc00038c600)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7fdb47a76f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a618, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00002a600, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00002a600, 0x52bbbf12108a3401, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00000cf30, 0x62f04642, 0xc000167b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00000cf30, 0xc000167b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0001e4000, 0xab76f0, 0xc00000cf30, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00000cf30, 0xc0001e4000, 0x0, 0x0, 0xaaf020, 0xc0000b4370, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0001e4000, 0x0, 0x0, 0xaaf020, 0xc0000b4370, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 9 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 12 [chan receive]:
main.main.func1(0xaaf020, 0xc0000b4370)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 16 [syscall]:
github.com/prometheus/client_golang/prometheus.(*constSummary).Write(0xc0000deec0, 0xc000380540, 0x2, 0x2)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/summary.go:676 +0x157
github.com/prometheus/client_golang/prometheus.processMetric(0xab2718, 0xc0000deec0, 0xc0000695f8, 0xc000069628, 0x0, 0x0, 0x1)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:598 +0xa2
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc00007c960, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:492 +0x9da
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7fdb47a8e4b8, 0xc0000b4870, 0xc0000f4200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc0001d4af0, 0x7fdb47a8e4b8, 0xc0000b4870, 0xc0000f4200)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7fdb47a8e4b8, 0xc0000b4870, 0xc0000f4200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0001c73e0, 0x7fdb47a8e4b8, 0xc0000b4870, 0xc0000f4200)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0001e4380, 0xc0000f4200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0001c7560, 0xab7900, 0xc0001e4380, 0xc0000f4200)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0001e4380, 0xc0000f4200)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0001e4000, 0xab7900, 0xc0001e4380, 0xc0000f4200)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0001b9540, 0xab8818, 0xc0001235c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 37 [IO wait]:
internal/poll.runtime_pollWait(0x7fdb47a76e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a698, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a680, 0xc0001c7811, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a680, 0xc0001c7811, 0x1, 0x1, 0xc00039c000, 0x0, 0xc000123698)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00000e390, 0xc0001c7811, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0001c7800)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 39 [semacquire]:
sync.runtime_Semacquire(0xc0000dd908)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc0000dd900)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc0000dd900, 0xc0000b2900, 0xc0000b2960)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:463 +0x2b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 38 [runnable]:
internal/poll.(*FD).ReadDirent(0xc0000b2ba0, 0xc0002ce000, 0x2000, 0x2000, 0xc000315640, 0x4dbc73, 0x962260)
/usr/local/go/src/internal/poll/fd_unix.go:427 +0x25d
os.(*File).readdir(0xc0000a0108, 0xffffffffffffffff, 0x0, 0x0, 0x0, 0xc000315768, 0x4e6065, 0xc0003820f0, 0xf, 0x0, ...)
/usr/local/go/src/os/dir_unix.go:57 +0xc85
os.(*File).Readdirnames(0xc0000a0108, 0xffffffffffffffff, 0x0, 0xc000000000, 0xc0000a0108, 0x0, 0x0)
/usr/local/go/src/os/dir.go:70 +0x51
github.com/prometheus/procfs.Proc.fileDescriptors(0xeb49d, 0xa05a30, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/proc.go:279 +0x139
github.com/prometheus/procfs.Proc.FileDescriptorsLen(...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/proc.go:240
github.com/prometheus/client_golang/prometheus.(*processCollector).processCollect(0xc00007c9b0, 0xc0000b2900)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector_other.go:53 +0x439
github.com/prometheus/client_golang/prometheus.(*processCollector).Collect(0xc00007c9b0, 0xc0000b2900)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector.go:138 +0x33
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:457 +0x5ce
goroutine 40 [select]:
net/http.(*persistConn).roundTrip(0xc0000f2fc0, 0xc0000def00, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/transport.go:2610 +0x765
net/http.(*Transport).roundTrip(0xc0001c0780, 0xc0000f4300, 0x30, 0x9db900, 0x0)
/usr/local/go/src/net/http/transport.go:592 +0xacb
net/http.(*Transport).RoundTrip(0xc0001c0780, 0xc0000f4300, 0xc0001c0780, 0x0, 0x0)
/usr/local/go/src/net/http/roundtrip.go:17 +0x35
net/http.send(0xc0000f4300, 0xaaf4e0, 0xc0001c0780, 0x0, 0x0, 0x0, 0xc00020a150, 0x418257, 0x1, 0x0)
/usr/local/go/src/net/http/client.go:251 +0x454
net/http.(*Client).send(0xc0001c6f60, 0xc0000f4300, 0x0, 0x0, 0x0, 0xc00020a150, 0x0, 0x1, 0xc0000f4300)
/usr/local/go/src/net/http/client.go:175 +0xff
net/http.(*Client).do(0xc0001c6f60, 0xc0000f4300, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/client.go:717 +0x45f
net/http.(*Client).Do(...)
/usr/local/go/src/net/http/client.go:585
main.(*Exporter).collect(0xc0001a8780, 0xc0000b2900, 0x0, 0x0)
/app/apache_exporter.go:291 +0x177
main.(*Exporter).Collect(0xc0001a8780, 0xc0000b2900)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 45 [IO wait]:
internal/poll.runtime_pollWait(0x7fdb47a76d48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a918, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a900, 0xc0005c0000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a900, 0xc0005c0000, 0x1000, 0x1000, 0x7fdb47a2faa8, 0xc000309468, 0xc00042dc70)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00020a168, 0xc0005c0000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0000f2fc0, 0xc0005c0000, 0x1000, 0x1000, 0x405690, 0x60, 0x0)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc000200840)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc000200840, 0x1, 0xc00021c0c0, 0x0, 0x0, 0x0, 0xc000309618)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0000f2fc0)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 46 [select]:
net/http.(*persistConn).writeLoop(0xc0000f2fc0)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-08T02:09:49.886Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-08T02:09:49.888Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-08T02:09:49.888Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-08T02:09:49.888Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-08T02:09:49.889Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-08T02:09:49.889Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000280800)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000280800)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc000349f01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f9095678f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a398, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00002a380, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00002a380, 0x933dd79cf9020f01, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00000ca38, 0x62f07072, 0xc000177b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00000ca38, 0xc000177b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc000268000, 0xab76f0, 0xc00000ca38, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00000ca38, 0xc000268000, 0x0, 0x0, 0xaaf020, 0xc00007c230, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc000268000, 0x0, 0x0, 0xaaf020, 0xc00007c230, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 25 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 9 [chan receive]:
main.main.func1(0xaaf020, 0xc00007c230)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 13 [runnable]:
context.propagateCancel(0xab8770, 0xc00022e540, 0xab22e0, 0xc0001111c0)
/usr/local/go/src/context/context.go:250 +0x25f
context.WithCancel(0xab8770, 0xc00022e540, 0xa053a2, 0x4, 0xc00014bc08)
/usr/local/go/src/context/context.go:237 +0xae
net/http.(*conn).readRequest(0xc000020960, 0xab8770, 0xc00022e540, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:1004 +0x725
net/http.(*conn).serve(0xc000020960, 0xab8818, 0xc00022e540)
/usr/local/go/src/net/http/server.go:1858 +0x705
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
[ OK ]
level=info ts=2022-08-08T05:10:43.634Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-08T05:10:43.637Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-08T05:10:43.637Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-08T05:10:43.637Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-08T05:10:43.637Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-08T05:10:43.638Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000281000)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000281000)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc000399f01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f535f507f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000108518, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc000108500, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc000108500, 0xa8c1da7784332301, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc0000b6660, 0x62f09ade, 0xc000113b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc0000b6660, 0xc000113b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc000178000, 0xab76f0, 0xc0000b6660, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc0000b6660, 0xc000178000, 0x0, 0x0, 0xaaf020, 0xc0002403c0, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc000178000, 0x0, 0x0, 0xaaf020, 0xc0002403c0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 37 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 21 [chan receive]:
main.main.func1(0xaaf020, 0xc0002403c0)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 25 [runnable]:
compress/flate.(*compressor).deflate(0xc000580000)
/usr/local/go/src/compress/flate/deflate.go:429 +0x251
compress/flate.(*compressor).write(0xc000580000, 0xc000534000, 0x14e, 0x1000, 0x1000, 0x8bf2e0cb, 0x61)
/usr/local/go/src/compress/flate/deflate.go:554 +0x85
compress/flate.(*Writer).Write(...)
/usr/local/go/src/compress/flate/deflate.go:712
compress/gzip.(*Writer).Write(0xc000530000, 0xc000534000, 0x14e, 0x1000, 0xc00009b610, 0xc00009b610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:196 +0xc5
bufio.(*Writer).Flush(0xc00037e6c0, 0xc00009b6d0, 0xc00009b620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc00037e6c0, 0xc00009b7c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc000530000, 0xc0002405f0, 0x14e, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc0002405f0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f535f517ab8, 0xc0000d0e10, 0xc00016a200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc000169960, 0x7f535f517ab8, 0xc0000d0e10, 0xc00016a200)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f535f517ab8, 0xc0000d0e10, 0xc00016a200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc000176150, 0x7f535f517ab8, 0xc0000d0e10, 0xc00016a200)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0001780e0, 0xc00016a200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0001762d0, 0xab7900, 0xc0001780e0, 0xc00016a200)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0001780e0, 0xc00016a200)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc000178000, 0xab7900, 0xc0001780e0, 0xc00016a200)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc000166a00, 0xab8818, 0xc0000c9300)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 26 [IO wait]:
internal/poll.runtime_pollWait(0x7f535f507e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000108598, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000108580, 0xc000176581, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000108580, 0xc000176581, 0x1, 0x1, 0x461f80, 0x461f80, 0xc0000c7140)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000c4270, 0xc000176581, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc000176570)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 11 [IO wait]:
internal/poll.runtime_pollWait(0x7f535f507d48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000108718, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000108700, 0xc0001b8000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000108700, 0xc0001b8000, 0x1000, 0x1000, 0x439c3c, 0xc000192c38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00000e160, 0xc0001b8000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0000d2a20, 0xc0001b8000, 0x1000, 0x1000, 0xc00026c420, 0xc000192d40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc00007a6c0)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc00007a6c0, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0000d2a20)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 12 [select]:
net/http.(*persistConn).writeLoop(0xc0000d2a20)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-08T08:09:52.973Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-08T08:09:52.974Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-08T08:09:52.974Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-08T08:09:52.974Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-08T08:09:52.974Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-08T08:09:52.975Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000080c00)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000080c00)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc000415f01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait, 3 minutes]:
internal/poll.runtime_pollWait(0x7f87d5014f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a698, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00002a680, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00002a680, 0x2a8cdcc56bfb7301, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00000d518, 0x62f0c4d2, 0xc000167b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00000d518, 0xc000167b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0001da000, 0xab76f0, 0xc00000d518, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00000d518, 0xc0001da000, 0x0, 0x0, 0xaaf020, 0xc0002101e0, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0001da000, 0x0, 0x0, 0xaaf020, 0xc0002101e0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 9 [syscall, 3 minutes]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 12 [chan receive, 3 minutes]:
main.main.func1(0xaaf020, 0xc0002101e0)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 16 [runnable]:
runtime.Gosched(...)
/usr/local/go/src/runtime/proc.go:292
compress/flate.(*compressor).initDeflate(...)
/usr/local/go/src/compress/flate/deflate.go:374
compress/flate.(*compressor).init(0xc000600000, 0x7f87d4f15f58, 0xc0000fe320, 0xffffffffffffffff, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:602 +0x629
compress/flate.NewWriter(0x7f87d4f15f58, 0xc0000fe320, 0xffffffffffffffff, 0xa, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:671 +0x65
compress/gzip.(*Writer).Write(0xc000230420, 0xc00016e000, 0xef, 0x1000, 0x0, 0xc000069610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:191 +0x305
bufio.(*Writer).Flush(0xc000122580, 0xc0000696d0, 0xc000069620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc000122580, 0xc0000697c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc000230420, 0xc0000fe5a0, 0xef, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc0000fe5a0, 0xc0000fc990, 0xa30c88)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f87d5027bf8, 0xc0000fe320, 0xc0000ac100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc0001c6f50, 0x7f87d5027bf8, 0xc0000fe320, 0xc0000ac100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f87d5027bf8, 0xc0000fe320, 0xc0000ac100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0001ce870, 0x7f87d5027bf8, 0xc0000fe320, 0xc0000ac100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc00044a0e0, 0xc0000ac100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0001ce9f0, 0xab7900, 0xc00044a0e0, 0xc0000ac100)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc00044a0e0, 0xc0000ac100)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0001da000, 0xab7900, 0xc00044a0e0, 0xc0000ac100)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0001b8b40, 0xab8818, 0xc000123440)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 38 [select]:
net/http.(*persistConn).writeLoop(0xc0000be000)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
goroutine 37 [IO wait]:
internal/poll.runtime_pollWait(0x7f87d5014d48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a118, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a100, 0xc00016f000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a100, 0xc00016f000, 0x1000, 0x1000, 0x439c3c, 0xc00010cc38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc000238100, 0xc00016f000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0000be000, 0xc00016f000, 0x1000, 0x1000, 0xc00007e300, 0xc00010cd40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc00007a420)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc00007a420, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0000be000)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 116 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0x7f87d5014e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a718, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a700, 0xc0001ceca1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a700, 0xc0001ceca1, 0x1, 0x1, 0xc00022eae0, 0x0, 0x100010000)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00000e2e0, 0xc0001ceca1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0001cec90)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
[ OK ]
level=info ts=2022-08-08T11:09:51.009Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-08T11:09:51.010Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-08T11:09:51.010Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-08T11:09:51.010Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-08T11:09:51.010Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-08T11:09:51.011Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000089400)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000089400)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc000001200)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7fcf760cf018, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000164598, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc000164580, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc000164580, 0x4e3d0b84b612f001, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc000116ca8, 0x62f0ef02, 0xc00016fb48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc000116ca8, 0xc00016fb98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0001e4000, 0xab76f0, 0xc000116ca8, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc000116ca8, 0xc0001e4000, 0x0, 0x0, 0xaaf020, 0xc0000ec460, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0001e4000, 0x0, 0x0, 0xaaf020, 0xc0000ec460, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 22 [chan receive]:
main.main.func1(0xaaf020, 0xc0000ec460)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 7 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 26 [runnable]:
compress/flate.(*compressor).deflate(0xc000500000)
/usr/local/go/src/compress/flate/deflate.go:429 +0x251
compress/flate.(*compressor).write(0xc000500000, 0xc0003a8000, 0x14e, 0x1000, 0x1000, 0x69cb085b, 0x61)
/usr/local/go/src/compress/flate/deflate.go:554 +0x85
compress/flate.(*Writer).Write(...)
/usr/local/go/src/compress/flate/deflate.go:712
compress/gzip.(*Writer).Write(0xc0003a6000, 0xc0003a8000, 0x14e, 0x1000, 0xc000307610, 0xc000307610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:196 +0xc5
bufio.(*Writer).Flush(0xc00039e080, 0xc0003076d0, 0xc000307620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc00039e080, 0xc0003077c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc0003a6000, 0xc00007cb90, 0x14e, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc00007cb90, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7fcf760e2cb8, 0xc000118f00, 0xc0001c6200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc0001d8310, 0x7fcf760e2cb8, 0xc000118f00, 0xc0001c6200)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7fcf760e2cb8, 0xc000118f00, 0xc0001c6200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0001d66f0, 0x7fcf760e2cb8, 0xc000118f00, 0xc0001c6200)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0001e40e0, 0xc0001c6200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0001d6870, 0xab7900, 0xc0001e40e0, 0xc0001c6200)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0001e40e0, 0xc0001c6200)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0001e4000, 0xab7900, 0xc0001e40e0, 0xc0001c6200)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0001c28c0, 0xab8818, 0xc000109440)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 27 [IO wait]:
internal/poll.runtime_pollWait(0x7fcf760cef30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000164618, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000164600, 0xc0001d6b21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000164600, 0xc0001d6b21, 0x1, 0x1, 0x461f80, 0x461f80, 0xc000105200)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0001022c0, 0xc0001d6b21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0001d6b10)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 11 [IO wait]:
internal/poll.runtime_pollWait(0x7fcf760cee48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000290318, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000290300, 0xc000246000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000290300, 0xc000246000, 0x1000, 0x1000, 0x439c3c, 0xc00009ec38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000c61a8, 0xc000246000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0000d46c0, 0xc000246000, 0x1000, 0x1000, 0xc0001203c0, 0xc00009ed40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc0000e4f60)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc0000e4f60, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0000d46c0)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 12 [select]:
net/http.(*persistConn).writeLoop(0xc0000d46c0)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-08T14:09:54.229Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-08T14:09:54.230Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-08T14:09:54.230Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-08T14:09:54.230Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-08T14:09:54.230Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-08T14:09:54.231Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc0002f0c00)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc0002f0c00)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc0001a7f01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7fc84259ef18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000108598, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc000108580, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc000108580, 0x78753fedda69a501, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc0000b6f60, 0x62f11932, 0xc000113b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc0000b6f60, 0xc000113b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc00021a000, 0xab76f0, 0xc0000b6f60, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc0000b6f60, 0xc00021a000, 0x0, 0x0, 0xaaf020, 0xc000286280, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc00021a000, 0x0, 0x0, 0xaaf020, 0xc000286280, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 22 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 25 [chan receive]:
main.main.func1(0xaaf020, 0xc000286280)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 29 [runnable]:
hash/crc32.Update(0x7fc800000000, 0xc0000ea000, 0xc000510000, 0xef, 0x1000, 0x0)
/usr/local/go/src/hash/crc32/crc32.go:214 +0x15a
compress/gzip.(*Writer).Write(0xc0002b0210, 0xc000510000, 0xef, 0x1000, 0x0, 0xc00023d610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:195 +0x85
bufio.(*Writer).Flush(0xc0002baf80, 0xc00023d6d0, 0xc00023d620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc0002baf80, 0xc00023d7c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc0002b0210, 0xc000286910, 0xef, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc000286910, 0xc0000b7b60, 0xa30c88)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7fc8425b7cf8, 0xc0000d10e0, 0xc00016c300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc000202af0, 0x7fc8425b7cf8, 0xc0000d10e0, 0xc00016c300)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7fc8425b7cf8, 0xc0000d10e0, 0xc00016c300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0001753e0, 0x7fc8425b7cf8, 0xc0000d10e0, 0xc00016c300)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc00021a0e0, 0xc00016c300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc000175560, 0xab7900, 0xc00021a0e0, 0xc00016c300)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc00021a0e0, 0xc00016c300)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc00021a000, 0xab7900, 0xc00021a0e0, 0xc00016c300)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0001695e0, 0xab8818, 0xc0000c95c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 30 [IO wait]:
internal/poll.runtime_pollWait(0x7fc84259ee30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000108618, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000108600, 0xc000175811, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000108600, 0xc000175811, 0x1, 0x1, 0x461f80, 0x461f80, 0xc0000c7500)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000c4378, 0xc000175811, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc000175800)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 52 [IO wait]:
internal/poll.runtime_pollWait(0x7fc84259ed48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000108718, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000108700, 0xc000272000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000108700, 0xc000272000, 0x1000, 0x1000, 0x439c3c, 0xc0000a2c38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000c43b8, 0xc000272000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0000d30e0, 0xc000272000, 0x1000, 0x1000, 0xc0002d0420, 0xc0000a2d40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc000284c00)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc000284c00, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0000d30e0)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 53 [select]:
net/http.(*persistConn).writeLoop(0xc0000d30e0)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-08T17:09:55.862Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-08T17:09:55.864Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-08T17:09:55.864Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-08T17:09:55.864Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-08T17:09:55.864Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
level=info ts=2022-08-08T17:09:55.864Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000081000)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000081000)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003d800, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc0005b2180)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait, 14 minutes]:
internal/poll.runtime_pollWait(0x7fa21dadaf18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000a8118, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc0000a8100, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc0000a8100, 0xd776688085e19801, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc000097110, 0x62f1439e, 0xc000167b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc000097110, 0xc000167b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0000f2000, 0xab76f0, 0xc000097110, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc000097110, 0xc0000f2000, 0x0, 0x0, 0xaaf020, 0xc0002403c0, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0000f2000, 0x0, 0x0, 0xaaf020, 0xc0002403c0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 20 [syscall, 14 minutes]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 23 [chan receive, 14 minutes]:
main.main.func1(0xaaf020, 0xc0002403c0)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 37 [runnable]:
bufio.(*Writer).Write(0xc000222480, 0xd82b60, 0x11, 0x11, 0x2, 0x0, 0x0)
/usr/local/go/src/bufio/bufio.go:633 +0x23b
net/http.extraHeader.Write(0x0, 0x0, 0x0, 0x0, 0xa07c80, 0x7, 0xc0000f2264, 0x1d, 0x1d, 0x0, ...)
/usr/local/go/src/net/http/server.go:1186 +0x145
net/http.(*chunkWriter).writeHeader(0xc0000f2200, 0xc0005bc000, 0x800, 0x800)
/usr/local/go/src/net/http/server.go:1466 +0x945
net/http.(*chunkWriter).Write(0xc0000f2200, 0xc0005bc000, 0x800, 0x800, 0x0, 0xc00031d550, 0x6abb36)
/usr/local/go/src/net/http/server.go:370 +0x2e7
bufio.(*Writer).Flush(0xc000122140, 0xc00000a200, 0x76)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
bufio.(*Writer).Write(0xc000122140, 0xc00000a200, 0xdb, 0xf8, 0xc000111f20, 0xc00000a200, 0xf0)
/usr/local/go/src/bufio/bufio.go:643 +0xfc
net/http.(*response).write(0xc0000f21c0, 0xdb, 0xc00000a200, 0xdb, 0xf8, 0x0, 0x0, 0xc00013a9a0, 0xc00013a840, 0xc00031d718)
/usr/local/go/src/net/http/server.go:1595 +0x38a
net/http.(*response).Write(0xc0000f21c0, 0xc00000a200, 0xdb, 0xf8, 0xc0003e8000, 0x7f, 0xc00013a8f0)
/usr/local/go/src/net/http/server.go:1553 +0x56
github.com/prometheus/client_golang/prometheus/promhttp.(*responseWriterDelegator).Write(0xc000111f20, 0xc00000a200, 0xdb, 0xf8, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/delegator.go:74 +0x5b
compress/flate.(*huffmanBitWriter).write(...)
/usr/local/go/src/compress/flate/huffman_bit_writer.go:136
compress/flate.(*huffmanBitWriter).flush(0xc00000a1e0)
/usr/local/go/src/compress/flate/huffman_bit_writer.go:128 +0xe3
compress/flate.(*huffmanBitWriter).writeStoredHeader(0xc00000a1e0, 0x0, 0x7fa21da2ac01)
/usr/local/go/src/compress/flate/huffman_bit_writer.go:412 +0x65
compress/flate.(*compressor).close(0xc000680000, 0x0, 0xc00031d800)
/usr/local/go/src/compress/flate/deflate.go:650 +0x87
compress/flate.(*Writer).Close(...)
/usr/local/go/src/compress/flate/deflate.go:732
compress/gzip.(*Writer).Close(0xc00013a6e0, 0x0, 0x0)
/usr/local/go/src/compress/gzip/gzip.go:242 +0x6a
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7fa21da9ca38, 0xc0002400a0, 0xc000218100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:205 +0x5fb
net/http.HandlerFunc.ServeHTTP(0xc00009b650, 0x7fa21da9ca38, 0xc0002400a0, 0xc000218100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7fa21da9ca38, 0xc0002400a0, 0xc000218100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0000a2a20, 0x7fa21da9ca38, 0xc0002400a0, 0xc000218100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0000f21c0, 0xc000218100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0000a2ba0, 0xab7900, 0xc0000f21c0, 0xc000218100)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0000f21c0, 0xc000218100)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0000f2000, 0xab7900, 0xc0000f21c0, 0xc000218100)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc000229400, 0xab8818, 0xc000222400)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 229 [select]:
net/http.(*persistConn).writeLoop(0xc0000e4480)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
goroutine 160 [IO wait]:
internal/poll.runtime_pollWait(0x7fa21dadae30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000264298, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000264280, 0xc00021bc61, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000264280, 0xc00021bc61, 0x1, 0x1, 0xe0f860, 0xa32700, 0xc0000bb7a8)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc000216160, 0xc00021bc61, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc00021bc50)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 228 [IO wait]:
internal/poll.runtime_pollWait(0x7fa21dadad48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000a8198, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0000a8180, 0xc000272000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0000a8180, 0xc000272000, 0x1000, 0x1000, 0x439c3c, 0xc00010dc38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc000618070, 0xc000272000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0000e4480, 0xc000272000, 0x1000, 0x1000, 0xc00007e480, 0xc00010dd40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc0002906c0)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc0002906c0, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0000e4480)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
[ OK ]
level=info ts=2022-08-08T20:09:57.893Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-08T20:09:57.894Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-08T20:09:57.894Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-08T20:09:57.894Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-08T20:09:57.894Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-08T20:09:57.895Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc00005dc00)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc00005dc00)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc000311f01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc000001380)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f480644ff18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a598, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00002a580, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00002a580, 0xc4ad27dcd7d4e501, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00000ccf0, 0x62f17152, 0xc0000e7b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00000ccf0, 0xc0000e7b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc00015a000, 0xab76f0, 0xc00000ccf0, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00000ccf0, 0xc00015a000, 0x0, 0x0, 0xaaf020, 0xc000240460, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc00015a000, 0x0, 0x0, 0xaaf020, 0xc000240460, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 14 [runnable]:
compress/flate.(*compressor).initDeflate(...)
/usr/local/go/src/compress/flate/deflate.go:374
compress/flate.(*compressor).init(0xc000622000, 0x7f480626e3d8, 0xc0001b4050, 0xffffffffffffffff, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:602 +0x629
compress/flate.NewWriter(0x7f480626e3d8, 0xc0001b4050, 0xffffffffffffffff, 0xa, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:671 +0x65
compress/gzip.(*Writer).Write(0xc000262160, 0xc000433000, 0xf0, 0x1000, 0x0, 0xc0001dd610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:191 +0x305
bufio.(*Writer).Flush(0xc0001d0280, 0xc0001dd6d0, 0xc0001dd620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc0001d0280, 0xc0001dd7c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc000262160, 0xc00007c6e0, 0xf0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc00007c6e0, 0xc0001969c0, 0xa30c88)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f48062680a8, 0xc0001b4050, 0xc000218300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc00014e310, 0x7f48062680a8, 0xc0001b4050, 0xc000218300)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f48062680a8, 0xc0001b4050, 0xc000218300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc00014c840, 0x7f48062680a8, 0xc0001b4050, 0xc000218300)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc00015a0e0, 0xc000218300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc00014c9c0, 0xab7900, 0xc00015a0e0, 0xc000218300)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc00015a0e0, 0xc000218300)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc00015a000, 0xab7900, 0xc00015a0e0, 0xc000218300)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc000136be0, 0xab8818, 0xc0001d0000)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 10 [chan receive]:
main.main.func1(0xaaf020, 0xc000240460)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 19 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 72 [IO wait]:
internal/poll.runtime_pollWait(0x7f480644fe30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a618, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a600, 0xc0001a2071, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a600, 0xc0001a2071, 0x1, 0x1, 0xc00007b5c0, 0x0, 0xc0001d00d8)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00000e2d0, 0xc0001a2071, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0001a2060)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 85 [IO wait]:
internal/poll.runtime_pollWait(0x7f480644fd48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000266118, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000266100, 0xc000336000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000266100, 0xc000336000, 0x1000, 0x1000, 0x439c3c, 0xc0001cdc38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00020e108, 0xc000336000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0000a8360, 0xc000336000, 0x1000, 0x1000, 0xc00026e1e0, 0xc0001cdd40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc000200360)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc000200360, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0000a8360)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 86 [select]:
net/http.(*persistConn).writeLoop(0xc0000a8360)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-08T23:09:55.934Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-08T23:09:55.934Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-08T23:09:55.934Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-08T23:09:55.934Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-08T23:09:55.934Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-08T23:09:55.935Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc0001d8800)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc0001d8800)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00029bf01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f59c9c1cf18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000f0318, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc0000f0300, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc0000f0300, 0xdb49677a4ecf1c01, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc000092bd0, 0x62f197fe, 0xc000189b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc000092bd0, 0xc000189b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0002b6000, 0xab76f0, 0xc000092bd0, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc000092bd0, 0xc0002b6000, 0x0, 0x0, 0xaaf020, 0xc0000cc370, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0002b6000, 0x0, 0x0, 0xaaf020, 0xc0000cc370, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 22 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 38 [chan receive]:
main.main.func1(0xaaf020, 0xc0000cc370)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 42 [runnable]:
compress/flate.newHuffmanBitWriter(...)
/usr/local/go/src/compress/flate/huffman_bit_writer.go:98
compress/flate.(*compressor).init(0xc000680000, 0x7f59c99b6858, 0xc000202fa0, 0xffffffffffffffff, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:579 +0x7d
compress/flate.NewWriter(0x7f59c99b6858, 0xc000202fa0, 0xffffffffffffffff, 0xa, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:671 +0x65
compress/gzip.(*Writer).Write(0xc0002740b0, 0xc0001ee000, 0xef, 0x1000, 0x0, 0xc0002a1610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:191 +0x305
bufio.(*Writer).Flush(0xc0000ac640, 0xc0002a16d0, 0xc0002a1620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc0000ac640, 0xc0002a17c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc0002740b0, 0xc00031cb40, 0xef, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc00031cb40, 0xc0003209f0, 0xa30c88)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f59c9c5f438, 0xc000202fa0, 0xc0000a2400)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc0002a27e0, 0x7f59c9c5f438, 0xc000202fa0, 0xc0000a2400)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f59c9c5f438, 0xc000202fa0, 0xc0000a2400)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0002a45a0, 0x7f59c9c5f438, 0xc000202fa0, 0xc0000a2400)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0002b6380, 0xc0000a2400)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0002a4720, 0xab7900, 0xc0002b6380, 0xc0000a2400)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0002b6380, 0xc0000a2400)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0002b6000, 0xab7900, 0xc0002b6380, 0xc0000a2400)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0000b34a0, 0xab8818, 0xc0000ac6c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 81 [IO wait]:
internal/poll.runtime_pollWait(0x7f59c9c1ce30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000f0398, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0000f0380, 0xc0002a49d1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0000f0380, 0xc0002a49d1, 0x1, 0x1, 0xc000300060, 0x0, 0xc0000ac798)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00009a1f0, 0xc0002a49d1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0002a49c0)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 97 [IO wait]:
internal/poll.runtime_pollWait(0x7f59c9c1cd48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a198, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a180, 0xc0002f4000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a180, 0xc0002f4000, 0x1000, 0x1000, 0x439c3c, 0xc00021cc38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00009a270, 0xc0002f4000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc000149440, 0xc0002f4000, 0x1000, 0x1000, 0xc0000f85a0, 0xc00021cd40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc0000c5860)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc0000c5860, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc000149440)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 98 [select]:
net/http.(*persistConn).writeLoop(0xc000149440)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-09T02:09:51.331Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-09T02:09:51.332Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-09T02:09:51.332Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-09T02:09:51.332Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-09T02:09:51.332Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-09T02:09:51.333Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000216c00)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000216c00)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc000313f01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f1fced3df18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000a8118, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc0000a8100, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc0000a8100, 0xe7151a7676169301, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc000097320, 0x62f1c1f2, 0xc000167b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc000097320, 0xc000167b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc000284000, 0xab76f0, 0xc000097320, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc000097320, 0xc000284000, 0x0, 0x0, 0xaaf020, 0xc00007cc80, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc000284000, 0x0, 0x0, 0xaaf020, 0xc00007cc80, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 21 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 24 [chan receive]:
main.main.func1(0xaaf020, 0xc00007cc80)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 28 [runnable]:
bufio.(*Writer).WriteString(0xc0000c9240, 0xa07698, 0x7, 0x0, 0x0, 0x0)
/usr/local/go/src/bufio/bufio.go:703 +0x1bc
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc0002c8210, 0xc000214410, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:97 +0x14d4
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc000214410, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f1fced82bb8, 0xc0000b4730, 0xc0000c4100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc00009be30, 0x7f1fced82bb8, 0xc0000b4730, 0xc0000c4100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f1fced82bb8, 0xc0000b4730, 0xc0000c4100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0000a35c0, 0x7f1fced82bb8, 0xc0000b4730, 0xc0000c4100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0002840e0, 0xc0000c4100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0000a3740, 0xab7900, 0xc0002840e0, 0xc0000c4100)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0002840e0, 0xc0000c4100)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc000284000, 0xab7900, 0xc0002840e0, 0xc0000c4100)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0000ceb40, 0xab8818, 0xc0000c8440)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 29 [IO wait]:
internal/poll.runtime_pollWait(0x7f1fced3de30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000a8198, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0000a8180, 0xc0000a39f1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0000a8180, 0xc0000a39f1, 0x1, 0x1, 0x461f80, 0x461f80, 0xc0000b2900)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000a0158, 0xc0000a39f1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0000a39e0)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 36 [IO wait]:
internal/poll.runtime_pollWait(0x7f1fced3dd48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000a8318, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0000a8300, 0xc000256000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0000a8300, 0xc000256000, 0x1000, 0x1000, 0x439c3c, 0xc00010cc38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc000254000, 0xc000256000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc000128d80, 0xc000256000, 0x1000, 0x1000, 0xc000282240, 0xc00010cd40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc000300060)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc000300060, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc000128d80)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 37 [select]:
net/http.(*persistConn).writeLoop(0xc000128d80)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-09T05:10:40.620Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-09T05:10:40.621Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-09T05:10:40.621Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-09T05:10:40.621Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-09T05:10:40.621Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-09T05:10:40.622Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000600000)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000600000)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc0002abf01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f1393759f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a898, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00002a880, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00002a880, 0x6dc418dba4831201, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00000ce10, 0x62f1ec5e, 0xc000167b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00000ce10, 0xc000167b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0001ee000, 0xab76f0, 0xc00000ce10, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00000ce10, 0xc0001ee000, 0x0, 0x0, 0xaaf020, 0xc00007ccd0, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0001ee000, 0x0, 0x0, 0xaaf020, 0xc00007ccd0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 19 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 13 [chan receive]:
main.main.func1(0xaaf020, 0xc00007ccd0)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 49 [runnable]:
compress/flate.(*compressor).deflate(0xc000500000)
/usr/local/go/src/compress/flate/deflate.go:429 +0x251
compress/flate.(*compressor).write(0xc000500000, 0xc0004a2000, 0x14e, 0x1000, 0x1000, 0xfd477df6, 0x61)
/usr/local/go/src/compress/flate/deflate.go:554 +0x85
compress/flate.(*Writer).Write(...)
/usr/local/go/src/compress/flate/deflate.go:712
compress/gzip.(*Writer).Write(0xc0000ca160, 0xc0004a2000, 0x14e, 0x1000, 0xc00008d610, 0xc00008d610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:196 +0xc5
bufio.(*Writer).Flush(0xc000328780, 0xc00008d6d0, 0xc00008d620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc000328780, 0xc00008d7c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc0000ca160, 0xc00007d270, 0x14e, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc00007d270, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f1393772e78, 0xc00007d220, 0xc0001bc300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc0001c98f0, 0x7f1393772e78, 0xc00007d220, 0xc0001bc300)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f1393772e78, 0xc00007d220, 0xc0001bc300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0001c7830, 0x7f1393772e78, 0xc00007d220, 0xc0001bc300)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0001ee0e0, 0xc0001bc300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0001c79b0, 0xab7900, 0xc0001ee0e0, 0xc0001bc300)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0001ee0e0, 0xc0001bc300)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0001ee000, 0xab7900, 0xc0001ee0e0, 0xc0001bc300)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0001b9400, 0xab8818, 0xc0001236c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 50 [IO wait]:
internal/poll.runtime_pollWait(0x7f1393759e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a918, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a900, 0xc0001c7c61, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a900, 0xc0001c7c61, 0x1, 0x1, 0x461f80, 0x461f80, 0xc00007b800)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00000e368, 0xc0001c7c61, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0001c7c50)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 56 [IO wait]:
internal/poll.runtime_pollWait(0x7f1393759d48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000a8118, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0000a8100, 0xc0002d4000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0000a8100, 0xc0002d4000, 0x1000, 0x1000, 0x439c3c, 0xc00010bc38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00030a048, 0xc0002d4000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc000129320, 0xc0002d4000, 0x1000, 0x1000, 0xc000270000, 0xc00010bd40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc000200840)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc000200840, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc000129320)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 57 [select]:
net/http.(*persistConn).writeLoop(0xc000129320)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-09T08:09:53.218Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-09T08:09:53.219Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-09T08:09:53.219Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-09T08:09:53.219Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-09T08:09:53.219Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-09T08:09:53.219Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000088800)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000088800)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00038ff01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0x7fdaaf2caf18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000b0098, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc0000b0080, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc0000b0080, 0x22b94554a70c3d01, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00009f0f8, 0x62f21652, 0xc00015fb48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00009f0f8, 0xc00015fb98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0000f2000, 0xab76f0, 0xc00009f0f8, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00009f0f8, 0xc0000f2000, 0x0, 0x0, 0xaaf020, 0xc000240460, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0000f2000, 0x0, 0x0, 0xaaf020, 0xc000240460, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 25 [runnable]:
compress/flate.(*compressor).initDeflate(...)
/usr/local/go/src/compress/flate/deflate.go:374
compress/flate.(*compressor).init(0xc0006a2000, 0x7fdaaf211298, 0xc00007c0f0, 0xffffffffffffffff, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:602 +0x629
compress/flate.NewWriter(0x7fdaaf211298, 0xc00007c0f0, 0xffffffffffffffff, 0xa, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:671 +0x65
compress/gzip.(*Writer).Write(0xc000263130, 0xc0000ed000, 0xee, 0x1000, 0x0, 0xc00029f610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:191 +0x305
bufio.(*Writer).Flush(0xc000221200, 0xc00029f6d0, 0xc00029f620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc000221200, 0xc00029f7c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc000263130, 0xc000240320, 0xee, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc000240320, 0xc00000cb40, 0xa30c88)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7fdaaf30a278, 0xc00007c0f0, 0xc0002a8200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc0000a3650, 0x7fdaaf30a278, 0xc00007c0f0, 0xc0002a8200)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7fdaaf30a278, 0xc00007c0f0, 0xc0002a8200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0000aaa20, 0x7fdaaf30a278, 0xc00007c0f0, 0xc0002a8200)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0000f22a0, 0xc0002a8200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0000aaba0, 0xab7900, 0xc0000f22a0, 0xc0002a8200)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0000f22a0, 0xc0002a8200)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0000f2000, 0xab7900, 0xc0000f22a0, 0xc0002a8200)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0000f4000, 0xab8818, 0xc0000ca2c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 21 [chan receive, 1 minutes]:
main.main.func1(0xaaf020, 0xc000240460)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 8 [syscall, 1 minutes]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 82 [IO wait]:
internal/poll.runtime_pollWait(0x7fdaaf2cae30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000b0118, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0000b0100, 0xc0000aae51, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0000b0100, 0xc0000aae51, 0x1, 0x1, 0xe0f860, 0xa32700, 0xc00005bfa8)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000a80b8, 0xc0000aae51, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0000aae40)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 88 [IO wait]:
internal/poll.runtime_pollWait(0x7fdaaf2cac60, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000266118, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000266100, 0xc000311000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000266100, 0xc000311000, 0x1000, 0x1000, 0x439c3c, 0xc000105c38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000a8198, 0xc000311000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0000e4000, 0xc000311000, 0x1000, 0x1000, 0xc0000f0120, 0xc000105d40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc0000ba180)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc0000ba180, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0000e4000)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 89 [select, 1 minutes]:
net/http.(*persistConn).writeLoop(0xc0000e4000)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-09T11:09:51.588Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-09T11:09:51.589Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-09T11:09:51.589Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-09T11:09:51.589Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-09T11:09:51.589Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-09T11:09:51.590Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc00005d000)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc00005d000)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc000317f01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f0941de6018, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00025c098, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00025c080, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00025c080, 0xaaf5c3ee23a76a01, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc000208c00, 0x62f24082, 0xc000113b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc000208c00, 0xc000113b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc000274000, 0xab76f0, 0xc000208c00, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc000208c00, 0xc000274000, 0x0, 0x0, 0xaaf020, 0xc0000c8be0, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc000274000, 0x0, 0x0, 0xaaf020, 0xc0000c8be0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 39 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 42 [chan receive]:
main.main.func1(0xaaf020, 0xc0000c8be0)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 46 [runnable]:
compress/flate.(*compressor).initDeflate(...)
/usr/local/go/src/compress/flate/deflate.go:372
compress/flate.(*compressor).init(0xc0005a2000, 0x7f0941b7c118, 0xc000240050, 0xffffffffffffffff, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:602 +0x5d2
compress/flate.NewWriter(0x7f0941b7c118, 0xc000240050, 0xffffffffffffffff, 0xa, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:671 +0x65
compress/gzip.(*Writer).Write(0xc0000dd810, 0xc000133000, 0xef, 0x1000, 0x0, 0xc000315610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:191 +0x305
bufio.(*Writer).Flush(0xc000222740, 0xc0003156d0, 0xc000315620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc000222740, 0xc0003157c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc0000dd810, 0xc00007ceb0, 0xef, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc00007ceb0, 0xc0000aec90, 0xa30c88)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f0941c3ebf8, 0xc000240050, 0xc00016a000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc00023b1f0, 0x7f0941c3ebf8, 0xc000240050, 0xc00016a000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f0941c3ebf8, 0xc000240050, 0xc00016a000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc00021b590, 0x7f0941c3ebf8, 0xc000240050, 0xc00016a000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0002741c0, 0xc00016a000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc00021b710, 0xab7900, 0xc0002741c0, 0xc00016a000)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0002741c0, 0xc00016a000)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc000274000, 0xab7900, 0xc0002741c0, 0xc00016a000)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc000228aa0, 0xab8818, 0xc000222440)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 85 [IO wait]:
internal/poll.runtime_pollWait(0x7f0941de5e48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a198, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a180, 0xc000129000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a180, 0xc000129000, 0x1000, 0x1000, 0x439c3c, 0xc00009bc38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00000e008, 0xc000129000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0000ca360, 0xc000129000, 0x1000, 0x1000, 0xc000272120, 0xc00009bd40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc000200060)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc000200060, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0000ca360)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 62 [IO wait]:
internal/poll.runtime_pollWait(0x7f0941de5f30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00025c118, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00025c100, 0xc00021b9c1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00025c100, 0xc00021b9c1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00020a160, 0xc00021b9c1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc00021b9b0)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 86 [select]:
net/http.(*persistConn).writeLoop(0xc0000ca360)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-09T14:10:05.627Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-09T14:10:05.627Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-09T14:10:05.628Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-09T14:10:05.628Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-09T14:10:05.628Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-09T14:10:05.629Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc00005dc00)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc00005dc00)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc000001c80)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait, 35 minutes]:
internal/poll.runtime_pollWait(0x7f4306c69f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0002b0098, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc0002b0080, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc0002b0080, 0x157f543cb6ae4c01, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00028e8b8, 0x62f26aee, 0xc000167b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00028e8b8, 0xc000167b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0002d8000, 0xab76f0, 0xc00028e8b8, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00028e8b8, 0xc0002d8000, 0x0, 0x0, 0xaaf020, 0xc000240410, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0002d8000, 0x0, 0x0, 0xaaf020, 0xc000240410, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 38 [syscall, 35 minutes]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 51 [chan receive, 35 minutes]:
main.main.func1(0xaaf020, 0xc000240410)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 55 [select, 1 minutes]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc00007c960, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:513 +0xb65
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f4306be93b8, 0xc00007cf00, 0xc000218300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc00028aa10, 0x7f4306be93b8, 0xc00007cf00, 0xc000218300)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f4306be93b8, 0xc00007cf00, 0xc000218300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0002969f0, 0x7f4306be93b8, 0xc00007cf00, 0xc000218300)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0002d80e0, 0xc000218300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc000296b70, 0xab7900, 0xc0002d80e0, 0xc000218300)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0002d80e0, 0xc000218300)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0002d8000, 0xab7900, 0xc0002d80e0, 0xc000218300)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0002ea000, 0xab8818, 0xc00029e2c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 440 [semacquire, 1 minutes]:
sync.runtime_Semacquire(0xc000263158)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc000263150)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc000263150, 0xc000292060, 0xc000292540)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:463 +0x2b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 438 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0x7f4306c69e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0002b0118, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0002b0100, 0xc000296e21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0002b0100, 0xc000296e21, 0x1, 0x1, 0xc00007aba0, 0x0, 0xc00029e398)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0002980b0, 0xc000296e21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc000296e10)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 432 [runnable]:
compress/flate.(*decompressor).huffSym(0xc0000fa000, 0xc0000fa028, 0x2c, 0x0, 0x0)
/usr/local/go/src/compress/flate/inflate.go:707 +0x273
compress/flate.(*decompressor).huffmanBlock(0xc0000fa000)
/usr/local/go/src/compress/flate/inflate.go:494 +0xd2
compress/flate.(*decompressor).Read(0xc0000fa000, 0xc0004b0000, 0x8000, 0x8000, 0xa000, 0xc35a4f6c, 0x0)
/usr/local/go/src/compress/flate/inflate.go:347 +0x79
compress/gzip.(*Reader).Read(0xc0002322c0, 0xc0004b0000, 0x8000, 0x8000, 0x2000, 0x0, 0x0)
/usr/local/go/src/compress/gzip/gunzip.go:251 +0x87
net/http.(*gzipReader).Read(0xc000098080, 0xc0004b0000, 0x8000, 0x8000, 0x2000, 0x0, 0x0)
/usr/local/go/src/net/http/transport.go:2828 +0xcd
io.ReadAll(0x7f4306c279b8, 0xc000098080, 0xc000098080, 0x7f4306c279b8, 0xc000098080, 0x0, 0xab26f0)
/usr/local/go/src/io/io.go:633 +0xdf
io/ioutil.ReadAll(...)
/usr/local/go/src/io/ioutil/ioutil.go:27
main.(*Exporter).collect(0xc0002a4000, 0xc000292060, 0x0, 0x0)
/app/apache_exporter.go:298 +0x3c8
main.(*Exporter).Collect(0xc0002a4000, 0xc000292060)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 452 [select, 1 minutes]:
net/http.(*persistConn).readLoop(0xc0002ca000)
/usr/local/go/src/net/http/transport.go:2203 +0x967
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 453 [select, 1 minutes]:
net/http.(*persistConn).writeLoop(0xc0002ca000)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-09T17:09:58.370Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-09T17:09:58.372Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-09T17:09:58.372Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-09T17:09:58.372Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-09T17:09:58.372Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-09T17:09:58.372Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000080800)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000080800)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc000093d01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.goschedImpl(0xc00010a780)
/usr/local/go/src/runtime/proc.go:3333 +0xda
runtime.gopreempt_m(0xc00010a780)
/usr/local/go/src/runtime/proc.go:3361 +0x34
runtime.newstack()
/usr/local/go/src/runtime/stack.go:1045 +0x1bc
runtime.morestack()
/usr/local/go/src/runtime/asm_amd64.s:458 +0x8f
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f6839832f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000128118, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc000128100, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc000128100, 0x81521c987a3ae801, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc0001170c8, 0x62f2951e, 0xc0001dfb48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc0001170c8, 0xc0001dfb98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc00016a000, 0xab76f0, 0xc0001170c8, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc0001170c8, 0xc00016a000, 0x0, 0x0, 0xaaf020, 0xc00028a320, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc00016a000, 0x0, 0x0, 0xaaf020, 0xc00028a320, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 19 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 22 [chan receive]:
main.main.func1(0xaaf020, 0xc00028a320)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 26 [runnable]:
hash/crc32.Update(0x7f6800000000, 0xc0001b8000, 0xc00054a000, 0xf0, 0x1000, 0x0)
/usr/local/go/src/hash/crc32/crc32.go:214 +0x15a
compress/gzip.(*Writer).Write(0xc0001b3550, 0xc00054a000, 0xf0, 0x1000, 0x0, 0xc00008f610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:195 +0x85
bufio.(*Writer).Flush(0xc000142f00, 0xc00008f6d0, 0xc00008f620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc000142f00, 0xc00008f7c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc0001b3550, 0xc00028a730, 0xf0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc00028a730, 0xc000286cd8, 0xa30c88)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f68397ae278, 0xc000134550, 0xc000310000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc00011b650, 0x7f68397ae278, 0xc000134550, 0xc000310000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f68397ae278, 0xc000134550, 0xc000310000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc000122a20, 0x7f68397ae278, 0xc000134550, 0xc000310000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc00016a0e0, 0xc000310000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc000122ba0, 0xab7900, 0xc00016a0e0, 0xc000310000)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc00016a0e0, 0xc000310000)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc00016a000, 0xab7900, 0xc00016a0e0, 0xc000310000)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc00017c000, 0xab8818, 0xc0001422c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 27 [IO wait]:
internal/poll.runtime_pollWait(0x7f6839832e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000128198, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000128180, 0xc000122e51, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000128180, 0xc000122e51, 0x1, 0x1, 0x461f80, 0x461f80, 0xc000132600)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0001200a8, 0xc000122e51, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc000122e40)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 49 [IO wait]:
internal/poll.runtime_pollWait(0x7f6839832d48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000128298, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000128280, 0xc00034a000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000128280, 0xc00034a000, 0x1000, 0x1000, 0x439c3c, 0xc000266c38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc000322028, 0xc00034a000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0001a0b40, 0xc00034a000, 0x1000, 0x1000, 0xc0002d2240, 0xc000266d40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc000132d20)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc000132d20, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0001a0b40)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 50 [select]:
net/http.(*persistConn).writeLoop(0xc0001a0b40)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-09T20:09:52.581Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-09T20:09:52.582Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-09T20:09:52.582Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-09T20:09:52.582Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-09T20:09:52.583Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-09T20:09:52.583Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc00028e800)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc00028e800)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc00008b500)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait, 6 minutes]:
internal/poll.runtime_pollWait(0x7f9fda662f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a418, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00002a400, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00002a400, 0x75aa87a286f1b601, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00000d200, 0x62f2bf12, 0xc000113b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00000d200, 0xc000113b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0001ee000, 0xab76f0, 0xc00000d200, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00000d200, 0xc0001ee000, 0x0, 0x0, 0xaaf020, 0xc00007c2d0, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0001ee000, 0x0, 0x0, 0xaaf020, 0xc00007c2d0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 9 [syscall, 6 minutes]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 12 [chan receive, 6 minutes]:
main.main.func1(0xaaf020, 0xc00007c2d0)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 16 [runnable]:
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f9fda47a3b8, 0xc0000d00a0, 0xc00016a000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:201 +0x60f
net/http.HandlerFunc.ServeHTTP(0xc0001b8c40, 0x7f9fda47a3b8, 0xc0000d00a0, 0xc00016a000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f9fda47a3b8, 0xc0000d00a0, 0xc00016a000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc000185a10, 0x7f9fda47a3b8, 0xc0000d00a0, 0xc00016a000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0001ee1c0, 0xc00016a000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc000185b90, 0xab7900, 0xc0001ee1c0, 0xc00016a000)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0001ee1c0, 0xc00016a000)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0001ee000, 0xab7900, 0xc0001ee1c0, 0xc00016a000)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc000020960, 0xab8818, 0xc0001b2540)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 147 [IO wait]:
internal/poll.runtime_pollWait(0x7f9fda662d48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000274098, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000274080, 0xc00011d000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000274080, 0xc00011d000, 0x1000, 0x1000, 0x439c3c, 0xc0000a3c38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00028c000, 0xc00011d000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0001c4000, 0xc00011d000, 0x1000, 0x1000, 0xc0001b41e0, 0xc0000a3d40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc0000c6180)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc0000c6180, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0001c4000)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 148 [select]:
net/http.(*persistConn).writeLoop(0xc0001c4000)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
goroutine 144 [IO wait]:
internal/poll.runtime_pollWait(0x7f9fda662e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a498, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a480, 0xc000185e41, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a480, 0xc000185e41, 0x1, 0x1, 0xc0002869c0, 0x0, 0x0)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00000e158, 0xc000185e41, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc000185e30)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
[ OK ]
level=info ts=2022-08-09T23:09:53.595Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-09T23:09:53.596Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-09T23:09:53.596Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-09T23:09:53.596Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-09T23:09:53.596Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-09T23:09:53.597Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc0006a2000)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc0006a2000)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc000217f01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f2c7d5eef18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00016e618, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00016e600, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00016e600, 0x44009319ba5f7201, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00011b7e8, 0x62f2e942, 0xc000179b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00011b7e8, 0xc000179b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc000308000, 0xab76f0, 0xc00011b7e8, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00011b7e8, 0xc000308000, 0x0, 0x0, 0xaaf020, 0xc00028e1e0, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc000308000, 0x0, 0x0, 0xaaf020, 0xc00028e1e0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 26 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 29 [chan receive]:
main.main.func1(0xaaf020, 0xc00028e1e0)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 35 [runnable]:
hash/crc32.Update(0x7f2c00000000, 0xc000150000, 0xc00059e000, 0xf0, 0x1000, 0x0)
/usr/local/go/src/hash/crc32/crc32.go:214 +0x15a
compress/gzip.(*Writer).Write(0xc0002b0e70, 0xc00059e000, 0xf0, 0x1000, 0x0, 0xc000307610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:195 +0x85
bufio.(*Writer).Flush(0xc0002bb000, 0xc0003076d0, 0xc000307620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc0002bb000, 0xc0003077c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc0002b0e70, 0xc0003d2280, 0xf0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc0003d2280, 0xc000280c30, 0xa30c88)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f2c7d4471e8, 0xc00028e3c0, 0xc0002d8100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc0001dd730, 0x7f2c7d4471e8, 0xc00028e3c0, 0xc0002d8100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f2c7d4471e8, 0xc00028e3c0, 0xc0002d8100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0001e5410, 0x7f2c7d4471e8, 0xc00028e3c0, 0xc0002d8100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc000388000, 0xc0002d8100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0001e5590, 0xab7900, 0xc000388000, 0xc0002d8100)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc000388000, 0xc0002d8100)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc000308000, 0xab7900, 0xc000388000, 0xc0002d8100)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0002908c0, 0xab8818, 0xc0002ba300)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 36 [IO wait]:
internal/poll.runtime_pollWait(0x7f2c7d5eee30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0002c6318, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0002c6300, 0xc000285271, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0002c6300, 0xc000285271, 0x1, 0x1, 0x2, 0x2, 0xaaf020)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0002b80b0, 0xc000285271, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc000285260)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 51 [IO wait]:
internal/poll.runtime_pollWait(0x7f2c7d5eed48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00016e718, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00016e700, 0xc000346000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00016e700, 0xc000346000, 0x1000, 0x1000, 0x439c3c, 0xc000108c38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0001283b0, 0xc000346000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc000138ea0, 0xc000346000, 0x1000, 0x1000, 0xc000100360, 0xc000108d40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc0002aec60)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc0002aec60, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc000138ea0)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 52 [select]:
net/http.(*persistConn).writeLoop(0xc000138ea0)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-10T02:10:02.471Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-10T02:10:02.472Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-10T02:10:02.472Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-10T02:10:02.472Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-10T02:10:02.472Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-10T02:10:02.473Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000089000)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000089000)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc0001f0c00)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait, 35 minutes]:
internal/poll.runtime_pollWait(0x7ff00e41cf18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a618, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00002a600, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00002a600, 0xae557bcd7336bd01, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00000cd20, 0x62f313ae, 0xc00015fb48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00000cd20, 0xc00015fb98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0001d2000, 0xab76f0, 0xc00000cd20, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00000cd20, 0xc0001d2000, 0x0, 0x0, 0xaaf020, 0xc0000bc280, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0001d2000, 0x0, 0x0, 0xaaf020, 0xc0000bc280, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 9 [syscall, 35 minutes]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 12 [chan receive, 35 minutes]:
main.main.func1(0xaaf020, 0xc0000bc280)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 16 [select, 1 minutes]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc00007c960, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:513 +0xb65
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7ff00e431478, 0xc0000bc0f0, 0xc000218100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc0001c8310, 0x7ff00e431478, 0xc0000bc0f0, 0xc000218100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7ff00e431478, 0xc0000bc0f0, 0xc000218100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0001c6840, 0x7ff00e431478, 0xc0000bc0f0, 0xc000218100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0001d22a0, 0xc000218100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0001c69c0, 0xab7900, 0xc0001d22a0, 0xc000218100)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0001d22a0, 0xc000218100)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0001d2000, 0xab7900, 0xc0001d22a0, 0xc000218100)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0001b0aa0, 0xab8818, 0xc00011b440)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 368 [select, 1 minutes]:
net/http.(*persistConn).writeLoop(0xc000120360)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
goroutine 364 [runnable]:
net/http.(*gzipReader).Read(0xc000180040, 0xc000512000, 0x4000, 0x4000, 0xa001, 0xc000508000, 0xa000)
/usr/local/go/src/net/http/transport.go:2809 +0x1ff
io.ReadAll(0x7ff00e432cf8, 0xc000180040, 0xc000180040, 0x7ff00e432cf8, 0xc000180040, 0x0, 0xab26f0)
/usr/local/go/src/io/io.go:633 +0xdf
io/ioutil.ReadAll(...)
/usr/local/go/src/io/ioutil/ioutil.go:27
main.(*Exporter).collect(0xc0001a00f0, 0xc00033a5a0, 0x0, 0x0)
/app/apache_exporter.go:298 +0x3c8
main.(*Exporter).Collect(0xc0001a00f0, 0xc00033a5a0)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 367 [select, 1 minutes]:
net/http.(*persistConn).readLoop(0xc000120360)
/usr/local/go/src/net/http/transport.go:2203 +0x967
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 361 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0x7ff00e41ce30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a698, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a680, 0xc0001c6c71, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a680, 0xc0001c6c71, 0x1, 0x1, 0x0, 0x0, 0x1000000010000)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00000e2d0, 0xc0001c6c71, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0001c6c60)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 363 [semacquire, 1 minutes]:
sync.runtime_Semacquire(0xc00021e088)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc00021e080)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc00021e080, 0xc00033a5a0, 0xc00033a9c0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:463 +0x2b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
[ OK ]
level=info ts=2022-08-10T05:10:29.244Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-10T05:10:29.245Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-10T05:10:29.245Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-10T05:10:29.245Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-10T05:10:29.246Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
level=info ts=2022-08-10T05:10:29.245Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc00005d800)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc00005d800)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003d800, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00006dd01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.goschedImpl(0xc000218180)
/usr/local/go/src/runtime/proc.go:3333 +0xda
runtime.gopreempt_m(0xc000218180)
/usr/local/go/src/runtime/proc.go:3361 +0x34
runtime.newstack()
/usr/local/go/src/runtime/stack.go:1045 +0x1bc
runtime.morestack()
/usr/local/go/src/runtime/asm_amd64.s:458 +0x8f
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f777f66af18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a918, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00002a900, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00002a900, 0xd402d5f0ac5a0f01, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00000d920, 0x62f33dde, 0xc00015fb48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00000d920, 0xc00015fb98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0001fe000, 0xab76f0, 0xc00000d920, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00000d920, 0xc0001fe000, 0x0, 0x0, 0xaaf020, 0xc00007cfa0, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0001fe000, 0x0, 0x0, 0xaaf020, 0xc00007cfa0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 19 [chan receive]:
main.main.func1(0xaaf020, 0xc00007cfa0)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 16 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 23 [runnable]:
compress/flate.(*huffmanEncoder).bitCounts(0xc0005ee210, 0xc0000f4900, 0x5a, 0x11f, 0xffffffff0000000f, 0x1c00000, 0xc0000955e8, 0x46cec7)
/usr/local/go/src/compress/flate/huffman_code.go:198 +0x261
compress/flate.(*huffmanEncoder).generate(0xc0005ee210, 0xc0001c4000, 0x11e, 0x11e, 0xc00000000f)
/usr/local/go/src/compress/flate/huffman_code.go:309 +0x1bc
compress/flate.(*huffmanBitWriter).indexTokens(0xc00000a3c0, 0xc000556000, 0x718, 0x4001, 0xc000095718, 0x6402fe)
/usr/local/go/src/compress/flate/huffman_bit_writer.go:570 +0x21b
compress/flate.(*huffmanBitWriter).writeBlock(0xc00000a3c0, 0xc000556000, 0x718, 0x4001, 0x0, 0xc0004dc000, 0x20f9, 0x10000)
/usr/local/go/src/compress/flate/huffman_bit_writer.go:440 +0xa8
compress/flate.(*compressor).writeBlock(0xc0006a2000, 0xc000556000, 0x717, 0x4001, 0x20f9, 0x5, 0x35)
/usr/local/go/src/compress/flate/deflate.go:170 +0xd1
compress/flate.(*compressor).deflate(0xc0006a2000)
/usr/local/go/src/compress/flate/deflate.go:415 +0x90d
compress/flate.(*compressor).close(0xc0006a2000, 0x0, 0xc000095800)
/usr/local/go/src/compress/flate/deflate.go:646 +0x50
compress/flate.(*Writer).Close(...)
/usr/local/go/src/compress/flate/deflate.go:732
compress/gzip.(*Writer).Close(0xc0005ee160, 0x0, 0x0)
/usr/local/go/src/compress/gzip/gzip.go:242 +0x6a
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f777f688738, 0xc0000a6190, 0xc0001b4000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:205 +0x5fb
net/http.HandlerFunc.ServeHTTP(0xc0001dcd20, 0x7f777f688738, 0xc0000a6190, 0xc0001b4000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f777f688738, 0xc0000a6190, 0xc0001b4000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0001f6420, 0x7f777f688738, 0xc0000a6190, 0xc0001b4000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0001fe1c0, 0xc0001b4000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0001f65a0, 0xab7900, 0xc0001fe1c0, 0xc0001b4000)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0001fe1c0, 0xc0001b4000)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0001fe000, 0xab7900, 0xc0001fe1c0, 0xc0001b4000)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0001b1ea0, 0xab8818, 0xc00011b840)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 86 [IO wait]:
internal/poll.runtime_pollWait(0x7f777f66ae30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a998, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a980, 0xc0001f6851, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a980, 0xc0001f6851, 0x1, 0x1, 0xc0002b0000, 0x0, 0xc00011b918)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00000e430, 0xc0001f6851, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0001f6840)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 92 [IO wait]:
internal/poll.runtime_pollWait(0x7f777f66ad48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000de218, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0000de200, 0xc000196000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0000de200, 0xc000196000, 0x1000, 0x1000, 0x439c3c, 0xc000104c38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0002b6120, 0xc000196000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0004f05a0, 0xc000196000, 0x1000, 0x1000, 0xc000290300, 0xc000104d40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc00038c360)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc00038c360, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0004f05a0)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 93 [select]:
net/http.(*persistConn).writeLoop(0xc0004f05a0)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-10T08:09:51.631Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-10T08:09:51.632Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-10T08:09:51.632Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-10T08:09:51.632Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-10T08:09:51.632Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-10T08:09:51.633Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000081000)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000081000)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc000083800)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f9cd7f1df18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a898, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00002a880, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00002a880, 0xb310fbaf8b58c601, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00000d050, 0x62f367d2, 0xc000167b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00000d050, 0xc000167b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc000280000, 0xab76f0, 0xc00000d050, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00000d050, 0xc000280000, 0x0, 0x0, 0xaaf020, 0xc00007ce10, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc000280000, 0x0, 0x0, 0xaaf020, 0xc00007ce10, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 11 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 14 [chan receive]:
main.main.func1(0xaaf020, 0xc00007ce10)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 50 [runnable]:
runtime.Gosched(...)
/usr/local/go/src/runtime/proc.go:292
compress/flate.newHuffmanBitWriter(...)
/usr/local/go/src/compress/flate/huffman_bit_writer.go:97
compress/flate.(*compressor).init(0xc0006be000, 0x7f9cd7f3d028, 0xc0000b45a0, 0xffffffffffffffff, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:579 +0x51
compress/flate.NewWriter(0x7f9cd7f3d028, 0xc0000b45a0, 0xffffffffffffffff, 0xa, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:671 +0x65
compress/gzip.(*Writer).Write(0xc00013a580, 0xc0000e4000, 0xee, 0x1000, 0x0, 0xc00008d610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:191 +0x305
bufio.(*Writer).Flush(0xc0001224c0, 0xc00008d6d0, 0xc00008d620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc0001224c0, 0xc00008d7c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc00013a580, 0xc000386500, 0xee, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc000386500, 0xc00041c978, 0xa30c88)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f9cd7f3b738, 0xc0000b45a0, 0xc0001bc600)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc0001f60e0, 0x7f9cd7f3b738, 0xc0000b45a0, 0xc0001bc600)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f9cd7f3b738, 0xc0000b45a0, 0xc0001bc600)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0001f83f0, 0x7f9cd7f3b738, 0xc0000b45a0, 0xc0001bc600)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0002f8000, 0xc0001bc600)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0001f8570, 0xab7900, 0xc0002f8000, 0xc0001bc600)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0002f8000, 0xc0001bc600)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc000280000, 0xab7900, 0xc0002f8000, 0xc0001bc600)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0001b9ea0, 0xab8818, 0xc000123840)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 55 [IO wait]:
internal/poll.runtime_pollWait(0x7f9cd7f1de30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a918, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a900, 0xc0001f8821, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a900, 0xc0001f8821, 0x1, 0x1, 0xc00041e060, 0x0, 0xc000123918)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00000e430, 0xc0001f8821, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0001f8810)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 98 [IO wait]:
internal/poll.runtime_pollWait(0x7f9cd7f1dd48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002ab98, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002ab80, 0xc0002d5000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002ab80, 0xc0002d5000, 0x1000, 0x1000, 0x439c3c, 0xc00010ac38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00000e538, 0xc0002d5000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0002ce480, 0xc0002d5000, 0x1000, 0x1000, 0xc0002220c0, 0xc00010ad40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc00041e120)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc00041e120, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0002ce480)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 99 [select]:
net/http.(*persistConn).writeLoop(0xc0002ce480)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-10T11:09:55.420Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-10T11:09:55.421Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-10T11:09:55.421Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-10T11:09:55.421Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-10T11:09:55.421Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-10T11:09:55.422Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 12 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc00005dc00)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc00005dc00)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00003b000, 0xb)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc00058c480)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait, 28 minutes]:
internal/poll.runtime_pollWait(0x7f465e935018, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000a8118, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc0000a8100, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc0000a8100, 0x6eb533c1b169a301, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc000097110, 0x62f3923e, 0xc000187b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc000097110, 0xc000187b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0000ea000, 0xab76f0, 0xc000097110, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc000097110, 0xc0000ea000, 0x0, 0x0, 0xaaf020, 0xc0002283c0, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0000ea000, 0x0, 0x0, 0xaaf020, 0xc0002283c0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 38 [chan receive, 28 minutes]:
main.main.func1(0xaaf020, 0xc0002283c0)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 21 [syscall, 28 minutes]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 42 [IO wait]:
internal/poll.runtime_pollWait(0x7f465e934f30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000a8198, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0000a8180, 0xc0000fe000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0000a8180, 0xc0000fe000, 0x1000, 0x1000, 0x40, 0xc0000936d0, 0xc000093700)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000a00a8, 0xc0000fe000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).Read(0xc0000a2e40, 0xc0000fe000, 0x1000, 0x1000, 0xffffffffffffffff, 0x0, 0xc0000937d0)
/usr/local/go/src/net/http/server.go:780 +0x1b9
bufio.(*Reader).fill(0xc0000b27e0)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).ReadSlice(0xc0000b27e0, 0xc00007980a, 0x34, 0xc00005d800, 0x7f46856069e0, 0xc000093810, 0x0)
/usr/local/go/src/bufio/bufio.go:360 +0x3d
bufio.(*Reader).ReadLine(0xc0000b27e0, 0x203000, 0x203000, 0x7f46856069e0, 0x0, 0xe000e000e, 0xc0000938b8)
/usr/local/go/src/bufio/bufio.go:389 +0x34
net/textproto.(*Reader).readLineSlice(0xc0000a36e0, 0xc0002d0000, 0xc0000939e8, 0x4ddfd3, 0xc0000a8180, 0xc0000ff000)
/usr/local/go/src/net/textproto/reader.go:57 +0xd6
net/textproto.(*Reader).ReadLine(...)
/usr/local/go/src/net/textproto/reader.go:38
net/http.readRequest(0xc0000b27e0, 0x0, 0xc0002d0000, 0x0, 0x0)
/usr/local/go/src/net/http/request.go:1027 +0xaa
net/http.(*conn).readRequest(0xc0000fc000, 0xab8770, 0xc0000ba2c0, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:966 +0x19d
net/http.(*conn).serve(0xc0000fc000, 0xab8818, 0xc0000ba2c0)
/usr/local/go/src/net/http/server.go:1858 +0x705
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 371 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0x7f465e934d60, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00019a018, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00019a000, 0xc0002ff000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00019a000, 0xc0002ff000, 0x1000, 0x1000, 0x439c3c, 0xc00010dc38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0001322d0, 0xc0002ff000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0002165a0, 0xc0002ff000, 0x1000, 0x1000, 0xc000250240, 0xc00010dd40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc00007a480)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc00007a480, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0002165a0)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 372 [select, 1 minutes]:
net/http.(*persistConn).writeLoop(0xc0002165a0)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-10T14:10:18.234Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-10T14:10:18.234Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-10T14:10:18.234Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-10T14:10:18.234Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-10T14:10:18.234Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-10T14:10:18.236Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc0001da400)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc0001da400)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000036000, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc000000c00)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait, 3 minutes]:
internal/poll.runtime_pollWait(0x7fdf3218ef18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000194118, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc000194100, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc000194100, 0x890a325ef49ed901, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc000183308, 0x62f3bc6e, 0xc000113b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc000183308, 0xc000113b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc00028c000, 0xab76f0, 0xc000183308, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc000183308, 0xc00028c000, 0x0, 0x0, 0xaaf020, 0xc00007c370, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc00028c000, 0x0, 0x0, 0xaaf020, 0xc00007c370, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 12 [runnable]:
compress/flate.(*compressor).findMatch(0xc0005b8000, 0x11dc, 0x1127, 0x3, 0x125, 0x19, 0x81, 0xc0002fc001)
/usr/local/go/src/compress/flate/deflate.go:233 +0x37e
compress/flate.(*compressor).deflate(0xc0005b8000)
/usr/local/go/src/compress/flate/deflate.go:443 +0x826
compress/flate.(*compressor).write(0xc0005b8000, 0xc0002fc000, 0xc7, 0x1000, 0x1000, 0x1b7375c9, 0x0)
/usr/local/go/src/compress/flate/deflate.go:554 +0x85
compress/flate.(*Writer).Write(...)
/usr/local/go/src/compress/flate/deflate.go:712
compress/gzip.(*Writer).Write(0xc000228210, 0xc0002fc000, 0xc7, 0x1000, 0x0, 0xc00008f610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:196 +0xc5
bufio.(*Writer).Flush(0xc0000c0d40, 0xc00008f6d0, 0xc00008f620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc0000c0d40, 0xc00008f7c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc000228210, 0xc0001aa7d0, 0xc7, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc0001aa7d0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7fdf31fa31e8, 0xc0001aa460, 0xc000242000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc000187e30, 0x7fdf31fa31e8, 0xc0001aa460, 0xc000242000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7fdf31fa31e8, 0xc0001aa460, 0xc000242000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc00018f5c0, 0x7fdf31fa31e8, 0xc0001aa460, 0xc000242000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc00028c0e0, 0xc000242000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc00018f740, 0xab7900, 0xc00028c0e0, 0xc000242000)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc00028c0e0, 0xc000242000)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc00028c000, 0xab7900, 0xc00028c0e0, 0xc000242000)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc000020960, 0xab8818, 0xc00022c280)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 11 [syscall, 3 minutes]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 37 [chan receive, 3 minutes]:
main.main.func1(0xaaf020, 0xc00007c370)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 32 [IO wait]:
internal/poll.runtime_pollWait(0x7fdf3218ee30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a318, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a300, 0xc0002070c1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a300, 0xc0002070c1, 0x1, 0x1, 0xc0000bede0, 0x0, 0xc00022c358)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00000e0b8, 0xc0002070c1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0002070b0)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 135 [IO wait]:
internal/poll.runtime_pollWait(0x7fdf3218ed48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00027a198, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00027a180, 0xc0003f3000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00027a180, 0xc0003f3000, 0x1000, 0x1000, 0x439c3c, 0xc000097c38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00034a0e8, 0xc0003f3000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0000ca360, 0xc0003f3000, 0x1000, 0x1000, 0xc0000943c0, 0xc000097d40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc000300780)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc000300780, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0000ca360)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 136 [select]:
net/http.(*persistConn).writeLoop(0xc0000ca360)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-10T17:10:12.999Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-10T17:10:13.001Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-10T17:10:13.001Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-10T17:10:13.001Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-10T17:10:13.001Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-10T17:10:13.002Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000308000)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000308000)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000036000, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc000295f01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7fc937182f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000b2098, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc0000b2080, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc0000b2080, 0xe7c2689cbea59b01, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc000094900, 0x62f3e69e, 0xc000167b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc000094900, 0xc000167b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0000da000, 0xab76f0, 0xc000094900, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc000094900, 0xc0000da000, 0x0, 0x0, 0xaaf020, 0xc00007cf00, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0000da000, 0x0, 0x0, 0xaaf020, 0xc00007cf00, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 33 [select]:
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect(0xc00002a580, 0xc000098840)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:312 +0x695
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 14 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 21 [chan receive]:
main.main.func1(0xaaf020, 0xc00007cf00)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 25 [runnable]:
runtime.Gosched(...)
/usr/local/go/src/runtime/proc.go:292
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc00007c960, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:540 +0xe5e
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7fc9371c2278, 0xc00009a550, 0xc0000fe000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc00009ea10, 0x7fc9371c2278, 0xc00009a550, 0xc0000fe000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7fc9371c2278, 0xc00009a550, 0xc0000fe000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0000a49f0, 0x7fc9371c2278, 0xc00009a550, 0xc0000fe000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0000da0e0, 0xc0000fe000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0000a4b70, 0xab7900, 0xc0000da0e0, 0xc0000fe000)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0000da0e0, 0xc0000fe000)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0000da000, 0xab7900, 0xc0000da0e0, 0xc0000fe000)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0000ec000, 0xab8818, 0xc0000ac2c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 26 [IO wait]:
internal/poll.runtime_pollWait(0x7fc937182e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000b2118, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0000b2100, 0xc0000a4e21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0000b2100, 0xc0000a4e21, 0x1, 0x1, 0x461f80, 0x461f80, 0xc000098600)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000a60a0, 0xc0000a4e21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0000a4e10)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 27 [runnable]:
syscall.Getenv(0xa0783c, 0x7, 0x0, 0x0, 0x0)
/usr/local/go/src/syscall/env_unix.go:83 +0xbb
os.Getenv(0xa0783c, 0x7, 0x0, 0x0)
/usr/local/go/src/os/env.go:103 +0x4d
net/http.(*Transport).onceSetNextProtoDefaults(0xc0000ae000)
/usr/local/go/src/net/http/transport.go:362 +0x5f
sync.(*Once).doSlow(0xc0000ae110, 0xc00010c660)
/usr/local/go/src/sync/once.go:68 +0xec
sync.(*Once).Do(...)
/usr/local/go/src/sync/once.go:59
net/http.(*Transport).roundTrip(0xc0000ae000, 0xc0001bc400, 0x30, 0x9db900, 0xffaaaabfeaaaa)
/usr/local/go/src/net/http/transport.go:503 +0x111c
net/http.(*Transport).RoundTrip(0xc0000ae000, 0xc0001bc400, 0xc0000ae000, 0x0, 0x0)
/usr/local/go/src/net/http/roundtrip.go:17 +0x35
net/http.send(0xc0001bc400, 0xaaf4e0, 0xc0000ae000, 0x0, 0x0, 0x0, 0xc00000e3a8, 0x203000, 0x1, 0x0)
/usr/local/go/src/net/http/client.go:251 +0x454
net/http.(*Client).send(0xc0000a4570, 0xc0001bc400, 0x0, 0x0, 0x0, 0xc00000e3a8, 0x0, 0x1, 0xc0001bc400)
/usr/local/go/src/net/http/client.go:175 +0xff
net/http.(*Client).do(0xc0000a4570, 0xc0001bc400, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/client.go:717 +0x45f
net/http.(*Client).Do(...)
/usr/local/go/src/net/http/client.go:585
main.(*Exporter).collect(0xc0000b0000, 0xc000098840, 0x0, 0x0)
/app/apache_exporter.go:291 +0x177
main.(*Exporter).Collect(0xc0000b0000, 0xc000098840)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:457 +0x5ce
goroutine 28 [runnable]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc00009c1c0, 0xc000098840, 0xc0000988a0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 29 [runnable]:
syscall.Syscall(0x0, 0x8, 0xc0002aa900, 0x300, 0x158, 0x300, 0x0)
/usr/local/go/src/syscall/asm_linux_amd64.s:20 +0x5
syscall.read(0x8, 0xc0002aa900, 0x300, 0x300, 0x0, 0x0, 0x7fc95de57da8)
/usr/local/go/src/syscall/zsyscall_linux_amd64.go:686 +0x5a
syscall.Read(...)
/usr/local/go/src/syscall/syscall_unix.go:187
internal/poll.ignoringEINTRIO(...)
/usr/local/go/src/internal/poll/fd_unix.go:581
internal/poll.(*FD).Read(0xc000098a20, 0xc0002aa900, 0x300, 0x300, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:162 +0x145
os.(*File).read(...)
/usr/local/go/src/os/file_posix.go:31
os.(*File).Read(0xc0000a60b0, 0xc0002aa900, 0x300, 0x300, 0x200, 0xc0002aa000, 0xc0002aa000)
/usr/local/go/src/os/file.go:117 +0x77
io.(*LimitedReader).Read(0xc000094948, 0xc0002aa900, 0x300, 0x300, 0x901, 0xc0002aa000, 0x900)
/usr/local/go/src/io/io.go:473 +0x63
io.ReadAll(0xaaf2e0, 0xc000094948, 0x0, 0x0, 0xc0000a60b0, 0x0, 0x0)
/usr/local/go/src/io/io.go:633 +0xdf
io/ioutil.ReadAll(...)
/usr/local/go/src/io/ioutil/ioutil.go:27
github.com/prometheus/procfs/internal/util.ReadFileNoStat(0xc00009c270, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/internal/util/readfile.go:37 +0xfd
github.com/prometheus/procfs.FS.Stat(0xa05a30, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/stat.go:169 +0x18d
github.com/prometheus/procfs.ProcStat.StartTime(0x53b61, 0xc00009c210, 0xf, 0xd9c178, 0x1, 0x1, 0x53b5e, 0x53b5e, 0x0, 0xffffffffffffffff, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/proc_stat.go:179 +0x85
github.com/prometheus/client_golang/prometheus.(*processCollector).processCollect(0xc00007c9b0, 0xc000098840)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector_other.go:44 +0xe78
github.com/prometheus/client_golang/prometheus.(*processCollector).Collect(0xc00007c9b0, 0xc000098840)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector.go:138 +0x33
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 34 [waiting]:
runtime.ReadMemStats(0xc000234000)
/usr/local/go/src/runtime/mstats.go:473 +0x36
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect.func1(0xc00002a580, 0xc000234000, 0xc00023a000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:286 +0x38
created by github.com/prometheus/client_golang/prometheus.(*goCollector).Collect
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:285 +0xa9
[ OK ]
level=info ts=2022-08-10T20:09:52.259Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-10T20:09:52.260Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-10T20:09:52.260Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-10T20:09:52.260Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-10T20:09:52.260Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-10T20:09:52.261Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000380000)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000380000)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000036000, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc000069f01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f7f4c526f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a198, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00002a180, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00002a180, 0x1920e4edba6ac801, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00000d140, 0x62f41092, 0xc0001efb48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00000d140, 0xc0001efb98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc00014a000, 0xab76f0, 0xc00000d140, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00000d140, 0xc00014a000, 0x0, 0x0, 0xaaf020, 0xc0000d43c0, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc00014a000, 0x0, 0x0, 0xaaf020, 0xc0000d43c0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 21 [select]:
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect(0xc00002a080, 0xc00007a8a0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:312 +0x695
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 8 [syscall]:
os/signal.signal_recv(0xc0000587ae)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 11 [chan receive]:
main.main.func1(0xaaf020, 0xc0000d43c0)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 15 [runnable]:
runtime.Gosched(...)
/usr/local/go/src/runtime/proc.go:292
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc000198910, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:540 +0xe5e
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f7f4c4e2278, 0xc00007c5f0, 0xc00016e000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc000125650, 0x7f7f4c4e2278, 0xc00007c5f0, 0xc00016e000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f7f4c4e2278, 0xc00007c5f0, 0xc00016e000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc000110b70, 0x7f7f4c4e2278, 0xc00007c5f0, 0xc00016e000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc00014a0e0, 0xc00016e000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc000110cf0, 0xab7900, 0xc00014a0e0, 0xc00016e000)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc00014a0e0, 0xc00016e000)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc00014a000, 0xab7900, 0xc00014a0e0, 0xc00016e000)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0000201e0, 0xab8818, 0xc00012e2c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 16 [runnable]:
net/http.(*connReader).backgroundRead(0xc000110f90)
/usr/local/go/src/net/http/server.go:671
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 49 [runnable]:
syscall.Syscall(0x0, 0x8, 0xc0002ac200, 0x200, 0x200, 0x200, 0x0)
/usr/local/go/src/syscall/asm_linux_amd64.s:20 +0x5
syscall.read(0x8, 0xc0002ac200, 0x200, 0x200, 0x0, 0x4c01ec, 0x48)
/usr/local/go/src/syscall/zsyscall_linux_amd64.go:686 +0x5a
syscall.Read(...)
/usr/local/go/src/syscall/syscall_unix.go:187
internal/poll.ignoringEINTRIO(...)
/usr/local/go/src/internal/poll/fd_unix.go:581
internal/poll.(*FD).Read(0xc000094a20, 0xc0002ac200, 0x200, 0x200, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:162 +0x145
os.(*File).read(...)
/usr/local/go/src/os/file_posix.go:31
os.(*File).Read(0xc00009e178, 0xc0002ac200, 0x200, 0x200, 0x9463a0, 0x990b01, 0xc0002ac200)
/usr/local/go/src/os/file.go:117 +0x77
io.(*LimitedReader).Read(0xc00009c3f0, 0xc0002ac200, 0x200, 0x200, 0xc00009c3f0, 0xc000161008, 0xc00005c800)
/usr/local/go/src/io/io.go:473 +0x63
io.ReadAll(0xaaf2e0, 0xc00009c3f0, 0x0, 0x0, 0xc00009e178, 0x0, 0x0)
/usr/local/go/src/io/io.go:633 +0xdf
io/ioutil.ReadAll(...)
/usr/local/go/src/io/ioutil/ioutil.go:27
github.com/prometheus/procfs/internal/util.ReadFileNoStat(0xc0000b2770, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/internal/util/readfile.go:37 +0xfd
github.com/prometheus/procfs.FS.Stat(0xa05a30, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/stat.go:169 +0x18d
github.com/prometheus/procfs.ProcStat.StartTime(0xee5f1, 0xc0000b2700, 0xf, 0xd9c178, 0x1, 0x1, 0xee5ef, 0xee5ef, 0x0, 0xffffffffffffffff, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/proc_stat.go:179 +0x85
github.com/prometheus/client_golang/prometheus.(*processCollector).processCollect(0xc000198960, 0xc00007a8a0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector_other.go:44 +0xe78
github.com/prometheus/client_golang/prometheus.(*processCollector).Collect(0xc000198960, 0xc00007a8a0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector.go:138 +0x33
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:457 +0x5ce
goroutine 50 [runnable]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc000022230, 0xc00007a8a0, 0xc00007a900)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 51 [runnable]:
syscall.Getenv(0xa0783c, 0x7, 0x0, 0x0, 0x0)
/usr/local/go/src/syscall/env_unix.go:83 +0xbb
os.Getenv(0xa0783c, 0x7, 0x40de10, 0x7f7f731f0108)
/usr/local/go/src/os/env.go:103 +0x4d
net/http.(*Transport).onceSetNextProtoDefaults(0xc000130000)
/usr/local/go/src/net/http/transport.go:362 +0x5f
sync.(*Once).doSlow(0xc000130110, 0xc00010c660)
/usr/local/go/src/sync/once.go:68 +0xec
sync.(*Once).Do(...)
/usr/local/go/src/sync/once.go:59
net/http.(*Transport).roundTrip(0xc000130000, 0xc00016e100, 0x30, 0x9db900, 0xd)
/usr/local/go/src/net/http/transport.go:503 +0x111c
net/http.(*Transport).RoundTrip(0xc000130000, 0xc00016e100, 0xc000130000, 0x0, 0x0)
/usr/local/go/src/net/http/roundtrip.go:17 +0x35
net/http.send(0xc00016e100, 0xaaf4e0, 0xc000130000, 0x0, 0x0, 0x0, 0xc00000e0d0, 0x203000, 0x1, 0x0)
/usr/local/go/src/net/http/client.go:251 +0x454
net/http.(*Client).send(0xc0001106f0, 0xc00016e100, 0x0, 0x0, 0x0, 0xc00000e0d0, 0x0, 0x1, 0xc00016e100)
/usr/local/go/src/net/http/client.go:175 +0xff
net/http.(*Client).do(0xc0001106f0, 0xc00016e100, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/client.go:717 +0x45f
net/http.(*Client).Do(...)
/usr/local/go/src/net/http/client.go:585
main.(*Exporter).collect(0xc000132000, 0xc00007a8a0, 0x0, 0x0)
/app/apache_exporter.go:291 +0x177
main.(*Exporter).Collect(0xc000132000, 0xc00007a8a0)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 22 [waiting]:
runtime.ReadMemStats(0xc000256000)
/usr/local/go/src/runtime/mstats.go:473 +0x36
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect.func1(0xc00002a080, 0xc000256000, 0xc0001a00c0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:286 +0x38
created by github.com/prometheus/client_golang/prometheus.(*goCollector).Collect
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:285 +0xa9
[ OK ]
level=info ts=2022-08-10T20:59:01.591Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-10T20:59:01.594Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-10T20:59:01.594Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-10T20:59:01.594Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-10T20:59:01.594Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-10T20:59:01.595Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc00005cc00)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc00005cc00)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00002c000, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc000001200)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7ff4db76ef18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a118, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00002a100, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00002a100, 0xddebf2ee99cb101, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00000cb70, 0x62f41c2b, 0xc000113b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00000cb70, 0xc000113b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc00024e000, 0xab76f0, 0xc00000cb70, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00000cb70, 0xc00024e000, 0x0, 0x0, 0xaaf020, 0xc00018a280, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc00024e000, 0x0, 0x0, 0xaaf020, 0xc00018a280, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 8 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 11 [chan receive]:
main.main.func1(0xaaf020, 0xc00018a280)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 15 [runnable]:
runtime.Gosched(...)
/usr/local/go/src/runtime/proc.go:292
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc0000c8910, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:540 +0xe5e
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7ff4db6e7ab8, 0xc00007c730, 0xc000210100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc0002271f0, 0x7ff4db6e7ab8, 0xc00007c730, 0xc000210100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7ff4db6e7ab8, 0xc00007c730, 0xc000210100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc000213590, 0x7ff4db6e7ab8, 0xc00007c730, 0xc000210100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc00024e0e0, 0xc000210100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc000213710, 0xab7900, 0xc00024e0e0, 0xc000210100)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc00024e0e0, 0xc000210100)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc00024e000, 0xab7900, 0xc00024e0e0, 0xc000210100)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc000020be0, 0xab8818, 0xc000214440)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 16 [IO wait]:
internal/poll.runtime_pollWait(0x7ff4db76ee30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a198, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a180, 0xc0002139c1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a180, 0xc0002139c1, 0x1, 0x1, 0x461f80, 0x461f80, 0xc00007a8a0)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00000e168, 0xc0002139c1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0002139b0)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 49 [runnable]:
syscall.Getenv(0xa0783c, 0x7, 0x0, 0x0, 0x0)
/usr/local/go/src/syscall/env_unix.go:83 +0xbb
os.Getenv(0xa0783c, 0x7, 0x0, 0x0)
/usr/local/go/src/os/env.go:103 +0x4d
net/http.(*Transport).onceSetNextProtoDefaults(0xc00022a280)
/usr/local/go/src/net/http/transport.go:362 +0x5f
sync.(*Once).doSlow(0xc00022a390, 0xc000097660)
/usr/local/go/src/sync/once.go:68 +0xec
sync.(*Once).Do(...)
/usr/local/go/src/sync/once.go:59
net/http.(*Transport).roundTrip(0xc00022a280, 0xc000210200, 0x30, 0x9db900, 0x0)
/usr/local/go/src/net/http/transport.go:503 +0x111c
net/http.(*Transport).RoundTrip(0xc00022a280, 0xc000210200, 0xc00022a280, 0x0, 0x0)
/usr/local/go/src/net/http/roundtrip.go:17 +0x35
net/http.send(0xc000210200, 0xaaf4e0, 0xc00022a280, 0x0, 0x0, 0x0, 0xc0000bc228, 0x418257, 0x1, 0x0)
/usr/local/go/src/net/http/client.go:251 +0x454
net/http.(*Client).send(0xc000213110, 0xc000210200, 0x0, 0x0, 0x0, 0xc0000bc228, 0x0, 0x1, 0xc000210200)
/usr/local/go/src/net/http/client.go:175 +0xff
net/http.(*Client).do(0xc000213110, 0xc000210200, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/client.go:717 +0x45f
net/http.(*Client).Do(...)
/usr/local/go/src/net/http/client.go:585
main.(*Exporter).collect(0xc00022c690, 0xc00007aae0, 0x0, 0x0)
/app/apache_exporter.go:291 +0x177
main.(*Exporter).Collect(0xc00022c690, 0xc00007aae0)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:457 +0x5ce
goroutine 50 [semacquire]:
sync.runtime_Semacquire(0xc0000222d8)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc0000222d0)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc0000222d0, 0xc00007aae0, 0xc00007ab40)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:463 +0x2b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 51 [runnable]:
fmt.(*ss).okVerb(0xc00007ac60, 0x66, 0xa08cbd, 0x8, 0xa07e6a, 0x7, 0x0)
/usr/local/go/src/fmt/scan.go:520 +0x1cc
fmt.(*ss).scanOne(0xc00007ac60, 0x66, 0x92c700, 0xc0001628b0)
/usr/local/go/src/fmt/scan.go:1006 +0xe92
fmt.(*ss).doScanf(0xc00007ac60, 0xa172b2, 0x20, 0xc00028cfc0, 0xb, 0xb, 0x9, 0x0, 0x0)
/usr/local/go/src/fmt/scan.go:1230 +0x2a5
fmt.Fscanf(0xaaefe0, 0xc00009fc50, 0xa172b2, 0x20, 0xc00028cfc0, 0xb, 0xb, 0xc00014d220, 0x838, 0xde0)
/usr/local/go/src/fmt/scan.go:143 +0xd9
fmt.Sscanf(...)
/usr/local/go/src/fmt/scan.go:114
github.com/prometheus/procfs.parseCPUStat(0xc0001627d0, 0x4b, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/stat.go:89 +0x228
github.com/prometheus/procfs.FS.Stat(0xa05a30, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/stat.go:224 +0x4a6
github.com/prometheus/procfs.ProcStat.StartTime(0x15836, 0xc000022320, 0xf, 0xd9c178, 0x1, 0x1, 0x15835, 0x15835, 0x0, 0xffffffffffffffff, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/proc_stat.go:179 +0x85
github.com/prometheus/client_golang/prometheus.(*processCollector).processCollect(0xc0000c8960, 0xc00007aae0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector_other.go:44 +0xe78
github.com/prometheus/client_golang/prometheus.(*processCollector).Collect(0xc0000c8960, 0xc00007aae0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector.go:138 +0x33
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
[ OK ]
level=info ts=2022-08-10T23:09:53.549Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-10T23:09:53.550Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-10T23:09:53.550Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-10T23:09:53.550Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-10T23:09:53.550Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-10T23:09:53.556Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000380000)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000380000)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000036000, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc000069f01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7fe98968df18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000256098, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc000256080, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc000256080, 0x945d49b5e30ba601, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc000206900, 0x62f43adf, 0xc000167b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc000206900, 0xc000167b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc00025a000, 0xab76f0, 0xc000206900, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc000206900, 0xc00025a000, 0x0, 0x0, 0xaaf020, 0xc0000b44b0, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc00025a000, 0x0, 0x0, 0xaaf020, 0xc0000b44b0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 8 [syscall]:
os/signal.signal_recv(0x46cda6)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 36 [chan receive]:
main.main.func1(0xaaf020, 0xc0000b44b0)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 40 [runnable]:
runtime.Gosched(...)
/usr/local/go/src/runtime/proc.go:292
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc00007c960, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:540 +0xe5e
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7fe98964d278, 0xc00020a500, 0xc00027e000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc00021aa10, 0x7fe98964d278, 0xc00020a500, 0xc00027e000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7fe98964d278, 0xc00020a500, 0xc00027e000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0002209f0, 0x7fe98964d278, 0xc00020a500, 0xc00027e000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc00025a0e0, 0xc00027e000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc000220b70, 0xab7900, 0xc00025a0e0, 0xc00027e000)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc00025a0e0, 0xc00027e000)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc00025a000, 0xab7900, 0xc00025a0e0, 0xc00027e000)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc00026c000, 0xab8818, 0xc0002282c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 41 [runnable]:
net/http.(*connReader).backgroundRead(0xc000220e10)
/usr/local/go/src/net/http/server.go:671
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 42 [runnable]:
fmt.newScanState(0xaaed20, 0xc0000a3c80, 0x9a0001, 0xc0002a4000, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/fmt/scan.go:385 +0x85
fmt.Fscan(0xaaed20, 0xc0000a3c80, 0xc0003176b8, 0x16, 0x16, 0x1, 0x17, 0x11)
/usr/local/go/src/fmt/scan.go:122 +0x54
github.com/prometheus/procfs.Proc.Stat(0x6f2da, 0xa05a30, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/proc_stat.go:134 +0x6c7
github.com/prometheus/client_golang/prometheus.(*processCollector).processCollect(0xc00007c9b0, 0xc0002007e0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector_other.go:40 +0x366
github.com/prometheus/client_golang/prometheus.(*processCollector).Collect(0xc00007c9b0, 0xc0002007e0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector.go:138 +0x33
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:457 +0x5ce
goroutine 43 [runnable]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc0002181c0, 0xc0002007e0, 0xc000200840)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 44 [runnable]:
syscall.Getenv(0xa0783c, 0x7, 0x0, 0x0, 0x0)
/usr/local/go/src/syscall/env_unix.go:83 +0xbb
os.Getenv(0xa0783c, 0x7, 0x40de10, 0x7fe9b0357a68)
/usr/local/go/src/os/env.go:103 +0x4d
net/http.(*Transport).onceSetNextProtoDefaults(0xc00022a000)
/usr/local/go/src/net/http/transport.go:362 +0x5f
sync.(*Once).doSlow(0xc00022a110, 0xc000272660)
/usr/local/go/src/sync/once.go:68 +0xec
sync.(*Once).Do(...)
/usr/local/go/src/sync/once.go:59
net/http.(*Transport).roundTrip(0xc00022a000, 0xc00027e100, 0x30, 0x9db900, 0xd)
/usr/local/go/src/net/http/transport.go:503 +0x111c
net/http.(*Transport).RoundTrip(0xc00022a000, 0xc00027e100, 0xc00022a000, 0x0, 0x0)
/usr/local/go/src/net/http/roundtrip.go:17 +0x35
net/http.send(0xc00027e100, 0xaaf4e0, 0xc00022a000, 0x0, 0x0, 0x0, 0xc0002220b8, 0x203000, 0x1, 0x0)
/usr/local/go/src/net/http/client.go:251 +0x454
net/http.(*Client).send(0xc000220570, 0xc00027e100, 0x0, 0x0, 0x0, 0xc0002220b8, 0x0, 0x1, 0xc00027e100)
/usr/local/go/src/net/http/client.go:175 +0xff
net/http.(*Client).do(0xc000220570, 0xc00027e100, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/client.go:717 +0x45f
net/http.(*Client).Do(...)
/usr/local/go/src/net/http/client.go:585
main.(*Exporter).collect(0xc00022c000, 0xc0002007e0, 0x0, 0x0)
/app/apache_exporter.go:291 +0x177
main.(*Exporter).Collect(0xc00022c000, 0xc0002007e0)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 9 [select]:
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect(0xc0000a8000, 0xc0002007e0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:312 +0x695
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 10 [waiting]:
runtime.ReadMemStats(0xc0001ce000)
/usr/local/go/src/runtime/mstats.go:473 +0x36
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect.func1(0xc0000a8000, 0xc0001ce000, 0xc00007e120)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:286 +0x38
created by github.com/prometheus/client_golang/prometheus.(*goCollector).Collect
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:285 +0xa9
[ OK ]
level=info ts=2022-08-11T00:06:58.412Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-11T00:06:58.412Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-11T00:06:58.412Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-11T00:06:58.412Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-11T00:06:58.412Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-11T00:06:58.413Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc00005cc00)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc00005cc00)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000036000, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00008df01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f496d69df18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0002c6318, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc0002c6300, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc0002c6300, 0xa2537e4c702d7101, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc0002809f0, 0x62f4483b, 0xc000187b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc0002809f0, 0xc000187b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc000318000, 0xab76f0, 0xc0002809f0, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc0002809f0, 0xc000318000, 0x0, 0x0, 0xaaf020, 0xc00028e1e0, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc000318000, 0x0, 0x0, 0xaaf020, 0xc00028e1e0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 22 [select]:
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect(0xc000176500, 0xc0002aecc0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:312 +0x695
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 36 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 53 [chan receive]:
main.main.func1(0xaaf020, 0xc00028e1e0)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 57 [runnable]:
runtime.Gosched(...)
/usr/local/go/src/runtime/proc.go:292
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc000108960, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:540 +0xe5e
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f496d4fd3b8, 0xc00028e730, 0xc0002d8100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc000316000, 0x7f496d4fd3b8, 0xc00028e730, 0xc0002d8100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f496d4fd3b8, 0xc00028e730, 0xc0002d8100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0002859e0, 0x7f496d4fd3b8, 0xc00028e730, 0xc0002d8100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0003180e0, 0xc0002d8100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc000285b60, 0xab7900, 0xc0003180e0, 0xc0002d8100)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0003180e0, 0xc0002d8100)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc000318000, 0xab7900, 0xc0003180e0, 0xc0002d8100)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc000290a00, 0xab8818, 0xc0002ba540)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 58 [runnable]:
net/http.(*connReader).backgroundRead(0xc000285e00)
/usr/local/go/src/net/http/server.go:671
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 59 [runnable]:
fmt.(*buffer).writeRune(0xc0000c8430, 0x31)
/usr/local/go/src/fmt/print.go:89 +0x20b
fmt.(*ss).consume(0xc0000c8420, 0xa0a93c, 0xb, 0xa04c01, 0x1)
/usr/local/go/src/fmt/scan.go:486 +0x98
fmt.(*ss).accept(...)
/usr/local/go/src/fmt/scan.go:516
fmt.(*ss).scanNumber(0xc0000c8420, 0xa0a93c, 0xb, 0x0, 0x0, 0x0)
/usr/local/go/src/fmt/scan.go:595 +0x51
fmt.(*ss).scanUint(0xc0000c8420, 0x76, 0x40, 0x0)
/usr/local/go/src/fmt/scan.go:686 +0x105
fmt.(*ss).scanOne(0xc0000c8420, 0x7f4900000076, 0x9376c0, 0xc0000f8050)
/usr/local/go/src/fmt/scan.go:986 +0x78e
fmt.(*ss).doScan(0xc0000c8420, 0xc0003036b8, 0x16, 0x16, 0x6, 0x0, 0x0)
/usr/local/go/src/fmt/scan.go:1073 +0xb6
fmt.Fscan(0xaaed20, 0xc0000a8c60, 0xc0003036b8, 0x16, 0x16, 0x1, 0x17, 0x11)
/usr/local/go/src/fmt/scan.go:123 +0xb9
github.com/prometheus/procfs.Proc.Stat(0x9062f, 0xa05a30, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/proc_stat.go:134 +0x6c7
github.com/prometheus/client_golang/prometheus.(*processCollector).processCollect(0xc0001089b0, 0xc0002aecc0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector_other.go:40 +0x366
github.com/prometheus/client_golang/prometheus.(*processCollector).Collect(0xc0001089b0, 0xc0002aecc0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector.go:138 +0x33
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:457 +0x5ce
goroutine 60 [runnable]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc0002b27c0, 0xc0002aecc0, 0xc0002aed20)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 61 [runnable]:
syscall.Getenv(0xa0783c, 0x7, 0x0, 0x0, 0x0)
/usr/local/go/src/syscall/env_unix.go:83 +0xbb
os.Getenv(0xa0783c, 0x7, 0x40de10, 0x7f4994367f18)
/usr/local/go/src/os/env.go:103 +0x4d
net/http.(*Transport).onceSetNextProtoDefaults(0xc000292640)
/usr/local/go/src/net/http/transport.go:362 +0x5f
sync.(*Once).doSlow(0xc000292750, 0xc00032e660)
/usr/local/go/src/sync/once.go:68 +0xec
sync.(*Once).Do(...)
/usr/local/go/src/sync/once.go:59
net/http.(*Transport).roundTrip(0xc000292640, 0xc0002d8200, 0x20300000000000, 0x7f496da35fff, 0x7f496d4f8c80)
/usr/local/go/src/net/http/transport.go:503 +0x111c
net/http.(*Transport).RoundTrip(0xc000292640, 0xc0002d8200, 0xc000292640, 0x0, 0x0)
/usr/local/go/src/net/http/roundtrip.go:17 +0x35
net/http.send(0xc0002d8200, 0xaaf4e0, 0xc000292640, 0x0, 0x0, 0x0, 0xc0002b8160, 0x203000, 0x1, 0x0)
/usr/local/go/src/net/http/client.go:251 +0x454
net/http.(*Client).send(0xc000285560, 0xc0002d8200, 0x0, 0x0, 0x0, 0xc0002b8160, 0x0, 0x1, 0xc0002d8200)
/usr/local/go/src/net/http/client.go:175 +0xff
net/http.(*Client).do(0xc000285560, 0xc0002d8200, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/client.go:717 +0x45f
net/http.(*Client).Do(...)
/usr/local/go/src/net/http/client.go:585
main.(*Exporter).collect(0xc0002ce870, 0xc0002aecc0, 0x0, 0x0)
/app/apache_exporter.go:291 +0x177
main.(*Exporter).Collect(0xc0002ce870, 0xc0002aecc0)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 23 [waiting]:
runtime.ReadMemStats(0xc0001e7800)
/usr/local/go/src/runtime/mstats.go:473 +0x36
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect.func1(0xc000176500, 0xc0001e7800, 0xc00010a120)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:286 +0x38
created by github.com/prometheus/client_golang/prometheus.(*goCollector).Collect
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:285 +0xa9
[ OK ]
level=info ts=2022-08-11T02:09:53.395Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-11T02:09:53.397Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-11T02:09:53.397Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-11T02:09:53.397Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-11T02:09:53.397Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-11T02:09:53.397Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000080400)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000080400)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0x0, 0xc00002e800, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0xc00002e800, 0xc00002e800)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.handoffp(0xc00002e800)
/usr/local/go/src/runtime/proc.go:2412 +0x65
runtime.entersyscallblock_handoff()
/usr/local/go/src/runtime/proc.go:3687 +0x30
runtime.systemstack(0x0)
/usr/local/go/src/runtime/asm_amd64.s:379 +0x66
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1246
goroutine 25 [syscall]:
runtime.notetsleepg(0xe108b8, 0xffffffffffffffff, 0x2401)
/usr/local/go/src/runtime/lock_futex.go:235 +0x34 fp=0xc000093318 sp=0xc0000932e8 pc=0x40c474
runtime.gcBgMarkStartWorkers()
/usr/local/go/src/runtime/mgc.go:1837 +0x50 fp=0xc000093340 sp=0xc000093318 pc=0x41d930
runtime.gcStart(0x0, 0x0, 0x0)
/usr/local/go/src/runtime/mgc.go:1358 +0x1ca fp=0xc0000933b8 sp=0xc000093340 pc=0x41c30a
runtime.mallocgc(0x10004, 0x9754a0, 0xc000580001, 0xc000524000)
/usr/local/go/src/runtime/malloc.go:1166 +0x495 fp=0xc000093440 sp=0xc0000933b8 pc=0x40da55
runtime.makeslice(0x9754a0, 0x0, 0x4001, 0xc000524000)
/usr/local/go/src/runtime/slice.go:98 +0x6c fp=0xc000093470 sp=0xc000093440 pc=0x44ea2c
compress/flate.(*compressor).initDeflate(...)
/usr/local/go/src/compress/flate/deflate.go:374
compress/flate.(*compressor).init(0xc000580000, 0x7fbb08346200, 0xc000120eb0, 0xffffffffffffffff, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:602 +0x629 fp=0xc000093500 sp=0xc000093470 pc=0x642029
compress/flate.NewWriter(0x7fbb08346200, 0xc000120eb0, 0xffffffffffffffff, 0xa, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:671 +0x65 fp=0xc000093548 sp=0xc000093500 pc=0x6427a5
compress/gzip.(*Writer).Write(0xc000250d10, 0xc000518000, 0xef, 0x1000, 0x0, 0xc000093610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:191 +0x305 fp=0xc000093598 sp=0xc000093548 pc=0x64d4a5
bufio.(*Writer).Flush(0xc00021cfc0, 0xc0000936d0, 0xc000093620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b fp=0xc0000935f8 sp=0xc000093598 pc=0x5558bb
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc00021cfc0, 0xc0000937c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f fp=0xc000093620 sp=0xc0000935f8 pc=0x7fc00f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc000250d10, 0xc000121180, 0xef, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a fp=0xc0000937a8 sp=0xc000093620 pc=0x7f9eea
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc000121180, 0xc0000af2f0, 0xa30c88)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d fp=0xc0000937e8 sp=0xc0000937a8 pc=0x7fbd9d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/common/expfmt.(*encoderCloser).Encode(0xc0002fceb0, 0xc000121180, 0xa1cc8f, 0x28)
<autogenerated>:1 +0x42 fp=0xc000093810 sp=0xc0000937e8 pc=0x7fc4a2
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7fbb0833fcb8, 0xc000120eb0, 0xc0001ce200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469 fp=0xc0000939c0 sp=0xc000093810 pc=0x8172c9
net/http.HandlerFunc.ServeHTTP(0xc0001d8310, 0x7fbb0833fcb8, 0xc000120eb0, 0xc0001ce200)
/usr/local/go/src/net/http/server.go:2049 +0x44 fp=0xc0000939e8 sp=0xc0000939c0 pc=0x6ae744
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7fbb0833fcb8, 0xc000120eb0, 0xc0001ce200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab fp=0xc000093a50 sp=0xc0000939e8 pc=0x817b4b
net/http.HandlerFunc.ServeHTTP(0xc0001d66f0, 0x7fbb0833fcb8, 0xc000120eb0, 0xc0001ce200)
/usr/local/go/src/net/http/server.go:2049 +0x44 fp=0xc000093a78 sp=0xc000093a50 pc=0x6ae744
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0001e40e0, 0xc0001ce200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf fp=0xc000093ae8 sp=0xc000093a78 pc=0x817c7f
net/http.HandlerFunc.ServeHTTP(0xc0001d6870, 0xab7900, 0xc0001e40e0, 0xc0001ce200)
/usr/local/go/src/net/http/server.go:2049 +0x44 fp=0xc000093b10 sp=0xc000093ae8 pc=0x6ae744
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0001e40e0, 0xc0001ce200)
/usr/local/go/src/net/http/server.go:2428 +0x1ad fp=0xc000093b70 sp=0xc000093b10 pc=0x6b05cd
net/http.serverHandler.ServeHTTP(0xc0001e4000, 0xab7900, 0xc0001e40e0, 0xc0001ce200)
/usr/local/go/src/net/http/server.go:2867 +0xa3 fp=0xc000093ba0 sp=0xc000093b70 pc=0x6b1d03
net/http.(*conn).serve(0xc0001ca960, 0xab8818, 0xc000111440)
/usr/local/go/src/net/http/server.go:1932 +0x8cd fp=0xc000093fc8 sp=0xc000093ba0 pc=0x6ad22d
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1371 +0x1 fp=0xc000093fd0 sp=0xc000093fc8 pc=0x46cda1
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7fbb08327f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00016c598, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00016c580, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00016c580, 0x43e35c44bde7b901, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00011ec78, 0x62f4650f, 0xc000177b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00011ec78, 0xc000177b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0001e4000, 0xab76f0, 0xc00011ec78, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00011ec78, 0xc0001e4000, 0x0, 0x0, 0xaaf020, 0xc00007c550, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0001e4000, 0x0, 0x0, 0xaaf020, 0xc00007c550, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 49 [syscall]:
os/signal.signal_recv(0x46cda6)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 21 [chan receive]:
main.main.func1(0xaaf020, 0xc00007c550)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 26 [IO wait]:
internal/poll.runtime_pollWait(0x7fbb08327e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00016c618, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00016c600, 0xc0001d6b21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00016c600, 0xc0001d6b21, 0x1, 0x1, 0x461f80, 0x461f80, 0xc00010d1a0)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00010a2b8, 0xc0001d6b21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0001d6b10)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 16 [IO wait]:
internal/poll.runtime_pollWait(0x7fbb08327d48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000c6118, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0000c6100, 0xc000308000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0000c6100, 0xc000308000, 0x1000, 0x1000, 0x439c3c, 0xc0001fac38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00000e1c0, 0xc000308000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0002207e0, 0xc000308000, 0x1000, 0x1000, 0xc000094240, 0xc0001fad40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc00010d8c0)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc00010d8c0, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0002207e0)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 65 [select]:
net/http.(*persistConn).writeLoop(0xc0002207e0)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-11T05:10:57.217Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-11T05:10:57.217Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-11T05:10:57.217Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-11T05:10:57.217Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-11T05:10:57.218Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-11T05:10:57.218Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc00005c800)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc00005c800)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000038800, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc000001080)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7ff05af8b018, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a118, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00002a100, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00002a100, 0x60fe71c4b252901, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00000cbd0, 0x62f48f7b, 0xc0000f9b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00000cbd0, 0xc0000f9b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc00024e000, 0xab76f0, 0xc00000cbd0, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00000cbd0, 0xc00024e000, 0x0, 0x0, 0xaaf020, 0xc000114280, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc00024e000, 0x0, 0x0, 0xaaf020, 0xc000114280, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 20 [runnable]:
syscall.Getenv(0xa0783c, 0x7, 0x0, 0x0, 0x0)
/usr/local/go/src/syscall/env_unix.go:83 +0xbb
os.Getenv(0xa0783c, 0x7, 0x0, 0x0)
/usr/local/go/src/os/env.go:103 +0x4d
net/http.(*Transport).onceSetNextProtoDefaults(0xc00022a280)
/usr/local/go/src/net/http/transport.go:362 +0x5f
sync.(*Once).doSlow(0xc00022a390, 0xc000119660)
/usr/local/go/src/sync/once.go:68 +0xec
sync.(*Once).Do(...)
/usr/local/go/src/sync/once.go:59
net/http.(*Transport).roundTrip(0xc00022a280, 0xc0001ce200, 0x30, 0x9db900, 0x7ff05b0ea500)
/usr/local/go/src/net/http/transport.go:503 +0x111c
net/http.(*Transport).RoundTrip(0xc00022a280, 0xc0001ce200, 0xc00022a280, 0x0, 0x0)
/usr/local/go/src/net/http/roundtrip.go:17 +0x35
net/http.send(0xc0001ce200, 0xaaf4e0, 0xc00022a280, 0x0, 0x0, 0x0, 0xc00008e238, 0x203000, 0x1, 0x0)
/usr/local/go/src/net/http/client.go:251 +0x454
net/http.(*Client).send(0xc000211110, 0xc0001ce200, 0x0, 0x0, 0x0, 0xc00008e238, 0x0, 0x1, 0xc0001ce200)
/usr/local/go/src/net/http/client.go:175 +0xff
net/http.(*Client).do(0xc000211110, 0xc0001ce200, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/client.go:717 +0x45f
net/http.(*Client).Do(...)
/usr/local/go/src/net/http/client.go:585
main.(*Exporter).collect(0xc00022c690, 0xc00007ac00, 0x0, 0x0)
/app/apache_exporter.go:291 +0x177
main.(*Exporter).Collect(0xc00022c690, 0xc00007ac00)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 10 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 13 [chan receive]:
main.main.func1(0xaaf020, 0xc000114280)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 49 [select]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc0000a2910, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:513 +0xb65
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7ff05addfab8, 0xc000228780, 0xc00020e100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc0002251f0, 0x7ff05addfab8, 0xc000228780, 0xc00020e100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7ff05addfab8, 0xc000228780, 0xc00020e100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc000211590, 0x7ff05addfab8, 0xc000228780, 0xc00020e100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc00024e0e0, 0xc00020e100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc000211710, 0xab7900, 0xc00024e0e0, 0xc00020e100)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc00024e0e0, 0xc00020e100)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc00024e000, 0xab7900, 0xc00024e0e0, 0xc00020e100)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc000020b40, 0xab8818, 0xc000212440)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 50 [IO wait]:
internal/poll.runtime_pollWait(0x7ff05af8af30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a198, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a180, 0xc0002119c1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a180, 0xc0002119c1, 0x1, 0x1, 0x461f80, 0x461f80, 0xc00007a9c0)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00000e170, 0xc0002119c1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0002119b0)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 51 [runnable]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:442
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:457 +0x5ce
goroutine 52 [semacquire]:
sync.runtime_Semacquire(0xc0000222d8)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc0000222d0)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc0000222d0, 0xc00007ac00, 0xc00007ac60)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:463 +0x2b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 53 [runnable]:
path/filepath.Clean(0xc000024198, 0x11, 0x3, 0xa04cbf)
/usr/local/go/src/path/filepath/path.go:89 +0xcbe
path/filepath.join(0xc00009df20, 0x3, 0x3, 0xc00001e320, 0x2)
/usr/local/go/src/path/filepath/path_unix.go:45 +0xbf
path/filepath.Join(...)
/usr/local/go/src/path/filepath/path.go:213
github.com/prometheus/procfs/internal/fs.FS.Path(...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/internal/fs/fs.go:54
github.com/prometheus/procfs.Proc.path(0x841a9, 0xa05a30, 0x5, 0xc0002646a8, 0x1, 0x1, 0xc000022300, 0xc000204fa8)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/proc.go:288 +0x195
github.com/prometheus/procfs.Proc.Stat(0x841a9, 0xa05a30, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/proc_stat.go:116 +0xe5
github.com/prometheus/client_golang/prometheus.(*processCollector).processCollect(0xc0000a2960, 0xc00007ac00)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector_other.go:40 +0x366
github.com/prometheus/client_golang/prometheus.(*processCollector).Collect(0xc0000a2960, 0xc00007ac00)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector.go:138 +0x33
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
[ OK ]
level=info ts=2022-08-11T08:09:49.497Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-11T08:09:49.498Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-11T08:09:49.498Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-11T08:09:49.498Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-11T08:09:49.498Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-11T08:09:49.499Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc00005d400)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc00005d400)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000036000, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc000082600)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7fcdffe16f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000248318, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc000248300, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc000248300, 0x962214c50501901, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc000206a50, 0x62f4b96f, 0xc000113b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc000206a50, 0xc000113b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc000310000, 0xab76f0, 0xc000206a50, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc000206a50, 0xc000310000, 0x0, 0x0, 0xaaf020, 0xc00020a2d0, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc000310000, 0x0, 0x0, 0xaaf020, 0xc00020a2d0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 21 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 40 [chan receive]:
main.main.func1(0xaaf020, 0xc00020a2d0)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 44 [syscall]:
compress/flate.newHuffmanBitWriter(...)
/usr/local/go/src/compress/flate/huffman_bit_writer.go:99
compress/flate.(*compressor).init(0xc000600000, 0x7fcdffbaf008, 0xc00020a820, 0xffffffffffffffff, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:579 +0xa9
compress/flate.NewWriter(0x7fcdffbaf008, 0xc00020a820, 0xffffffffffffffff, 0xa, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:671 +0x65
compress/gzip.(*Writer).Write(0xc0003a8000, 0xc0003aa000, 0xee, 0x1000, 0x0, 0xc00008f610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:191 +0x305
bufio.(*Writer).Flush(0xc00023c780, 0xc00008f6d0, 0xc00008f620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc00023c780, 0xc00008f7c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc0003a8000, 0xc000394280, 0xee, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc000394280, 0xc00039a930, 0xa30c88)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7fcdffdd24b8, 0xc00020a820, 0xc00025a100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc00030e000, 0x7fcdffdd24b8, 0xc00020a820, 0xc00025a100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7fcdffdd24b8, 0xc00020a820, 0xc00025a100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc00020d9e0, 0x7fcdffdd24b8, 0xc00020a820, 0xc00025a100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0003100e0, 0xc00025a100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc00020db60, 0xab7900, 0xc0003100e0, 0xc00025a100)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0003100e0, 0xc00025a100)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc000310000, 0xab7900, 0xc0003100e0, 0xc00025a100)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0002168c0, 0xab8818, 0xc00023c540)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 45 [IO wait]:
internal/poll.runtime_pollWait(0x7fcdffe16e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000248398, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000248380, 0xc00020de11, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000248380, 0xc00020de11, 0x1, 0x1, 0x461f80, 0x461f80, 0xc000200c00)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00023a148, 0xc00020de11, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc00020de00)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 9 [IO wait]:
internal/poll.runtime_pollWait(0x7fcdffe16d48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000108598, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000108580, 0xc0001ce000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000108580, 0xc0001ce000, 0x1000, 0x1000, 0x439c3c, 0xc00009ac38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000bc2f8, 0xc0001ce000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0000caea0, 0xc0001ce000, 0x1000, 0x1000, 0xc000094300, 0xc00009ad40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc000201440)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc000201440, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0000caea0)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 10 [select]:
net/http.(*persistConn).writeLoop(0xc0000caea0)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-11T11:09:56.378Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-11T11:09:56.378Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-11T11:09:56.378Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-11T11:09:56.378Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-11T11:09:56.378Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-11T11:09:56.379Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000200400)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000200400)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000036000, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00030ff01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f5b3ed7df18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000b0118, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc0000b0100, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc0000b0100, 0xea108ecc39f8a901, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00009f0b0, 0x62f4e39f, 0xc00015fb48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00009f0b0, 0xc00015fb98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0000f2000, 0xab76f0, 0xc00009f0b0, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00009f0b0, 0xc0000f2000, 0x0, 0x0, 0xaaf020, 0xc0002c0500, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0000f2000, 0x0, 0x0, 0xaaf020, 0xc0002c0500, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 18 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 21 [chan receive]:
main.main.func1(0xaaf020, 0xc0002c0500)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 25 [runnable]:
runtime.Gosched(...)
/usr/local/go/src/runtime/proc.go:292
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc00007c960, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:540 +0xe5e
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f5b3edbd278, 0xc0000bc500, 0xc000320000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc0000a3650, 0x7f5b3edbd278, 0xc0000bc500, 0xc000320000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f5b3edbd278, 0xc0000bc500, 0xc000320000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0000aaa20, 0x7f5b3edbd278, 0xc0000bc500, 0xc000320000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0000f20e0, 0xc000320000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0000aaba0, 0xab7900, 0xc0000f20e0, 0xc000320000)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0000f20e0, 0xc000320000)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0000f2000, 0xab7900, 0xc0000f20e0, 0xc000320000)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0000f4000, 0xab8818, 0xc0000ca2c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 26 [runnable]:
net/http.(*connReader).backgroundRead(0xc0000aae40)
/usr/local/go/src/net/http/server.go:671
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 27 [runnable]:
syscall.Getenv(0xa0783c, 0x7, 0x0, 0x0, 0x0)
/usr/local/go/src/syscall/env_unix.go:83 +0xbb
os.Getenv(0xa0783c, 0x7, 0x0, 0x0)
/usr/local/go/src/os/env.go:103 +0x4d
net/http.(*Transport).onceSetNextProtoDefaults(0xc0000cc000)
/usr/local/go/src/net/http/transport.go:362 +0x5f
sync.(*Once).doSlow(0xc0000cc110, 0xc000105660)
/usr/local/go/src/sync/once.go:68 +0xec
sync.(*Once).Do(...)
/usr/local/go/src/sync/once.go:59
net/http.(*Transport).roundTrip(0xc0000cc000, 0xc0001b4200, 0x30, 0x9db900, 0x7f5b3ef24500)
/usr/local/go/src/net/http/transport.go:503 +0x111c
net/http.(*Transport).RoundTrip(0xc0000cc000, 0xc0001b4200, 0xc0000cc000, 0x0, 0x0)
/usr/local/go/src/net/http/roundtrip.go:17 +0x35
net/http.send(0xc0001b4200, 0xaaf4e0, 0xc0000cc000, 0x0, 0x0, 0x0, 0xc00000e238, 0x203000, 0x1, 0x0)
/usr/local/go/src/net/http/client.go:251 +0x454
net/http.(*Client).send(0xc0000aa5a0, 0xc0001b4200, 0x0, 0x0, 0x0, 0xc00000e238, 0x0, 0x1, 0xc0001b4200)
/usr/local/go/src/net/http/client.go:175 +0xff
net/http.(*Client).do(0xc0000aa5a0, 0xc0001b4200, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/client.go:717 +0x45f
net/http.(*Client).Do(...)
/usr/local/go/src/net/http/client.go:585
main.(*Exporter).collect(0xc0000ce000, 0xc0000ba7e0, 0x0, 0x0)
/app/apache_exporter.go:291 +0x177
main.(*Exporter).Collect(0xc0000ce000, 0xc0000ba7e0)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:457 +0x5ce
goroutine 28 [runnable]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc0000c61c0, 0xc0000ba7e0, 0xc0000ba840)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 29 [runnable]:
github.com/prometheus/procfs.parseCPUStat(0xc0000f0120, 0x54, 0x3, 0x1, 0xb, 0x0, 0x0, 0x2, 0x0, 0x0, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/stat.go:85 +0x7ae
github.com/prometheus/procfs.FS.Stat(0xa05a30, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/stat.go:224 +0x4a6
github.com/prometheus/procfs.ProcStat.StartTime(0x4e94f, 0xc0000c6210, 0xf, 0xd9c178, 0x1, 0x1, 0x4e94e, 0x4e94e, 0x0, 0xffffffffffffffff, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/proc_stat.go:179 +0x85
github.com/prometheus/client_golang/prometheus.(*processCollector).processCollect(0xc00007c9b0, 0xc0000ba7e0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector_other.go:44 +0xe78
github.com/prometheus/client_golang/prometheus.(*processCollector).Collect(0xc00007c9b0, 0xc0000ba7e0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector.go:138 +0x33
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 41 [runnable]:
runtime/debug.readGCStats(0xc0002bbf38)
/usr/local/go/src/runtime/mstats.go:556 +0x58
runtime/debug.ReadGCStats(0xc0002bbf10)
/usr/local/go/src/runtime/debug/garbage.go:48 +0x52
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect(0xc0000b0000, 0xc0000ba7e0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:300 +0x29f
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 42 [runnable]:
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect.func1(0xc0000b0000, 0xc0002fa000, 0xc0002ec1e0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:285
created by github.com/prometheus/client_golang/prometheus.(*goCollector).Collect
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:285 +0xa9
[ OK ]
level=info ts=2022-08-11T14:10:09.961Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-11T14:10:09.964Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-11T14:10:09.964Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-11T14:10:09.964Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-11T14:10:09.964Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-11T14:10:09.966Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc00005d800)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc00005d800)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00002c000, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc000252780)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f40795b5f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0002d8018, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc0002d8000, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc0002d8000, 0x5801aa331d93c701, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00028e888, 0x62f50dcf, 0xc00015fb48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00028e888, 0xc00015fb98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0002d6000, 0xab76f0, 0xc00028e888, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00028e888, 0xc0002d6000, 0x0, 0x0, 0xaaf020, 0xc0002403c0, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0002d6000, 0x0, 0x0, 0xaaf020, 0xc0002403c0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 37 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 51 [chan receive]:
main.main.func1(0xaaf020, 0xc0002403c0)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 55 [syscall]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc00007c960, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:411 +0x85
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f4079531278, 0xc0000bc730, 0xc0001b4300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc00028aa10, 0x7f4079531278, 0xc0000bc730, 0xc0001b4300)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f4079531278, 0xc0000bc730, 0xc0001b4300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0002969f0, 0x7f4079531278, 0xc0000bc730, 0xc0001b4300)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc00027e1c0, 0xc0001b4300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc000296b70, 0xab7900, 0xc00027e1c0, 0xc0001b4300)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc00027e1c0, 0xc0001b4300)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0002d6000, 0xab7900, 0xc00027e1c0, 0xc0001b4300)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0002ea000, 0xab8818, 0xc00029e2c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 23 [IO wait]:
internal/poll.runtime_pollWait(0x7f40795b5e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0002d8098, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0002d8080, 0xc000296e21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0002d8080, 0xc000296e21, 0x1, 0x1, 0xc00007ad20, 0x0, 0xc00029e398)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc000298098, 0xc000296e21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc000296e10)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
[ OK ]
level=info ts=2022-08-11T17:09:57.666Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-11T17:09:57.667Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-11T17:09:57.667Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-11T17:09:57.667Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-11T17:09:57.667Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-11T17:09:57.668Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000089000)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000089000)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000036000, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc00008ad80)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f6bd9828018, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000f8318, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc0000f8300, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc0000f8300, 0xeff2d9d348328501, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc0000b69d8, 0x62f537ff, 0xc00016fb48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc0000b69d8, 0xc00016fb98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0002ba000, 0xab76f0, 0xc0000b69d8, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc0000b69d8, 0xc0002ba000, 0x0, 0x0, 0xaaf020, 0xc0000cc1e0, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0002ba000, 0x0, 0x0, 0xaaf020, 0xc0000cc1e0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 10 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 37 [chan receive]:
main.main.func1(0xaaf020, 0xc0000cc1e0)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 41 [runnable]:
runtime.Gosched(...)
/usr/local/go/src/runtime/proc.go:292
compress/flate.(*compressor).initDeflate(...)
/usr/local/go/src/compress/flate/deflate.go:374
compress/flate.(*compressor).init(0xc000500000, 0x7f6bd9600958, 0xc0000cc730, 0xffffffffffffffff, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:602 +0x629
compress/flate.NewWriter(0x7f6bd9600958, 0xc0000cc730, 0xffffffffffffffff, 0xa, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:671 +0x65
compress/gzip.(*Writer).Write(0xc0000e4dc0, 0xc0004ca000, 0xf0, 0x1000, 0x0, 0xc0002d5610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:191 +0x305
bufio.(*Writer).Flush(0xc0000ed200, 0xc0002d56d0, 0xc0002d5620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc0000ed200, 0xc0002d57c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc0000e4dc0, 0xc00007ce10, 0xf0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc00007ce10, 0xc00000d4d0, 0xa30c88)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f6bd98634b8, 0xc0000cc730, 0xc000288100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc0002b8000, 0x7f6bd98634b8, 0xc0000cc730, 0xc000288100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f6bd98634b8, 0xc0000cc730, 0xc000288100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0000a9b30, 0x7f6bd98634b8, 0xc0000cc730, 0xc000288100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0002ba0e0, 0xc000288100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0000a9cb0, 0xab7900, 0xc0002ba0e0, 0xc000288100)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0002ba0e0, 0xc000288100)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0002ba000, 0xab7900, 0xc0002ba0e0, 0xc000288100)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0000baa00, 0xab8818, 0xc0000ec540)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 42 [IO wait]:
internal/poll.runtime_pollWait(0x7f6bd9827f30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000f8398, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0000f8380, 0xc0000a9f61, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0000f8380, 0xc0000a9f61, 0x1, 0x1, 0x461f80, 0x461f80, 0xc0000e2a80)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000ea140, 0xc0000a9f61, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0000a9f50)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 12 [IO wait]:
internal/poll.runtime_pollWait(0x7f6bd9827e48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000f8498, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0000f8480, 0xc000236000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0000f8480, 0xc000236000, 0x1000, 0x1000, 0x439c3c, 0xc0000a5c38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000ea288, 0xc000236000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc000286b40, 0xc000236000, 0x1000, 0x1000, 0xc00009c600, 0xc0000a5d40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc0000e3020)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc0000e3020, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc000286b40)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 13 [select]:
net/http.(*persistConn).writeLoop(0xc000286b40)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-11T20:09:57.226Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-11T20:09:57.227Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-11T20:09:57.227Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-11T20:09:57.227Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-11T20:09:57.227Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-11T20:09:57.228Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000310000)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000310000)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000036000, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc000069f01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7ff8ad125f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000b0118, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc0000b0100, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc0000b0100, 0x5f4e2fed5a2a2101, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00009f350, 0x62f5622f, 0xc00015fb48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00009f350, 0xc00015fb98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc000294000, 0xab76f0, 0xc00009f350, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00009f350, 0xc000294000, 0x0, 0x0, 0xaaf020, 0xc000206280, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc000294000, 0x0, 0x0, 0xaaf020, 0xc000206280, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 9 [select]:
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect(0xc0000b0000, 0xc0000baae0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:312 +0x695
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 20 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 23 [chan receive]:
main.main.func1(0xaaf020, 0xc000206280)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 27 [runnable]:
runtime.Gosched(...)
/usr/local/go/src/runtime/proc.go:292
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc00007c960, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:540 +0xe5e
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7ff8ad166ab8, 0xc0000bc6e0, 0xc0000cc100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc0000a3e30, 0x7ff8ad166ab8, 0xc0000bc6e0, 0xc0000cc100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7ff8ad166ab8, 0xc0000bc6e0, 0xc0000cc100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0000ab5c0, 0x7ff8ad166ab8, 0xc0000bc6e0, 0xc0000cc100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0002940e0, 0xc0000cc100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0000ab740, 0xab7900, 0xc0002940e0, 0xc0000cc100)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0002940e0, 0xc0000cc100)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc000294000, 0xab7900, 0xc0002940e0, 0xc0000cc100)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0000d6aa0, 0xab8818, 0xc0000d0440)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 28 [runnable]:
net/http.(*connReader).backgroundRead(0xc0000ab9e0)
/usr/local/go/src/net/http/server.go:671
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 29 [runnable]:
runtime.SetFinalizer(0x962260, 0xc000204720, 0x0, 0x0)
/usr/local/go/src/runtime/mfinal.go:309 +0x80b
os.(*file).close(0xc000204720, 0xc000076070, 0xc00027e000)
/usr/local/go/src/os/file_unix.go:259 +0x105
os.(*File).Close(0xc0002380a8, 0xc000200180, 0xc00027e000)
/usr/local/go/src/os/file_posix.go:25 +0x33
github.com/prometheus/procfs/internal/util.ReadFileNoStat(0xc0002420c0, 0x12, 0xc00027e000, 0x12e, 0x200, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/internal/util/readfile.go:37 +0x14e
github.com/prometheus/procfs.Proc.Stat(0xf48fa, 0xa05a30, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/proc_stat.go:116 +0xfd
github.com/prometheus/client_golang/prometheus.(*processCollector).processCollect(0xc00007c9b0, 0xc0000baae0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector_other.go:40 +0x366
github.com/prometheus/client_golang/prometheus.(*processCollector).Collect(0xc00007c9b0, 0xc0000baae0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector.go:138 +0x33
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:457 +0x5ce
goroutine 30 [runnable]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc0000ce280, 0xc0000baae0, 0xc0000bab40)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 31 [runnable]:
syscall.Getenv(0xa0783c, 0x7, 0x0, 0x0, 0x0)
/usr/local/go/src/syscall/env_unix.go:83 +0xbb
os.Getenv(0xa0783c, 0x7, 0x40de10, 0x7ff8d3def5b8)
/usr/local/go/src/os/env.go:103 +0x4d
net/http.(*Transport).onceSetNextProtoDefaults(0xc0000e6280)
/usr/local/go/src/net/http/transport.go:362 +0x5f
sync.(*Once).doSlow(0xc0000e6390, 0xc0002aa660)
/usr/local/go/src/sync/once.go:68 +0xec
sync.(*Once).Do(...)
/usr/local/go/src/sync/once.go:59
net/http.(*Transport).roundTrip(0xc0000e6280, 0xc0000cc200, 0x30, 0x9db900, 0xd)
/usr/local/go/src/net/http/transport.go:503 +0x111c
net/http.(*Transport).RoundTrip(0xc0000e6280, 0xc0000cc200, 0xc0000e6280, 0x0, 0x0)
/usr/local/go/src/net/http/roundtrip.go:17 +0x35
net/http.send(0xc0000cc200, 0xaaf4e0, 0xc0000e6280, 0x0, 0x0, 0x0, 0xc0000a8180, 0x203000, 0x1, 0x0)
/usr/local/go/src/net/http/client.go:251 +0x454
net/http.(*Client).send(0xc0000ab140, 0xc0000cc200, 0x0, 0x0, 0x0, 0xc0000a8180, 0x0, 0x1, 0xc0000cc200)
/usr/local/go/src/net/http/client.go:175 +0xff
net/http.(*Client).do(0xc0000ab140, 0xc0000cc200, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/client.go:717 +0x45f
net/http.(*Client).Do(...)
/usr/local/go/src/net/http/client.go:585
main.(*Exporter).collect(0xc0000e8690, 0xc0000baae0, 0x0, 0x0)
/app/apache_exporter.go:291 +0x177
main.(*Exporter).Collect(0xc0000e8690, 0xc0000baae0)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 10 [waiting]:
runtime.ReadMemStats(0xc0001c4000)
/usr/local/go/src/runtime/mstats.go:473 +0x36
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect.func1(0xc0000b0000, 0xc0001c4000, 0xc00007e120)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:286 +0x38
created by github.com/prometheus/client_golang/prometheus.(*goCollector).Collect
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:285 +0xa9
[ OK ]
level=info ts=2022-08-11T23:09:55.649Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-11T23:09:55.652Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-11T23:09:55.652Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-11T23:09:55.652Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-11T23:09:55.652Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
level=info ts=2022-08-11T23:09:55.652Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000300000)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000300000)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000036000, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc0002a7f01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7fbcc3840f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000da318, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc0000da300, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc0000da300, 0xd03d605fc596e601, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc000094a20, 0x62f58c5f, 0xc000167b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc000094a20, 0xc000167b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc000218000, 0xab76f0, 0xc000094a20, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc000094a20, 0xc000218000, 0x0, 0x0, 0xaaf020, 0xc00009a230, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc000218000, 0x0, 0x0, 0xaaf020, 0xc00009a230, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 33 [runnable]:
io.(*LimitedReader).Read(0xc0002b0078, 0xc0002c0500, 0x200, 0x200, 0x501, 0xc0002c0000, 0x500)
/usr/local/go/src/io/io.go:466 +0xc9
io.ReadAll(0xaaf2e0, 0xc0002b0078, 0x0, 0x0, 0xc0002b2018, 0x0, 0x0)
/usr/local/go/src/io/io.go:633 +0xdf
io/ioutil.ReadAll(...)
/usr/local/go/src/io/ioutil/ioutil.go:27
github.com/prometheus/procfs/internal/util.ReadFileNoStat(0xc00028a0f0, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/internal/util/readfile.go:37 +0xfd
github.com/prometheus/procfs.FS.Stat(0xa05a30, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/stat.go:169 +0x18d
github.com/prometheus/procfs.ProcStat.StartTime(0x6150d, 0xc00028a080, 0xf, 0xd9c178, 0x1, 0x1, 0x6150c, 0x6150c, 0x0, 0xffffffffffffffff, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/proc_stat.go:179 +0x85
github.com/prometheus/client_golang/prometheus.(*processCollector).processCollect(0xc00007c9b0, 0xc000098d20)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector_other.go:44 +0xe78
github.com/prometheus/client_golang/prometheus.(*processCollector).Collect(0xc00007c9b0, 0xc000098d20)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector.go:138 +0x33
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 20 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 23 [chan receive]:
main.main.func1(0xaaf020, 0xc00009a230)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 27 [runnable]:
runtime.Gosched(...)
/usr/local/go/src/runtime/proc.go:292
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc00007c960, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:540 +0xe5e
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7fbcc38844b8, 0xc00009a780, 0xc0000ec100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc000216000, 0x7fbcc38844b8, 0xc00009a780, 0xc0000ec100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7fbcc38844b8, 0xc00009a780, 0xc0000ec100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc00009d9e0, 0x7fbcc38844b8, 0xc00009a780, 0xc0000ec100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0002180e0, 0xc0000ec100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc00009db60, 0xab7900, 0xc0002180e0, 0xc0000ec100)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0002180e0, 0xc0000ec100)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc000218000, 0xab7900, 0xc0002180e0, 0xc0000ec100)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0000a68c0, 0xab8818, 0xc0000ce540)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 28 [IO wait]:
internal/poll.runtime_pollWait(0x7fbcc3840e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000da398, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0000da380, 0xc00009de11, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0000da380, 0xc00009de11, 0x1, 0x1, 0x461f80, 0x461f80, 0xc000098ae0)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000cc150, 0xc00009de11, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc00009de00)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 30 [runnable]:
sync.runtime_Semacquire(0xc0000c67c8)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc0000c67c0)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc0000c67c0, 0xc000098d20, 0xc000098d80)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:463 +0x2b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 31 [runnable]:
syscall.Getenv(0xa0783c, 0x7, 0x0, 0x0, 0x0)
/usr/local/go/src/syscall/env_unix.go:83 +0xbb
os.Getenv(0xa0783c, 0x7, 0x40de10, 0x7fbcea50a5b8)
/usr/local/go/src/os/env.go:103 +0x4d
net/http.(*Transport).onceSetNextProtoDefaults(0xc0000a8640)
/usr/local/go/src/net/http/transport.go:362 +0x5f
sync.(*Once).doSlow(0xc0000a8750, 0xc00022e660)
/usr/local/go/src/sync/once.go:68 +0xec
sync.(*Once).Do(...)
/usr/local/go/src/sync/once.go:59
net/http.(*Transport).roundTrip(0xc0000a8640, 0xc0000ec200, 0x20300000000000, 0x7fbcc3bd8fff, 0x7fbcc37fbf50)
/usr/local/go/src/net/http/transport.go:503 +0x111c
net/http.(*Transport).RoundTrip(0xc0000a8640, 0xc0000ec200, 0xc0000a8640, 0x0, 0x0)
/usr/local/go/src/net/http/roundtrip.go:17 +0x35
net/http.send(0xc0000ec200, 0xaaf4e0, 0xc0000a8640, 0x0, 0x0, 0x0, 0xc0000cc160, 0x203000, 0x1, 0x0)
/usr/local/go/src/net/http/client.go:251 +0x454
net/http.(*Client).send(0xc00009d560, 0xc0000ec200, 0x0, 0x0, 0x0, 0xc0000cc160, 0x0, 0x1, 0xc0000ec200)
/usr/local/go/src/net/http/client.go:175 +0xff
net/http.(*Client).do(0xc00009d560, 0xc0000ec200, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/client.go:717 +0x45f
net/http.(*Client).Do(...)
/usr/local/go/src/net/http/client.go:585
main.(*Exporter).collect(0xc0000e2870, 0xc000098d20, 0x0, 0x0)
/app/apache_exporter.go:291 +0x177
main.(*Exporter).Collect(0xc0000e2870, 0xc000098d20)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 13 [select]:
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect(0xc00002a580, 0xc000098d20)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:312 +0x695
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 14 [waiting]:
runtime.ReadMemStats(0xc0001c9800)
/usr/local/go/src/runtime/mstats.go:473 +0x36
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect.func1(0xc00002a580, 0xc0001c9800, 0xc00007e120)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:286 +0x38
created by github.com/prometheus/client_golang/prometheus.(*goCollector).Collect
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:285 +0xa9
[ OK ]
level=info ts=2022-08-12T02:09:55.012Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-12T02:09:55.013Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-12T02:09:55.013Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-12T02:09:55.013Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-12T02:09:55.013Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-12T02:09:55.014Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000080800)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000080800)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00002e800, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc000083380)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f8dba378f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000ce098, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc0000ce080, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc0000ce080, 0xa873b9581dafc401, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00009c960, 0x62f5b68f, 0xc000167b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00009c960, 0xc000167b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0000ea000, 0xab76f0, 0xc00009c960, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00009c960, 0xc0000ea000, 0x0, 0x0, 0xaaf020, 0xc000206280, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0000ea000, 0x0, 0x0, 0xaaf020, 0xc000206280, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 37 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 21 [chan receive]:
main.main.func1(0xaaf020, 0xc000206280)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 25 [syscall]:
net/http.(*conn).readRequest(0xc0000fc000, 0xab8770, 0xc0000c02c0, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:1017 +0x885
net/http.(*conn).serve(0xc0000fc000, 0xab8818, 0xc0000c02c0)
/usr/local/go/src/net/http/server.go:1858 +0x705
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
[ OK ]
level=info ts=2022-08-12T05:10:53.104Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-12T05:10:53.107Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-12T05:10:53.107Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-12T05:10:53.107Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-12T05:10:53.107Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
level=info ts=2022-08-12T05:10:53.107Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000089000)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000089000)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000031000, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc000001500)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7fc4ee361f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000e2318, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc0000e2300, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc0000e2300, 0x90aabdfb6e497b01, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00009ca80, 0x62f5e0fb, 0xc00015fb48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00009ca80, 0xc00015fb98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc000220000, 0xab76f0, 0xc00009ca80, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00009ca80, 0xc000220000, 0x0, 0x0, 0xaaf020, 0xc0000a2320, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc000220000, 0x0, 0x0, 0xaaf020, 0xc0000a2320, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 26 [chan receive]:
main.main.func1(0xaaf020, 0xc0000a2320)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 23 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 10 [syscall]:
net/http.(*conn).readRequest(0xc0001b1540, 0xab8770, 0xc00011b300, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:1024 +0x832
net/http.(*conn).serve(0xc0001b1540, 0xab8818, 0xc00011b300)
/usr/local/go/src/net/http/server.go:1858 +0x705
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
[ OK ]
level=info ts=2022-08-12T08:09:56.679Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-12T08:09:56.681Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-12T08:09:56.681Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-12T08:09:56.681Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-12T08:09:56.682Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
level=info ts=2022-08-12T08:09:56.681Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc00005dc00)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc00005dc00)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000036000, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc000000c00)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f75c6233f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000164818, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc000164800, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc000164800, 0x7f65263238c2f601, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc000116dc8, 0x62f60aef, 0xc00016fb48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc000116dc8, 0xc00016fb98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0001fa000, 0xab76f0, 0xc000116dc8, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc000116dc8, 0xc0001fa000, 0x0, 0x0, 0xaaf020, 0xc000118c30, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0001fa000, 0x0, 0x0, 0xaaf020, 0xc000118c30, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 8 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 24 [chan receive]:
main.main.func1(0xaaf020, 0xc000118c30)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 28 [runnable]:
runtime.Gosched(...)
/usr/local/go/src/runtime/proc.go:292
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc000118910, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:540 +0xe5e
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f75c624ddb8, 0xc00028e050, 0xc0000e2100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc0001d18f0, 0x7f75c624ddb8, 0xc00028e050, 0xc0000e2100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f75c624ddb8, 0xc00028e050, 0xc0000e2100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0001cf6e0, 0x7f75c624ddb8, 0xc00028e050, 0xc0000e2100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0001fa1c0, 0xc0000e2100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0001cf860, 0xab7900, 0xc0001fa1c0, 0xc0000e2100)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0001fa1c0, 0xc0000e2100)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0001fa000, 0xab7900, 0xc0001fa1c0, 0xc0000e2100)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0001c3180, 0xab8818, 0xc0001096c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 10 [runnable]:
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect.func1(0xc0000ce000, 0xc000323800, 0xc000120060)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:285
created by github.com/prometheus/client_golang/prometheus.(*goCollector).Collect
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:285 +0xa9
goroutine 50 [IO wait]:
internal/poll.runtime_pollWait(0x7f75c6233e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000164898, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000164880, 0xc0001cfb11, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000164880, 0xc0001cfb11, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc000102360, 0xc0001cfb11, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0001cfb00)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 51 [runnable]:
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect(0xc0000ce000, 0xc000104180)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:304 +0x34b
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:457 +0x5ce
goroutine 52 [runnable]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc0003a4140, 0xc000104180, 0xc000104240)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 53 [runnable]:
io.(*LimitedReader).Read(0xc000116048, 0xc000078400, 0x100, 0x100, 0x401, 0xc000078000, 0x400)
/usr/local/go/src/io/io.go:466 +0xc9
io.ReadAll(0xaaf2e0, 0xc000116048, 0x0, 0x0, 0xc000292020, 0x0, 0x0)
/usr/local/go/src/io/io.go:633 +0xdf
io/ioutil.ReadAll(...)
/usr/local/go/src/io/ioutil/ioutil.go:27
github.com/prometheus/procfs/internal/util.ReadFileNoStat(0xc0003a42f0, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/internal/util/readfile.go:37 +0xfd
github.com/prometheus/procfs.FS.Stat(0xa05a30, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/stat.go:169 +0x18d
github.com/prometheus/procfs.ProcStat.StartTime(0xbe4f8, 0xc0003a41c0, 0xf, 0xd9c178, 0x1, 0x1, 0xbe4f7, 0xbe4f7, 0x0, 0xffffffffffffffff, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/proc_stat.go:179 +0x85
github.com/prometheus/client_golang/prometheus.(*processCollector).processCollect(0xc000118960, 0xc000104180)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector_other.go:44 +0xe78
github.com/prometheus/client_golang/prometheus.(*processCollector).Collect(0xc000118960, 0xc000104180)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector.go:138 +0x33
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 85 [select]:
net/http.(*Transport).getConn(0xc0001cab40, 0xc000304040, 0x0, 0x7fff41a58ef8, 0x4, 0xc000114120, 0xc, 0x0, 0x0, 0x0, ...)
/usr/local/go/src/net/http/transport.go:1368 +0x589
net/http.(*Transport).roundTrip(0xc0001cab40, 0xc0001c6000, 0x30, 0x9db900, 0x0)
/usr/local/go/src/net/http/transport.go:579 +0x7eb
net/http.(*Transport).RoundTrip(0xc0001cab40, 0xc0001c6000, 0xc0001cab40, 0x0, 0x0)
/usr/local/go/src/net/http/roundtrip.go:17 +0x35
net/http.send(0xc0001c6000, 0xaaf4e0, 0xc0001cab40, 0x0, 0x0, 0x0, 0xc00000e150, 0x418257, 0x1, 0x0)
/usr/local/go/src/net/http/client.go:251 +0x454
net/http.(*Client).send(0xc0001cf260, 0xc0001c6000, 0x0, 0x0, 0x0, 0xc00000e150, 0x0, 0x1, 0xc0001c6000)
/usr/local/go/src/net/http/client.go:175 +0xff
net/http.(*Client).do(0xc0001cf260, 0xc0001c6000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/client.go:717 +0x45f
net/http.(*Client).Do(...)
/usr/local/go/src/net/http/client.go:585
main.(*Exporter).collect(0xc0001b2960, 0xc000104180, 0x0, 0x0)
/app/apache_exporter.go:291 +0x177
main.(*Exporter).Collect(0xc0001b2960, 0xc000104180)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 86 [runnable]:
net.(*Resolver).internetAddrList(0xddffe0, 0xab87a8, 0xc000114048, 0xa051b5, 0x3, 0xc000114120, 0xc, 0x0, 0x0, 0x0, ...)
/usr/local/go/src/net/ipsock.go:240 +0xbab
net.(*Resolver).resolveAddrList(0xddffe0, 0xab87a8, 0xc000114048, 0xa055d2, 0x4, 0xa051b5, 0x3, 0xc000114120, 0xc, 0x0, ...)
/usr/local/go/src/net/dial.go:221 +0x47d
net.(*Dialer).DialContext(0xde0c60, 0xab87a8, 0xc000114048, 0xa051b5, 0x3, 0xc000114120, 0xc, 0x0, 0x0, 0x0, ...)
/usr/local/go/src/net/dial.go:403 +0x22b
net/http.(*Transport).dial(0xc0001cab40, 0xab87a8, 0xc000114048, 0xa051b5, 0x3, 0xc000114120, 0xc, 0x0, 0x0, 0x0, ...)
/usr/local/go/src/net/http/transport.go:1171 +0x16f
net/http.(*Transport).dialConn(0xc0001cab40, 0xab87a8, 0xc000114048, 0x0, 0x7fff41a58ef8, 0x4, 0xc000114120, 0xc, 0x0, 0xc00011a360, ...)
/usr/local/go/src/net/http/transport.go:1600 +0x1b85
net/http.(*Transport).dialConnFor(0xc0001cab40, 0xc0003a6000)
/usr/local/go/src/net/http/transport.go:1442 +0xc6
created by net/http.(*Transport).queueForDial
/usr/local/go/src/net/http/transport.go:1411 +0x40f
[ OK ]
level=info ts=2022-08-12T11:10:10.742Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-12T11:10:10.744Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-12T11:10:10.744Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-12T11:10:10.744Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-12T11:10:10.744Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-12T11:10:10.744Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc00005dc00)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc00005dc00)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0x0, 0xc000038800, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0x100000000)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.injectglist.func1(...)
/usr/local/go/src/runtime/proc.go:3060
runtime.injectglist(0xc000193d18)
/usr/local/go/src/runtime/proc.go:3084 +0x205
runtime.wakeScavenger()
/usr/local/go/src/runtime/mgcscavenge.go:215 +0xa7
runtime.bgscavenge.func1(0x0, 0x0, 0x0)
/usr/local/go/src/runtime/mgcscavenge.go:261 +0x25
runtime.runOneTimer(0xc000033800, 0xc00007c000, 0x90fcd05f67a6ca)
/usr/local/go/src/runtime/time.go:866 +0x146
runtime.runtimer(0xc000033800, 0x90fcd05f67a6ca, 0x46e7bc)
/usr/local/go/src/runtime/time.go:774 +0xa5
runtime.checkTimers(0xc000033800, 0x90fcd05f67a6ca, 0x90fcd05f515101, 0x0, 0x400423f00)
/usr/local/go/src/runtime/proc.go:3268 +0x19a
runtime.findrunnable(0xc000033800, 0x0)
/usr/local/go/src/runtime/proc.go:2615 +0x518
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3169 +0x2d7
runtime.park_m(0xc000000c00)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f939287bf18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a918, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00002a900, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00002a900, 0x44404b0cd477c01, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00000d950, 0x62f6351f, 0xc0000e7b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00000d950, 0xc0000e7b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc00020e000, 0xab76f0, 0xc00000d950, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00000d950, 0xc00020e000, 0x0, 0x0, 0xaaf020, 0xc00007cfa0, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc00020e000, 0x0, 0x0, 0xaaf020, 0xc00007cfa0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 56 [select]:
net/http.(*persistConn).writeLoop(0xc0001fa000)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
goroutine 17 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 34 [chan receive]:
main.main.func1(0xaaf020, 0xc00007cfa0)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 38 [IO wait]:
internal/poll.runtime_pollWait(0x7f939287be30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a998, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a980, 0xc00011f000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a980, 0xc00011f000, 0x1000, 0x1000, 0x7f93928a1548, 0x800, 0x1)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00000e440, 0xc00011f000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).Read(0xc00017c840, 0xc00011f000, 0x1000, 0x1000, 0xffffffffffffffff, 0x0, 0x7f93928a1548)
/usr/local/go/src/net/http/server.go:780 +0x1b9
bufio.(*Reader).fill(0xc00007be00)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).ReadSlice(0xc00007be00, 0xa, 0x100000002, 0x4182f3, 0x7f93b9510eb8, 0xe13368, 0x5)
/usr/local/go/src/bufio/bufio.go:360 +0x3d
bufio.(*Reader).ReadLine(0xc00007be00, 0x203000, 0x203000, 0x7f93b9510eb8, 0x0, 0x7f93b95119e0, 0xc00017c0c0)
/usr/local/go/src/bufio/bufio.go:389 +0x34
net/textproto.(*Reader).readLineSlice(0xc00017c0c0, 0xc000256000, 0xc00018f9e8, 0x4ddfd3, 0xc00002a980, 0xc000222000)
/usr/local/go/src/net/textproto/reader.go:57 +0xd6
net/textproto.(*Reader).ReadLine(...)
/usr/local/go/src/net/textproto/reader.go:38
net/http.readRequest(0xc00007be00, 0x0, 0xc000256000, 0x0, 0x0)
/usr/local/go/src/net/http/request.go:1027 +0xaa
net/http.(*conn).readRequest(0xc000139e00, 0xab8770, 0xc0000a3840, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:966 +0x19d
net/http.(*conn).serve(0xc000139e00, 0xab8818, 0xc0000a3840)
/usr/local/go/src/net/http/server.go:1858 +0x705
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 55 [IO wait]:
internal/poll.runtime_pollWait(0x7f939287bd48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0005aa098, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0005aa080, 0xc000619000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0005aa080, 0xc000619000, 0x1000, 0x1000, 0x439c3c, 0xc00008cc38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0001d80b0, 0xc000619000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0001fa000, 0xc000619000, 0x1000, 0x1000, 0xc0001b2480, 0xc00008cd40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc0002808a0)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc0002808a0, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0001fa000)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
[ OK ]
level=info ts=2022-08-12T14:10:06.747Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-12T14:10:06.749Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-12T14:10:06.749Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-12T14:10:06.749Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-12T14:10:06.749Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-12T14:10:06.750Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000080c00)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000080c00)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc00002c000, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc000000c00)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait, 2 minutes]:
internal/poll.runtime_pollWait(0x7fe28328ef18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a118, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00002a100, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00002a100, 0x866d4954fd27fb01, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00000c948, 0x62f65f4f, 0xc000113b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00000c948, 0xc000113b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc000244000, 0xab76f0, 0xc00000c948, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00000c948, 0xc000244000, 0x0, 0x0, 0xaaf020, 0xc0001a0280, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc000244000, 0x0, 0x0, 0xaaf020, 0xc0001a0280, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 88 [semacquire, 2 minutes]:
sync.runtime_Semacquire(0xc0000232c8)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc0000232c0)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc0000232c0, 0xc00019e4e0, 0xc00019e540)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:463 +0x2b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 37 [syscall, 2 minutes]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 9 [chan receive, 2 minutes]:
main.main.func1(0xaaf020, 0xc0001a0280)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 13 [runnable]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc0000c8910, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:513 +0xb65
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7fe283066278, 0xc0000c8500, 0xc00026a100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc000222a10, 0x7fe283066278, 0xc0000c8500, 0xc00026a100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7fe283066278, 0xc0000c8500, 0xc00026a100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0002249f0, 0x7fe283066278, 0xc0000c8500, 0xc00026a100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc000244380, 0xc00026a100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc000224b70, 0xab7900, 0xc000244380, 0xc00026a100)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc000244380, 0xc00026a100)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc000244000, 0xab7900, 0xc000244380, 0xc00026a100)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0000200a0, 0xab8818, 0xc0002262c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 93 [IO wait]:
internal/poll.runtime_pollWait(0x7fe28328ed48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000194298, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000194280, 0xc0002ab000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000194280, 0xc0002ab000, 0x1000, 0x1000, 0x439c3c, 0xc000099c38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00028c008, 0xc0002ab000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0000ca900, 0xc0002ab000, 0x1000, 0x1000, 0xc0001da660, 0xc000099d40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc00007a180)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc00007a180, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0000ca900)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 86 [IO wait, 2 minutes]:
internal/poll.runtime_pollWait(0x7fe28328ee30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a198, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a180, 0xc000224e21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a180, 0xc000224e21, 0x1, 0x1, 0xc0002b8000, 0x0, 0xc000226398)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00000e0c0, 0xc000224e21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc000224e10)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 89 [runnable]:
strings.Index(0xc00066028a, 0x42, 0xa04cc3, 0x1, 0x3a)
/usr/local/go/src/strings/strings.go:1024 +0x70b
strings.genSplit(0xc00066028a, 0x42, 0xa04cc3, 0x1, 0x0, 0x1, 0xc0001fc3a0, 0x2, 0x2)
/usr/local/go/src/strings/strings.go:251 +0xff
strings.SplitN(...)
/usr/local/go/src/strings/strings.go:273
main.splitkv(0xc00066028a, 0x42, 0xe, 0x0, 0xc000660288, 0x1)
/app/apache_exporter.go:244 +0x6d
main.(*Exporter).collect(0xc00022a000, 0xc00019e4e0, 0x0, 0x9691c0)
/app/apache_exporter.go:322 +0x60d
main.(*Exporter).Collect(0xc00022a000, 0xc00019e4e0)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 94 [select, 2 minutes]:
net/http.(*persistConn).writeLoop(0xc0000ca900)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-12T16:01:55.582Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-12T16:01:55.584Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-12T16:01:55.584Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-12T16:01:55.584Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-12T16:01:55.585Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
level=info ts=2022-08-12T16:01:55.586Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000081000)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000081000)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000033800, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc000082780)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7ff1e213e018, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000264318, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc000264300, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc000264300, 0xe270561b75541701, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc000202c60, 0x62f6798f, 0xc000113b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc000202c60, 0xc000113b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc00029e000, 0xab76f0, 0xc000202c60, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc000202c60, 0xc00029e000, 0x0, 0x0, 0xaaf020, 0xc0002403c0, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc00029e000, 0x0, 0x0, 0xaaf020, 0xc0002403c0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 37 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 40 [chan receive]:
main.main.func1(0xaaf020, 0xc0002403c0)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 22 [select]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc0000c8910, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:513 +0xb65
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7ff1e214abf8, 0xc0000c9270, 0xc00016a600)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc00028a7e0, 0x7ff1e214abf8, 0xc0000c9270, 0xc00016a600)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7ff1e214abf8, 0xc0000c9270, 0xc00016a600)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc00028c5a0, 0x7ff1e214abf8, 0xc0000c9270, 0xc00016a600)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc00017e1c0, 0xc00016a600)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc00028c720, 0xab7900, 0xc00017e1c0, 0xc00016a600)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc00017e1c0, 0xc00016a600)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc00029e000, 0xab7900, 0xc00017e1c0, 0xc00016a600)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc000166aa0, 0xab8818, 0xc0000c1180)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 48 [IO wait]:
internal/poll.runtime_pollWait(0x7ff1e213df30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000108518, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000108500, 0xc0000a1f01, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000108500, 0xc0000a1f01, 0x1, 0x1, 0xc0000bf500, 0x0, 0xc0000c1258)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000bc218, 0xc0000a1f01, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0000a1ef0)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 51 [syscall]:
io.ReadAll(0x7ff1e1f121f0, 0xc00034c020, 0xc00034c020, 0x7ff1e1f121f0, 0xc00034c020, 0x0, 0xab26f0)
/usr/local/go/src/io/io.go:631 +0x1d9
io/ioutil.ReadAll(...)
/usr/local/go/src/io/ioutil/ioutil.go:27
main.(*Exporter).collect(0xc000244f00, 0xc00007a2a0, 0x0, 0x0)
/app/apache_exporter.go:298 +0x3c8
main.(*Exporter).Collect(0xc000244f00, 0xc00007a2a0)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 50 [semacquire]:
sync.runtime_Semacquire(0xc0003fed18)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc0003fed10)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc0003fed10, 0xc00007a2a0, 0xc00007a300)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:463 +0x2b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 55 [select]:
net/http.(*persistConn).readLoop(0xc000228900)
/usr/local/go/src/net/http/transport.go:2203 +0x967
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 56 [select]:
net/http.(*persistConn).writeLoop(0xc000228900)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-12T17:09:53.366Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-12T17:09:53.368Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-12T17:09:53.368Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-12T17:09:53.368Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-12T17:09:53.368Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-12T17:09:53.369Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000308000)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000308000)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000036000, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00008ff01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f2d68d77f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a198, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00002a180, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00002a180, 0x741e508843ecd601, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00000d110, 0x62f6897f, 0xc000113b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00000d110, 0xc000113b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0001b4000, 0xab76f0, 0xc00000d110, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00000d110, 0xc0001b4000, 0x0, 0x0, 0xaaf020, 0xc000286230, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0001b4000, 0x0, 0x0, 0xaaf020, 0xc000286230, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 7 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 10 [chan receive]:
main.main.func1(0xaaf020, 0xc000286230)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 14 [runnable]:
github.com/prometheus/client_golang/prometheus.(*constMetric).Write(0xc00028b170, 0xc000400000, 0x2, 0x2)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/value.go:123 +0x8b
github.com/prometheus/client_golang/prometheus.processMetric(0xab26f0, 0xc00028b170, 0xc0000695f8, 0xc000069628, 0x0, 0x0, 0x1)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:598 +0xa2
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc0000c8910, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:492 +0x9da
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f2d68cef278, 0xc00007c5a0, 0xc0001d0000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc000183650, 0x7f2d68cef278, 0xc00007c5a0, 0xc0001d0000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f2d68cef278, 0xc00007c5a0, 0xc0001d0000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc000184a20, 0x7f2d68cef278, 0xc00007c5a0, 0xc0001d0000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0001b40e0, 0xc0001d0000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc000184ba0, 0xab7900, 0xc0001b40e0, 0xc0001d0000)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0001b40e0, 0xc0001d0000)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0001b4000, 0xab7900, 0xc0001b40e0, 0xc0001d0000)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0000200a0, 0xab8818, 0xc00018e2c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 15 [runnable]:
net/http.(*connReader).backgroundRead(0xc000184e40)
/usr/local/go/src/net/http/server.go:671
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 16 [runnable]:
fmt.(*ss).SkipSpace(0xc0000bf140)
/usr/local/go/src/fmt/scan.go:420 +0x15a
fmt.(*ss).doScanf(0xc0000bf140, 0xa172b2, 0x20, 0xc0001e4fc0, 0xb, 0xb, 0x6, 0x0, 0x0)
/usr/local/go/src/fmt/scan.go:1213 +0x305
fmt.Fscanf(0xaaefe0, 0xc00009fcb0, 0xa172b2, 0x20, 0xc0001e4fc0, 0xb, 0xb, 0xc00014d055, 0xa01, 0xfab)
/usr/local/go/src/fmt/scan.go:143 +0xd9
fmt.Sscanf(...)
/usr/local/go/src/fmt/scan.go:114
github.com/prometheus/procfs.parseCPUStat(0xc000162230, 0x4c, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/stat.go:89 +0x228
github.com/prometheus/procfs.FS.Stat(0xa05a30, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/stat.go:224 +0x4a6
github.com/prometheus/procfs.ProcStat.StartTime(0x33e16, 0xc0000b8e60, 0xf, 0xd9c178, 0x1, 0x1, 0x33e15, 0x33e15, 0x0, 0xffffffffffffffff, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/proc_stat.go:179 +0x85
github.com/prometheus/client_golang/prometheus.(*processCollector).processCollect(0xc0000c8960, 0xc00007a840)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector_other.go:44 +0xe78
github.com/prometheus/client_golang/prometheus.(*processCollector).Collect(0xc0000c8960, 0xc00007a840)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector.go:138 +0x33
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:457 +0x5ce
goroutine 49 [runnable]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc000022220, 0xc00007a840, 0xc00007a8a0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 50 [runnable]:
syscall.Getenv(0xa0783c, 0x7, 0x0, 0x0, 0x0)
/usr/local/go/src/syscall/env_unix.go:83 +0xbb
os.Getenv(0xa0783c, 0x7, 0x40de10, 0x7f2d8f9fd108)
/usr/local/go/src/os/env.go:103 +0x4d
net/http.(*Transport).onceSetNextProtoDefaults(0xc000190000)
/usr/local/go/src/net/http/transport.go:362 +0x5f
sync.(*Once).doSlow(0xc000190110, 0xc000096660)
/usr/local/go/src/sync/once.go:68 +0xec
sync.(*Once).Do(...)
/usr/local/go/src/sync/once.go:59
net/http.(*Transport).roundTrip(0xc000190000, 0xc0001d0100, 0x30, 0x9db900, 0xd)
/usr/local/go/src/net/http/transport.go:503 +0x111c
net/http.(*Transport).RoundTrip(0xc000190000, 0xc0001d0100, 0xc000190000, 0x0, 0x0)
/usr/local/go/src/net/http/roundtrip.go:17 +0x35
net/http.send(0xc0001d0100, 0xaaf4e0, 0xc000190000, 0x0, 0x0, 0x0, 0xc00000e0d0, 0x203000, 0x1, 0x0)
/usr/local/go/src/net/http/client.go:251 +0x454
net/http.(*Client).send(0xc0001845a0, 0xc0001d0100, 0x0, 0x0, 0x0, 0xc00000e0d0, 0x0, 0x1, 0xc0001d0100)
/usr/local/go/src/net/http/client.go:175 +0xff
net/http.(*Client).do(0xc0001845a0, 0xc0001d0100, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/client.go:717 +0x45f
net/http.(*Client).Do(...)
/usr/local/go/src/net/http/client.go:585
main.(*Exporter).collect(0xc000192000, 0xc00007a840, 0x0, 0x0)
/app/apache_exporter.go:291 +0x177
main.(*Exporter).Collect(0xc000192000, 0xc00007a840)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 36 [runnable]:
runtime/debug.ReadGCStats(0xc0002b7960)
/usr/local/go/src/runtime/debug/garbage.go:57 +0x592
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect(0xc00002a080, 0xc00007a840)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:300 +0x29f
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 37 [runnable]:
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect.func1(0xc00002a080, 0xc0002fa000, 0xc0002d01e0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:285
created by github.com/prometheus/client_golang/prometheus.(*goCollector).Collect
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:285 +0xa9
[ OK ]
level=info ts=2022-08-12T19:54:02.322Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-12T19:54:02.325Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-12T19:54:02.325Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-12T19:54:02.325Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-12T19:54:02.327Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-12T19:54:02.328Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000200400)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000200400)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000036000, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc000082780)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait, 4 minutes]:
internal/poll.runtime_pollWait(0x7f6b3ef0ef18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a418, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00002a400, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00002a400, 0x695f9778c3eb8201, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00000d4a0, 0x62f6afef, 0xc000113b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00000d4a0, 0xc000113b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0001fc000, 0xab76f0, 0xc00000d4a0, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00000d4a0, 0xc0001fc000, 0x0, 0x0, 0xaaf020, 0xc00007c460, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0001fc000, 0x0, 0x0, 0xaaf020, 0xc00007c460, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 13 [chan receive, 4 minutes]:
main.main.func1(0xaaf020, 0xc00007c460)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 10 [syscall, 4 minutes]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 20 [runnable]:
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc0001cedc0, 0xc0000c8280, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:79 +0xb3
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc0000c8280, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f6b3ef1b9f8, 0xc0003060f0, 0xc0002d6100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc0001d3420, 0x7f6b3ef1b9f8, 0xc0003060f0, 0xc0002d6100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f6b3ef1b9f8, 0xc0003060f0, 0xc0002d6100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0001ea5d0, 0x7f6b3ef1b9f8, 0xc0003060f0, 0xc0002d6100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0001fc0e0, 0xc0002d6100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0001ea750, 0xab7900, 0xc0001fc0e0, 0xc0002d6100)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0001fc0e0, 0xc0002d6100)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0001fc000, 0xab7900, 0xc0001fc0e0, 0xc0002d6100)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc000166b40, 0xab8818, 0xc0000c1180)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 112 [IO wait]:
internal/poll.runtime_pollWait(0x7f6b3ef0ed48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000108098, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000108080, 0xc000128000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000108080, 0xc000128000, 0x1000, 0x1000, 0x439c3c, 0xc00009dc38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0002b0170, 0xc000128000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0000ca360, 0xc000128000, 0x1000, 0x1000, 0xc0001d83c0, 0xc00009dd40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc000210000)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc000210000, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0000ca360)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 129 [select]:
net/http.(*persistConn).writeLoop(0xc0000ca360)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
goroutine 48 [IO wait]:
internal/poll.runtime_pollWait(0x7f6b3ef0ee30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000108518, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000108500, 0xc0000a1f01, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000108500, 0xc0000a1f01, 0x1, 0x1, 0xc0002100c0, 0x0, 0x0)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000bc220, 0xc0000a1f01, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0000a1ef0)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
[ OK ]
level=info ts=2022-08-12T20:10:07.688Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-12T20:10:07.690Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-12T20:10:07.690Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-12T20:10:07.690Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-12T20:10:07.690Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
level=info ts=2022-08-12T20:10:07.690Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000208800)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000208800)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000033800, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc000082900)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7fda557fbf18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000b2098, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc0000b2080, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc0000b2080, 0x4afde1c6c0c8701, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc0000948e8, 0x62f6b3af, 0xc000167b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc0000948e8, 0xc000167b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0000da000, 0xab76f0, 0xc0000948e8, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc0000948e8, 0xc0000da000, 0x0, 0x0, 0xaaf020, 0xc00007ceb0, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0000da000, 0x0, 0x0, 0xaaf020, 0xc00007ceb0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 35 [select]:
net/http.(*persistConn).readLoop(0xc0000cd200)
/usr/local/go/src/net/http/transport.go:2203 +0x967
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 13 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 21 [chan receive]:
main.main.func1(0xaaf020, 0xc00007ceb0)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 25 [select]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc00007c960, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:513 +0xb65
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7fda5583b278, 0xc00007dea0, 0xc0001bc400)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc00009ea10, 0x7fda5583b278, 0xc00007dea0, 0xc0001bc400)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7fda5583b278, 0xc00007dea0, 0xc0001bc400)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0000a49f0, 0x7fda5583b278, 0xc00007dea0, 0xc0001bc400)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0000da380, 0xc0001bc400)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0000a4b70, 0xab7900, 0xc0000da380, 0xc0001bc400)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0000da380, 0xc0001bc400)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0000da000, 0xab7900, 0xc0000da380, 0xc0001bc400)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0000ec000, 0xab8818, 0xc0000ac2c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 14 [IO wait]:
internal/poll.runtime_pollWait(0x7fda557fbe30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000b2118, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0000b2100, 0xc0000a4e21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0000b2100, 0xc0000a4e21, 0x1, 0x1, 0xc00007b5c0, 0x0, 0xc0000ac398)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000a6098, 0xc0000a4e21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0000a4e10)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 16 [semacquire]:
sync.runtime_Semacquire(0xc0004ae8a8)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc0004ae8a0)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc0004ae8a0, 0xc00007b7a0, 0xc00007b800)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:463 +0x2b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 65 [syscall]:
io.ReadAll(0x7fda55811c38, 0xc000214080, 0xc000214080, 0x7fda55811c38, 0xc000214080, 0x0, 0xab26f0)
/usr/local/go/src/io/io.go:631 +0x1d9
io/ioutil.ReadAll(...)
/usr/local/go/src/io/ioutil/ioutil.go:27
main.(*Exporter).collect(0xc0000b0000, 0xc00007b7a0, 0x0, 0x0)
/app/apache_exporter.go:298 +0x3c8
main.(*Exporter).Collect(0xc0000b0000, 0xc00007b7a0)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 36 [select]:
net/http.(*persistConn).writeLoop(0xc0000cd200)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-12T23:09:53.952Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-12T23:09:53.955Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-12T23:09:53.955Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-12T23:09:53.955Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-12T23:09:53.955Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-12T23:09:53.955Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc00005d800)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc00005d800)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000036000, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc0001f7200)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f146c598f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000e6098, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc0000e6080, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc0000e6080, 0xcde35b77c2ded601, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc0000a4978, 0x62f6dddf, 0xc00015fb48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc0000a4978, 0xc00015fb98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0000ea000, 0xab76f0, 0xc0000a4978, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc0000a4978, 0xc0000ea000, 0x0, 0x0, 0xaaf020, 0xc0001be3c0, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0000ea000, 0x0, 0x0, 0xaaf020, 0xc0001be3c0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 37 [chan receive]:
main.main.func1(0xaaf020, 0xc0001be3c0)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 10 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 41 [runnable]:
compress/flate.newHuffmanBitWriter(...)
/usr/local/go/src/compress/flate/huffman_bit_writer.go:98
compress/flate.(*compressor).init(0xc000600000, 0x7f146c2f5c98, 0xc0000b0550, 0xffffffffffffffff, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:579 +0x7d
compress/flate.NewWriter(0x7f146c2f5c98, 0xc0000b0550, 0xffffffffffffffff, 0xa, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:671 +0x65
compress/gzip.(*Writer).Write(0xc000314160, 0xc000584000, 0xf0, 0x1000, 0x0, 0xc00009b610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:191 +0x305
bufio.(*Writer).Flush(0xc00019eb00, 0xc00009b6d0, 0xc00009b620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc00019eb00, 0xc00009b7c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc000314160, 0xc00057e1e0, 0xf0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc00057e1e0, 0xc000312ac8, 0xa30c88)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f146c5d8278, 0xc0000b0550, 0xc00029a000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc0000b4a10, 0x7f146c5d8278, 0xc0000b0550, 0xc00029a000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f146c5d8278, 0xc0000b0550, 0xc00029a000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0000ba9f0, 0x7f146c5d8278, 0xc0000b0550, 0xc00029a000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0000ea0e0, 0xc00029a000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0000bab70, 0xab7900, 0xc0000ea0e0, 0xc00029a000)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0000ea0e0, 0xc00029a000)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0000ea000, 0xab7900, 0xc0000ea0e0, 0xc00029a000)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0000fc000, 0xab8818, 0xc0000c02c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 42 [IO wait]:
internal/poll.runtime_pollWait(0x7f146c598e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000e6118, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0000e6100, 0xc0000bae21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0000e6100, 0xc0000bae21, 0x1, 0x1, 0x461f80, 0x461f80, 0xc00009c660)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000a60b8, 0xc0000bae21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0000bae10)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 49 [IO wait]:
internal/poll.runtime_pollWait(0x7f146c598d48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000e6218, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0000e6200, 0xc0002e8000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0000e6200, 0xc0002e8000, 0x1000, 0x1000, 0x439c3c, 0xc000107c38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000a6100, 0xc0002e8000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0001207e0, 0xc0002e8000, 0x1000, 0x1000, 0xc0001ec1e0, 0xc000107d40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc0002c03c0)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc0002c03c0, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0001207e0)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 50 [select]:
net/http.(*persistConn).writeLoop(0xc0001207e0)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-13T02:09:52.558Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-13T02:09:52.559Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-13T02:09:52.559Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-13T02:09:52.559Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-13T02:09:52.560Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
level=info ts=2022-08-13T02:09:52.559Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000088c00)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000088c00)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000033800, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc00020b080)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f56edbdcf18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000108898, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc000108880, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc000108880, 0x7f7186d89c97fa01, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc0000b7860, 0x62f7080f, 0xc000113b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc0000b7860, 0xc000113b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0001b6000, 0xab76f0, 0xc0000b7860, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc0000b7860, 0xc0001b6000, 0x0, 0x0, 0xaaf020, 0xc0000d0e10, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0001b6000, 0x0, 0x0, 0xaaf020, 0xc0000d0e10, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 24 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 27 [chan receive]:
main.main.func1(0xaaf020, 0xc0000d0e10)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 31 [runnable]:
compress/flate.newHuffmanEncoder(...)
/usr/local/go/src/compress/flate/huffman_code.go:60
compress/flate.newHuffmanBitWriter(...)
/usr/local/go/src/compress/flate/huffman_bit_writer.go:100
compress/flate.(*compressor).init(0xc000480000, 0x7f56ed978198, 0xc0000d1360, 0xffffffffffffffff, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:579 +0xd5
compress/flate.NewWriter(0x7f56ed978198, 0xc0000d1360, 0xffffffffffffffff, 0xa, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:671 +0x65
compress/gzip.(*Writer).Write(0xc0003660b0, 0xc000448000, 0xf0, 0x1000, 0x0, 0xc0001d5610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:191 +0x305
bufio.(*Writer).Flush(0xc0003766c0, 0xc0001d56d0, 0xc0001d5620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc0003766c0, 0xc0001d57c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc0003660b0, 0xc0000d1720, 0xf0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc0000d1720, 0xc00030cbd0, 0xa30c88)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f56edbfcff8, 0xc0000d1360, 0xc00016a400)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc000192d20, 0x7f56edbfcff8, 0xc0000d1360, 0xc00016a400)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f56edbfcff8, 0xc0000d1360, 0xc00016a400)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0001ae420, 0x7f56edbfcff8, 0xc0000d1360, 0xc00016a400)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0001b60e0, 0xc00016a400)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0001ae5a0, 0xab7900, 0xc0001b60e0, 0xc00016a400)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0001b60e0, 0xc00016a400)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0001b6000, 0xab7900, 0xc0001b60e0, 0xc00016a400)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc000167e00, 0xab8818, 0xc0000c9840)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 32 [IO wait]:
internal/poll.runtime_pollWait(0x7f56edbdce30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000108918, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000108900, 0xc0001ae851, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000108900, 0xc0001ae851, 0x1, 0x1, 0x461f80, 0x461f80, 0xc0000c7a40)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000c4430, 0xc0001ae851, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0001ae840)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 67 [IO wait]:
internal/poll.runtime_pollWait(0x7f56edbdcd48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000108a18, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000108a00, 0xc0002c4000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000108a00, 0xc0002c4000, 0x1000, 0x1000, 0x439c3c, 0xc000284c38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00023a058, 0xc0002c4000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0000d38c0, 0xc0002c4000, 0x1000, 0x1000, 0xc0002941e0, 0xc000284d40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc000204660)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc000204660, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0000d38c0)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 68 [select]:
net/http.(*persistConn).writeLoop(0xc0000d38c0)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-13T05:13:31.340Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-13T05:13:31.340Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-13T05:13:31.340Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-13T05:13:31.340Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-13T05:13:31.341Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-13T05:13:31.341Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000088400)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000088400)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000036000, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc00008b800)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f073c914f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000b0118, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc0000b0100, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc0000b0100, 0xca0ab53e7cadd201, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00009f338, 0x62f7332f, 0xc00015fb48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00009f338, 0xc00015fb98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc00028c000, 0xab76f0, 0xc00009f338, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00009f338, 0xc00028c000, 0x0, 0x0, 0xaaf020, 0xc00007cd70, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc00028c000, 0x0, 0x0, 0xaaf020, 0xc00007cd70, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 13 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 22 [chan receive]:
main.main.func1(0xaaf020, 0xc00007cd70)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 26 [runnable]:
runtime.Gosched(...)
/usr/local/go/src/runtime/proc.go:292
compress/flate.(*compressor).initDeflate(...)
/usr/local/go/src/compress/flate/deflate.go:374
compress/flate.(*compressor).init(0xc000600000, 0x7f073c86d518, 0xc0000bc6e0, 0xffffffffffffffff, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:602 +0x629
compress/flate.NewWriter(0x7f073c86d518, 0xc0000bc6e0, 0xffffffffffffffff, 0xa, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:671 +0x65
compress/gzip.(*Writer).Write(0xc0001ee210, 0xc000588000, 0xee, 0x1000, 0x0, 0xc00009b610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:191 +0x305
bufio.(*Writer).Flush(0xc0000d1280, 0xc00009b6d0, 0xc00009b620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc0000d1280, 0xc00009b7c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc0001ee210, 0xc0002205f0, 0xee, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc0002205f0, 0xc000224b88, 0xa30c88)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f073c955ab8, 0xc0000bc6e0, 0xc0000cc100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc0000a3e30, 0x7f073c955ab8, 0xc0000bc6e0, 0xc0000cc100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f073c955ab8, 0xc0000bc6e0, 0xc0000cc100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0000ab5c0, 0x7f073c955ab8, 0xc0000bc6e0, 0xc0000cc100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc00028c0e0, 0xc0000cc100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0000ab740, 0xab7900, 0xc00028c0e0, 0xc0000cc100)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc00028c0e0, 0xc0000cc100)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc00028c000, 0xab7900, 0xc00028c0e0, 0xc0000cc100)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0000d6aa0, 0xab8818, 0xc0000d0440)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 27 [IO wait]:
internal/poll.runtime_pollWait(0x7f073c914e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000b0198, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0000b0180, 0xc0000ab9f1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0000b0180, 0xc0000ab9f1, 0x1, 0x1, 0x461f80, 0x461f80, 0xc0000ba8a0)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000a8160, 0xc0000ab9f1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0000ab9e0)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 49 [IO wait]:
internal/poll.runtime_pollWait(0x7f073c914d48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000b0318, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0000b0300, 0xc0003a0000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0000b0300, 0xc0003a0000, 0x1000, 0x1000, 0x439c3c, 0xc000105c38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00000e310, 0xc0003a0000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc000120c60, 0xc0003a0000, 0x1000, 0x1000, 0xc00028a300, 0xc000105d40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc000200420)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc000200420, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc000120c60)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 50 [select]:
net/http.(*persistConn).writeLoop(0xc000120c60)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-13T08:09:49.181Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-13T08:09:49.182Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-13T08:09:49.182Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-13T08:09:49.182Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-13T08:09:49.182Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-13T08:09:49.183Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc00005d000)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc00005d000)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000038800, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0x100000000000001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.exitsyscall0(0xc000001c80)
/usr/local/go/src/runtime/proc.go:3884 +0xee
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f36290b9f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a418, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00002a400, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00002a400, 0x57ad0819aafad101, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00000d518, 0x62f75c6f, 0xc000113b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00000d518, 0xc000113b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0001fc000, 0xab76f0, 0xc00000d518, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00000d518, 0xc0001fc000, 0x0, 0x0, 0xaaf020, 0xc00007c5a0, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0001fc000, 0x0, 0x0, 0xaaf020, 0xc00007c5a0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 19 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 16 [chan receive]:
main.main.func1(0xaaf020, 0xc00007c5a0)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 36 [select]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc0000c8910, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:513 +0xb65
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f3628f14438, 0xc00007caf0, 0xc00019c200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc0001d3420, 0x7f3628f14438, 0xc00007caf0, 0xc00019c200)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f3628f14438, 0xc00007caf0, 0xc00019c200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0001ea5d0, 0x7f3628f14438, 0xc00007caf0, 0xc00019c200)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0001fc0e0, 0xc00019c200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0001ea750, 0xab7900, 0xc0001fc0e0, 0xc00019c200)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0001fc0e0, 0xc00019c200)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0001fc000, 0xab7900, 0xc0001fc0e0, 0xc00019c200)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc000021400, 0xab8818, 0xc00019e6c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 37 [IO wait]:
internal/poll.runtime_pollWait(0x7f36290b9e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a498, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a480, 0xc0001eaa01, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a480, 0xc0001eaa01, 0x1, 0x1, 0x461f80, 0x461f80, 0xc00007b020)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00000e218, 0xc0001eaa01, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0001ea9f0)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 38 [runnable]:
github.com/prometheus/procfs.parseCPUStat(0xc0001803c0, 0x4c, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/stat.go:86 +0x65
github.com/prometheus/procfs.FS.Stat(0xa05a30, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/stat.go:224 +0x4a6
github.com/prometheus/procfs.ProcStat.StartTime(0x78b0a, 0xc0000b8da0, 0xf, 0xd9c178, 0x1, 0x1, 0x78b09, 0x78b09, 0x0, 0xffffffffffffffff, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/proc_stat.go:179 +0x85
github.com/prometheus/client_golang/prometheus.(*processCollector).processCollect(0xc0000c8960, 0xc00007b260)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector_other.go:44 +0xe78
github.com/prometheus/client_golang/prometheus.(*processCollector).Collect(0xc0000c8960, 0xc00007b260)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector.go:138 +0x33
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:457 +0x5ce
goroutine 39 [semacquire]:
sync.runtime_Semacquire(0xc0000228c8)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc0000228c0)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc0000228c0, 0xc00007b260, 0xc00007b2c0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:463 +0x2b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 40 [runnable]:
syscall.Getenv(0xa0783c, 0x7, 0x0, 0x0, 0x0)
/usr/local/go/src/syscall/env_unix.go:83 +0xbb
os.Getenv(0xa0783c, 0x7, 0x40de10, 0x7f364fd3f108)
/usr/local/go/src/os/env.go:103 +0x4d
net/http.(*Transport).onceSetNextProtoDefaults(0xc0001b08c0)
/usr/local/go/src/net/http/transport.go:362 +0x5f
sync.(*Once).doSlow(0xc0001b09d0, 0xc000096660)
/usr/local/go/src/sync/once.go:68 +0xec
sync.(*Once).Do(...)
/usr/local/go/src/sync/once.go:59
net/http.(*Transport).roundTrip(0xc0001b08c0, 0xc00019c300, 0x30, 0x9db900, 0xd)
/usr/local/go/src/net/http/transport.go:503 +0x111c
net/http.(*Transport).RoundTrip(0xc0001b08c0, 0xc00019c300, 0xc0001b08c0, 0x0, 0x0)
/usr/local/go/src/net/http/roundtrip.go:17 +0x35
net/http.send(0xc00019c300, 0xaaf4e0, 0xc0001b08c0, 0x0, 0x0, 0x0, 0xc00000e228, 0x203000, 0x1, 0x0)
/usr/local/go/src/net/http/client.go:251 +0x454
net/http.(*Client).send(0xc0001ea150, 0xc00019c300, 0x0, 0x0, 0x0, 0xc00000e228, 0x0, 0x1, 0xc00019c300)
/usr/local/go/src/net/http/client.go:175 +0xff
net/http.(*Client).do(0xc0001ea150, 0xc00019c300, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/client.go:717 +0x45f
net/http.(*Client).Do(...)
/usr/local/go/src/net/http/client.go:585
main.(*Exporter).collect(0xc0001b2f00, 0xc00007b260, 0x0, 0x0)
/app/apache_exporter.go:291 +0x177
main.(*Exporter).Collect(0xc0001b2f00, 0xc00007b260)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
[ OK ]
level=info ts=2022-08-13T11:09:54.380Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-13T11:09:54.381Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-13T11:09:54.381Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-13T11:09:54.381Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-13T11:09:54.381Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-13T11:09:54.381Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc00005d800)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc00005d800)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000038800, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc000082a80)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0x7fa438c9af18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a898, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00002a880, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00002a880, 0x35efcafc06f62801, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00000cea0, 0x62f7869f, 0xc000167b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00000cea0, 0xc000167b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0001ee000, 0xab76f0, 0xc00000cea0, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00000cea0, 0xc0001ee000, 0x0, 0x0, 0xaaf020, 0xc00007cd20, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0001ee000, 0x0, 0x0, 0xaaf020, 0xc00007cd20, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 19 [syscall, 1 minutes]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 14 [chan receive, 1 minutes]:
main.main.func1(0xaaf020, 0xc00007cd20)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 50 [select, 1 minutes]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc00007c960, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:513 +0xb65
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7fa438cb3e78, 0xc0004f07d0, 0xc00021a200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc0001c98f0, 0x7fa438cb3e78, 0xc0004f07d0, 0xc00021a200)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7fa438cb3e78, 0xc0004f07d0, 0xc00021a200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0001c7830, 0x7fa438cb3e78, 0xc0004f07d0, 0xc00021a200)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0001ca000, 0xc00021a200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0001c79b0, 0xab7900, 0xc0001ca000, 0xc00021a200)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0001ca000, 0xc00021a200)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0001ee000, 0xab7900, 0xc0001ca000, 0xc00021a200)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0001b9400, 0xab8818, 0xc0001236c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 41 [select, 1 minutes]:
net/http.(*persistConn).readLoop(0xc000128900)
/usr/local/go/src/net/http/transport.go:2203 +0x967
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 42 [select, 1 minutes]:
net/http.(*persistConn).writeLoop(0xc000128900)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
goroutine 81 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0x7fa438c9ae30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a918, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a900, 0xc0001c7c61, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a900, 0xc0001c7c61, 0x1, 0x1, 0xc0000b21e0, 0x0, 0xc000123798)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00000e380, 0xc0001c7c61, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0001c7c50)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 83 [semacquire, 1 minutes]:
sync.runtime_Semacquire(0xc000383358)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc000383350)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc000383350, 0xc00007a300, 0xc00007a360)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:463 +0x2b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 84 [runnable]:
net/http.(*gzipReader).Read(0xc00001e0a0, 0xc0005c2000, 0x6000, 0x6000, 0x18001, 0xc0005aa000, 0x18000)
/usr/local/go/src/net/http/transport.go:2809 +0x1ff
io.ReadAll(0x7fa438b93028, 0xc00001e0a0, 0xc00001e0a0, 0x7fa438b93028, 0xc00001e0a0, 0x0, 0xab26f0)
/usr/local/go/src/io/io.go:633 +0xdf
io/ioutil.ReadAll(...)
/usr/local/go/src/io/ioutil/ioutil.go:27
main.(*Exporter).collect(0xc0001a8960, 0xc00007a300, 0x0, 0x0)
/app/apache_exporter.go:298 +0x3c8
main.(*Exporter).Collect(0xc0001a8960, 0xc00007a300)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
[ OK ]
level=info ts=2022-08-13T14:09:51.098Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-13T14:09:51.100Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-13T14:09:51.100Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-13T14:09:51.100Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-13T14:09:51.100Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-13T14:09:51.100Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000080c00)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000080c00)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000033800, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc000347380)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0x7fbf30429018, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0001b2098, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc0001b2080, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc0001b2080, 0x31608d19d46b8601, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc000188948, 0x62f7b0cf, 0xc000113b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc000188948, 0xc000113b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0001d0000, 0xab76f0, 0xc000188948, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc000188948, 0xc0001d0000, 0x0, 0x0, 0xaaf020, 0xc00007c2d0, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0001d0000, 0x0, 0x0, 0xaaf020, 0xc00007c2d0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 35 [syscall, 1 minutes]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 38 [chan receive, 1 minutes]:
main.main.func1(0xaaf020, 0xc00007c2d0)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 42 [runnable]:
compress/flate.(*compressor).deflate(0xc0006b4000)
/usr/local/go/src/compress/flate/deflate.go:477 +0x13f
compress/flate.(*compressor).write(0xc0006b4000, 0xc0001de000, 0x14e, 0x1000, 0x1000, 0x99762c25, 0x61)
/usr/local/go/src/compress/flate/deflate.go:554 +0x85
compress/flate.(*Writer).Write(...)
/usr/local/go/src/compress/flate/deflate.go:712
compress/gzip.(*Writer).Write(0xc0003840b0, 0xc0001de000, 0x14e, 0x1000, 0xc0001f5610, 0xc0001f5610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:196 +0xc5
bufio.(*Writer).Flush(0xc0000c0800, 0xc0001f56d0, 0xc0001f5620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc0000c0800, 0xc0001f57c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc0003840b0, 0xc000192820, 0x14e, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc000192820, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7fbf30280278, 0xc0004ee050, 0xc000300100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc0001a0a10, 0x7fbf30280278, 0xc0004ee050, 0xc000300100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7fbf30280278, 0xc0004ee050, 0xc000300100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0001a69f0, 0x7fbf30280278, 0xc0004ee050, 0xc000300100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0001d02a0, 0xc000300100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0001a6b70, 0xab7900, 0xc0001d02a0, 0xc000300100)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0001d02a0, 0xc000300100)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0001d0000, 0xab7900, 0xc0001d02a0, 0xc000300100)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0001e2000, 0xab8818, 0xc0001ac2c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 27 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0x7fbf30428f30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0001b2118, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0001b2100, 0xc0001a6e21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0001b2100, 0xc0001a6e21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00018a0b0, 0xc0001a6e21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0001a6e10)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 99 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0x7fbf30428e48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000108118, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000108100, 0xc00033c000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000108100, 0xc00033c000, 0x1000, 0x1000, 0x439c3c, 0xc000111c38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00018a1c8, 0xc00033c000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0001c2240, 0xc00033c000, 0x1000, 0x1000, 0xc0001ce180, 0xc000111d40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc00038c480)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc00038c480, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0001c2240)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 100 [select, 1 minutes]:
net/http.(*persistConn).writeLoop(0xc0001c2240)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-13T17:09:50.371Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-13T17:09:50.371Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-13T17:09:50.371Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-13T17:09:50.371Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-13T17:09:50.372Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-13T17:09:50.374Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000310000)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000310000)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000036000, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc000097f01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f3dc5ed6f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000ee098, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc0000ee080, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc0000ee080, 0x2bdfcadbb6225f01, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc0000a48e8, 0x62f7daff, 0xc00015fb48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc0000a48e8, 0xc00015fb98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0000f2000, 0xab76f0, 0xc0000a48e8, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc0000a48e8, 0xc0000f2000, 0x0, 0x0, 0xaaf020, 0xc000240500, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0000f2000, 0x0, 0x0, 0xaaf020, 0xc000240500, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 8 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 35 [chan receive]:
main.main.func1(0xaaf020, 0xc000240500)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 39 [runnable]:
runtime.Gosched(...)
/usr/local/go/src/runtime/proc.go:292
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc00007c960, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:540 +0xe5e
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f3dc5f163b8, 0xc0000cc4b0, 0xc0002aa000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc0000b8a10, 0x7f3dc5f163b8, 0xc0000cc4b0, 0xc0002aa000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f3dc5f163b8, 0xc0000cc4b0, 0xc0002aa000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0000c09f0, 0x7f3dc5f163b8, 0xc0000cc4b0, 0xc0002aa000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0000f20e0, 0xc0002aa000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0000c0b70, 0xab7900, 0xc0000f20e0, 0xc0002aa000)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0000f20e0, 0xc0002aa000)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0000f2000, 0xab7900, 0xc0000f20e0, 0xc0002aa000)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0000f4000, 0xab8818, 0xc0000c62c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 40 [IO wait]:
internal/poll.runtime_pollWait(0x7f3dc5ed6e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000ee118, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0000ee100, 0xc0000c0e21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0000ee100, 0xc0000c0e21, 0x1, 0x1, 0x461f80, 0x461f80, 0xc00009c600)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000a60b0, 0xc0000c0e21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0000c0e10)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 41 [runnable]:
syscall.Getenv(0xa0783c, 0x7, 0x0, 0x0, 0x0)
/usr/local/go/src/syscall/env_unix.go:83 +0xbb
os.Getenv(0xa0783c, 0x7, 0x0, 0x0)
/usr/local/go/src/os/env.go:103 +0x4d
net/http.(*Transport).onceSetNextProtoDefaults(0xc0000c8000)
/usr/local/go/src/net/http/transport.go:362 +0x5f
sync.(*Once).doSlow(0xc0000c8110, 0xc000101660)
/usr/local/go/src/sync/once.go:68 +0xec
sync.(*Once).Do(...)
/usr/local/go/src/sync/once.go:59
net/http.(*Transport).roundTrip(0xc0000c8000, 0xc000214200, 0x30, 0x9db900, 0x0)
/usr/local/go/src/net/http/transport.go:503 +0x111c
net/http.(*Transport).RoundTrip(0xc0000c8000, 0xc000214200, 0xc0000c8000, 0x0, 0x0)
/usr/local/go/src/net/http/roundtrip.go:17 +0x35
net/http.send(0xc000214200, 0xaaf4e0, 0xc0000c8000, 0x0, 0x0, 0x0, 0xc00020e168, 0x203000, 0x1, 0x0)
/usr/local/go/src/net/http/client.go:251 +0x454
net/http.(*Client).send(0xc0000c0570, 0xc000214200, 0x0, 0x0, 0x0, 0xc00020e168, 0x0, 0x1, 0xc000214200)
/usr/local/go/src/net/http/client.go:175 +0xff
net/http.(*Client).do(0xc0000c0570, 0xc000214200, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/client.go:717 +0x45f
net/http.(*Client).Do(...)
/usr/local/go/src/net/http/client.go:585
main.(*Exporter).collect(0xc0000ca000, 0xc00009c840, 0x0, 0x0)
/app/apache_exporter.go:291 +0x177
main.(*Exporter).Collect(0xc0000ca000, 0xc00009c840)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:457 +0x5ce
goroutine 42 [runnable]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc0000b61c0, 0xc00009c840, 0xc00009c8a0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 43 [select]:
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect(0xc00002a580, 0xc00009c840)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:312 +0x695
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 44 [waiting]:
runtime.ReadMemStats(0xc0002bc000)
/usr/local/go/src/runtime/mstats.go:473 +0x36
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect.func1(0xc00002a580, 0xc0002bc000, 0xc0000f0120)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:286 +0x38
created by github.com/prometheus/client_golang/prometheus.(*goCollector).Collect
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:285 +0xa9
goroutine 9 [runnable]:
io.ReadAll(0xaaf2e0, 0xc00000cc48, 0x0, 0x0, 0xc00000e250, 0x0, 0x0)
/usr/local/go/src/io/io.go:626 +0x216
io/ioutil.ReadAll(...)
/usr/local/go/src/io/ioutil/ioutil.go:27
github.com/prometheus/procfs/internal/util.ReadFileNoStat(0xc000024258, 0x11, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/internal/util/readfile.go:37 +0xfd
github.com/prometheus/procfs.Proc.Stat(0x8fa41, 0xa05a30, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/proc_stat.go:116 +0xfd
github.com/prometheus/client_golang/prometheus.(*processCollector).processCollect(0xc00007c9b0, 0xc00009c840)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector_other.go:40 +0x366
github.com/prometheus/client_golang/prometheus.(*processCollector).Collect(0xc00007c9b0, 0xc00009c840)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector.go:138 +0x33
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
[ OK ]
level=info ts=2022-08-13T20:09:52.329Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-13T20:09:52.330Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-13T20:09:52.330Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-13T20:09:52.330Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-13T20:09:52.330Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-13T20:09:52.331Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000388000)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000388000)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000038800, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00008ff01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7fcd61f78f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000d6098, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc0000d6080, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc0000d6080, 0x16de2cc028647b01, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc000094918, 0x62f8052f, 0xc000167b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc000094918, 0xc000167b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0000da000, 0xab76f0, 0xc000094918, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc000094918, 0xc0000da000, 0x0, 0x0, 0xaaf020, 0xc00007ce60, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0000da000, 0x0, 0x0, 0xaaf020, 0xc00007ce60, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 19 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 37 [chan receive]:
main.main.func1(0xaaf020, 0xc00007ce60)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 41 [runnable]:
runtime.Gosched(...)
/usr/local/go/src/runtime/proc.go:292
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc00007c960, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:540 +0xe5e
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7fcd61fb8278, 0xc00009a550, 0xc0000fe000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc00009ea10, 0x7fcd61fb8278, 0xc00009a550, 0xc0000fe000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7fcd61fb8278, 0xc00009a550, 0xc0000fe000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0000a49f0, 0x7fcd61fb8278, 0xc00009a550, 0xc0000fe000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0000da0e0, 0xc0000fe000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0000a4b70, 0xab7900, 0xc0000da0e0, 0xc0000fe000)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0000da0e0, 0xc0000fe000)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0000da000, 0xab7900, 0xc0000da0e0, 0xc0000fe000)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0000ec000, 0xab8818, 0xc0000ac2c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 42 [IO wait]:
internal/poll.runtime_pollWait(0x7fcd61f78e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000d6118, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0000d6100, 0xc0000a4e21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0000d6100, 0xc0000a4e21, 0x1, 0x1, 0x461f80, 0x461f80, 0xc000098660)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000a60a0, 0xc0000a4e21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0000a4e10)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 43 [runnable]:
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect(0xc00002a580, 0xc0000988a0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:302 +0x2a5
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:457 +0x5ce
goroutine 44 [semacquire]:
sync.runtime_Semacquire(0xc00009c1c8)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc00009c1c0)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc00009c1c0, 0xc0000988a0, 0xc000098900)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:463 +0x2b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 45 [runnable]:
io.(*LimitedReader).Read(0xc000094960, 0xc0002ae700, 0x200, 0x200, 0x701, 0xc0002ae000, 0x700)
/usr/local/go/src/io/io.go:466 +0xc9
io.ReadAll(0xaaf2e0, 0xc000094960, 0x0, 0x0, 0xc0000a60b0, 0x0, 0x0)
/usr/local/go/src/io/io.go:633 +0xdf
io/ioutil.ReadAll(...)
/usr/local/go/src/io/ioutil/ioutil.go:27
github.com/prometheus/procfs/internal/util.ReadFileNoStat(0xc00009c270, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/internal/util/readfile.go:37 +0xfd
github.com/prometheus/procfs.FS.Stat(0xa05a30, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/stat.go:169 +0x18d
github.com/prometheus/procfs.ProcStat.StartTime(0xe4ffe, 0xc00009c210, 0xf, 0xd9c178, 0x1, 0x1, 0xe4ffd, 0xe4ffd, 0x0, 0xffffffffffffffff, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/proc_stat.go:179 +0x85
github.com/prometheus/client_golang/prometheus.(*processCollector).processCollect(0xc00007c9b0, 0xc0000988a0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector_other.go:44 +0xe78
github.com/prometheus/client_golang/prometheus.(*processCollector).Collect(0xc00007c9b0, 0xc0000988a0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector.go:138 +0x33
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 20 [runnable]:
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect.func1(0xc00002a580, 0xc000228000, 0xc00022e000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:285
created by github.com/prometheus/client_golang/prometheus.(*goCollector).Collect
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:285 +0xa9
goroutine 12 [runnable]:
syscall.Getenv(0xa0783c, 0x7, 0x0, 0x0, 0x0)
/usr/local/go/src/syscall/env_unix.go:83 +0xbb
os.Getenv(0xa0783c, 0x7, 0x0, 0x0)
/usr/local/go/src/os/env.go:103 +0x4d
net/http.(*Transport).onceSetNextProtoDefaults(0xc0000ae000)
/usr/local/go/src/net/http/transport.go:362 +0x5f
sync.(*Once).doSlow(0xc0000ae110, 0xc00010c660)
/usr/local/go/src/sync/once.go:68 +0xec
sync.(*Once).Do(...)
/usr/local/go/src/sync/once.go:59
net/http.(*Transport).roundTrip(0xc0000ae000, 0xc0001bc400, 0x30, 0x9db900, 0xffaaaabfeaaaa)
/usr/local/go/src/net/http/transport.go:503 +0x111c
net/http.(*Transport).RoundTrip(0xc0000ae000, 0xc0001bc400, 0xc0000ae000, 0x0, 0x0)
/usr/local/go/src/net/http/roundtrip.go:17 +0x35
net/http.send(0xc0001bc400, 0xaaf4e0, 0xc0000ae000, 0x0, 0x0, 0x0, 0xc00000e3d0, 0x203000, 0x1, 0x0)
/usr/local/go/src/net/http/client.go:251 +0x454
net/http.(*Client).send(0xc0000a4570, 0xc0001bc400, 0x0, 0x0, 0x0, 0xc00000e3d0, 0x0, 0x1, 0xc0001bc400)
/usr/local/go/src/net/http/client.go:175 +0xff
net/http.(*Client).do(0xc0000a4570, 0xc0001bc400, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/client.go:717 +0x45f
net/http.(*Client).Do(...)
/usr/local/go/src/net/http/client.go:585
main.(*Exporter).collect(0xc0000b0000, 0xc0000988a0, 0x0, 0x0)
/app/apache_exporter.go:291 +0x177
main.(*Exporter).Collect(0xc0000b0000, 0xc0000988a0)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 49 [runnable]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:442
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
[ OK ]
level=info ts=2022-08-13T23:09:54.723Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-13T23:09:54.724Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-13T23:09:54.724Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-13T23:09:54.724Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-13T23:09:54.724Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-13T23:09:54.725Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000088c00)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000088c00)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000036000, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc000277680)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7fbeb50caf18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000264318, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc000264300, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc000264300, 0x38cd0b6d3856bb01, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc000210ca8, 0x62f82f5f, 0xc00015fb48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc000210ca8, 0xc00015fb98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc000296000, 0xab76f0, 0xc000210ca8, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc000210ca8, 0xc000296000, 0x0, 0x0, 0xaaf020, 0xc000240460, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc000296000, 0x0, 0x0, 0xaaf020, 0xc000240460, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 39 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 42 [chan receive]:
main.main.func1(0xaaf020, 0xc000240460)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 46 [runnable]:
runtime.Gosched(...)
/usr/local/go/src/runtime/proc.go:292
compress/flate.(*compressor).initDeflate(...)
/usr/local/go/src/compress/flate/deflate.go:374
compress/flate.(*compressor).init(0xc000580000, 0x7fbeb5097a18, 0xc0002409b0, 0xffffffffffffffff, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:602 +0x629
compress/flate.NewWriter(0x7fbeb5097a18, 0xc0002409b0, 0xffffffffffffffff, 0xa, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:671 +0x65
compress/gzip.(*Writer).Write(0xc0002d20b0, 0xc000546000, 0xee, 0x1000, 0x0, 0xc000097610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:191 +0x305
bufio.(*Writer).Flush(0xc000222f40, 0xc0000976d0, 0xc000097620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc000222f40, 0xc0000977c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc0002d20b0, 0xc0000bc3c0, 0xee, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc0000bc3c0, 0xc0002117a0, 0xa30c88)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7fbeb508d438, 0xc0002409b0, 0xc000218200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc00027a7e0, 0x7fbeb508d438, 0xc0002409b0, 0xc000218200)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7fbeb508d438, 0xc0002409b0, 0xc000218200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc00027c5a0, 0x7fbeb508d438, 0xc0002409b0, 0xc000218200)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0002960e0, 0xc000218200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc00027c720, 0xab7900, 0xc0002960e0, 0xc000218200)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0002960e0, 0xc000218200)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc000296000, 0xab7900, 0xc0002960e0, 0xc000218200)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc000229400, 0xab8818, 0xc0002226c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 47 [IO wait]:
internal/poll.runtime_pollWait(0x7fbeb50cae30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000264398, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000264380, 0xc00027c9d1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000264380, 0xc00027c9d1, 0x1, 0x1, 0x461f80, 0x461f80, 0xc000200e40)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc000214200, 0xc00027c9d1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc00027c9c0)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 12 [IO wait]:
internal/poll.runtime_pollWait(0x7fbeb50cad48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000b0198, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0000b0180, 0xc0001f6000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0000b0180, 0xc0001f6000, 0x1000, 0x1000, 0x439c3c, 0xc000107c38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0001d0028, 0xc0001f6000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc000120900, 0xc0001f6000, 0x1000, 0x1000, 0xc0002ce000, 0xc000107d40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc000201560)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc000201560, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc000120900)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 13 [select]:
net/http.(*persistConn).writeLoop(0xc000120900)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-14T02:09:51.312Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-14T02:09:51.313Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-14T02:09:51.313Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-14T02:09:51.314Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-14T02:09:51.314Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-14T02:09:51.314Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc00005d800)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc00005d800)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000036000, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc000083080)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7ff1832baf18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a618, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00002a600, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00002a600, 0xc071a6e5a0f48301, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00000ccf0, 0x62f8598f, 0xc000167b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00000ccf0, 0xc000167b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0001d2000, 0xab76f0, 0xc00000ccf0, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00000ccf0, 0xc0001d2000, 0x0, 0x0, 0xaaf020, 0xc0000b42d0, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0001d2000, 0x0, 0x0, 0xaaf020, 0xc0000b42d0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 10 [chan receive]:
main.main.func1(0xaaf020, 0xc0000b42d0)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 36 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 14 [runnable]:
compress/flate.newHuffmanBitWriter(...)
/usr/local/go/src/compress/flate/huffman_bit_writer.go:98
compress/flate.(*compressor).init(0xc000650000, 0x7ff183286bd8, 0xc00045a0a0, 0xffffffffffffffff, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:579 +0x7d
compress/flate.NewWriter(0x7ff183286bd8, 0xc00045a0a0, 0xffffffffffffffff, 0xa, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:671 +0x65
compress/gzip.(*Writer).Write(0xc00013b1e0, 0xc000566000, 0xee, 0x1000, 0x0, 0xc000069610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:191 +0x305
bufio.(*Writer).Flush(0xc00050e500, 0xc0000696d0, 0xc000069620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc00050e500, 0xc0000697c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc00013b1e0, 0xc0000b4410, 0xee, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc0000b4410, 0xc00000c9d8, 0xa30c88)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7ff1832cc3f8, 0xc00045a0a0, 0xc000218100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc0001c6310, 0x7ff1832cc3f8, 0xc00045a0a0, 0xc000218100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7ff1832cc3f8, 0xc00045a0a0, 0xc000218100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0001c4840, 0x7ff1832cc3f8, 0xc00045a0a0, 0xc000218100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0001d21c0, 0xc000218100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0001c49c0, 0xab7900, 0xc0001d21c0, 0xc000218100)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0001d21c0, 0xc000218100)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0001d2000, 0xab7900, 0xc0001d21c0, 0xc000218100)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0001b8aa0, 0xab8818, 0xc000123440)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 69 [IO wait]:
internal/poll.runtime_pollWait(0x7ff1832bae30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a698, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00002a680, 0xc0001c4c71, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00002a680, 0xc0001c4c71, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00000e2d0, 0xc0001c4c71, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0001c4c60)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 76 [IO wait]:
internal/poll.runtime_pollWait(0x7ff1832bad48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000a8198, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0000a8180, 0xc00019e000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0000a8180, 0xc00019e000, 0x1000, 0x1000, 0x439c3c, 0xc000109c38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc000214020, 0xc00019e000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc00022a000, 0xc00019e000, 0x1000, 0x1000, 0xc000474000, 0xc000109d40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc0000b2300)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc0000b2300, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc00022a000)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 77 [select]:
net/http.(*persistConn).writeLoop(0xc00022a000)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-14T05:12:30.880Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-14T05:12:30.882Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-14T05:12:30.882Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-14T05:12:30.882Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-14T05:12:30.882Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-14T05:12:30.882Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc00005d800)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc00005d800)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000036000, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc000082d80)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f758143cf18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000248318, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc000248300, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc000248300, 0x1bd0356615cc5b01, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc000208ab0, 0x62f88473, 0xc000167b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc000208ab0, 0xc000167b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc000290000, 0xab76f0, 0xc000208ab0, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc000208ab0, 0xc000290000, 0x0, 0x0, 0xaaf020, 0xc00020c320, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc000290000, 0x0, 0x0, 0xaaf020, 0xc00020c320, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 19 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 41 [chan receive]:
main.main.func1(0xaaf020, 0xc00020c320)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 45 [runnable]:
compress/flate.(*compressor).deflate(0xc000580000)
/usr/local/go/src/compress/flate/deflate.go:429 +0x251
compress/flate.(*compressor).write(0xc000580000, 0xc00054c000, 0x14e, 0x1000, 0x1000, 0xdb5325c8, 0x61)
/usr/local/go/src/compress/flate/deflate.go:554 +0x85
compress/flate.(*Writer).Write(...)
/usr/local/go/src/compress/flate/deflate.go:712
compress/gzip.(*Writer).Write(0xc000232e70, 0xc00054c000, 0x14e, 0x1000, 0xc0002ab610, 0xc0002ab610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:196 +0xc5
bufio.(*Writer).Flush(0xc00023d240, 0xc0002ab6d0, 0xc0002ab620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc00023d240, 0xc0002ab7c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc000232e70, 0xc00007d590, 0x14e, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc00007d590, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f75813fc3b8, 0xc00020c870, 0xc00025a100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc00028e000, 0x7f75813fc3b8, 0xc00020c870, 0xc00025a100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f75813fc3b8, 0xc00020c870, 0xc00025a100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc00020f9e0, 0x7f75813fc3b8, 0xc00020c870, 0xc00025a100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0002900e0, 0xc00025a100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc00020fb60, 0xab7900, 0xc0002900e0, 0xc00025a100)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0002900e0, 0xc00025a100)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc000290000, 0xab7900, 0xc0002900e0, 0xc00025a100)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0002168c0, 0xab8818, 0xc00023c540)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 46 [IO wait]:
internal/poll.runtime_pollWait(0x7f758143ce30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000248398, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000248380, 0xc00020fe11, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000248380, 0xc00020fe11, 0x1, 0x1, 0x461f80, 0x461f80, 0xc000200c60)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00023a160, 0xc00020fe11, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc00020fe00)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 22 [IO wait]:
internal/poll.runtime_pollWait(0x7f758143cd48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000a8118, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0000a8100, 0xc0000e0000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0000a8100, 0xc0000e0000, 0x1000, 0x1000, 0x439c3c, 0xc00010fc38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000a0030, 0xc0000e0000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc000128c60, 0xc0000e0000, 0x1000, 0x1000, 0xc00007e300, 0xc00010fd40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc0002014a0)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc0002014a0, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc000128c60)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 23 [select]:
net/http.(*persistConn).writeLoop(0xc000128c60)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-14T08:09:55.037Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-14T08:09:55.038Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-14T08:09:55.038Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-14T08:09:55.038Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-14T08:09:55.038Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-14T08:09:55.039Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc00005d800)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc00005d800)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000036000, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc0000ba000)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7efd7ec02f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00024c098, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00024c080, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00024c080, 0x6a4cab6a51712b01, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc0002008d0, 0x62f8adef, 0xc00015fb48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc0002008d0, 0xc00015fb98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc000250000, 0xab76f0, 0xc0002008d0, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc0002008d0, 0xc000250000, 0x0, 0x0, 0xaaf020, 0xc000286230, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc000250000, 0x0, 0x0, 0xaaf020, 0xc000286230, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 20 [chan receive]:
main.main.func1(0xaaf020, 0xc000286230)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 52 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 24 [runnable]:
github.com/prometheus/client_golang/prometheus.checkMetricConsistency(0xc0000a80f0, 0xc0000b2150, 0xc000275628, 0x2a, 0xc0001a3088)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:887 +0x8a5
github.com/prometheus/client_golang/prometheus.processMetric(0xab2768, 0xc000218200, 0xc0002755f8, 0xc000275628, 0x0, 0x9f0800, 0x1)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:673 +0x3ce
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc00007c960, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:492 +0x9da
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7efd7ebc6378, 0xc000286730, 0xc000300200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc00020aa10, 0x7efd7ebc6378, 0xc000286730, 0xc000300200)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7efd7ebc6378, 0xc000286730, 0xc000300200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0002109f0, 0x7efd7ebc6378, 0xc000286730, 0xc000300200)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc000250380, 0xc000300200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc000210b70, 0xab7900, 0xc000250380, 0xc000300200)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc000250380, 0xc000300200)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc000250000, 0xab7900, 0xc000250380, 0xc000300200)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc000262000, 0xab8818, 0xc0002182c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 11 [IO wait]:
internal/poll.runtime_pollWait(0x7efd7ec02e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00024c118, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc00024c100, 0xc000210e21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc00024c100, 0xc000210e21, 0x1, 0x1, 0xc00009c180, 0x0, 0xc000218398)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0002120a0, 0xc000210e21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc000210e10)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 13 [semacquire]:
sync.runtime_Semacquire(0xc0000b5878)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc0000b5870)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc0000b5870, 0xc00007b260, 0xc00007b2c0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:463 +0x2b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 12 [select]:
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect(0xc00002a580, 0xc00007b260)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:312 +0x695
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:457 +0x5ce
goroutine 14 [runnable]:
path/filepath.join(0xc00068a000, 0x2, 0x2, 0xc0002717b8, 0x1)
/usr/local/go/src/path/filepath/path_unix.go:41 +0xe5
path/filepath.Join(...)
/usr/local/go/src/path/filepath/path.go:213
github.com/prometheus/procfs/internal/fs.FS.Path(...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/internal/fs/fs.go:54
github.com/prometheus/procfs.FS.Proc(0xa05a30, 0x5, 0x646e3, 0x5, 0x0, 0x0, 0xc000200b01, 0x1)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/proc.go:92 +0x11f
github.com/prometheus/procfs.NewProc(0x646e3, 0x0, 0x0, 0x8, 0x2, 0x7efda58cc108)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/proc.go:58 +0xa5
github.com/prometheus/client_golang/prometheus.(*processCollector).processCollect(0xc00007c9b0, 0xc00007b260)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector_other.go:34 +0x1a5
github.com/prometheus/client_golang/prometheus.(*processCollector).Collect(0xc00007c9b0, 0xc00007b260)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector.go:138 +0x33
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 81 [runnable]:
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect.func1(0xc00002a580, 0xc0001c1800, 0xc0002d0240)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:285
created by github.com/prometheus/client_golang/prometheus.(*goCollector).Collect
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:285 +0xa9
[ OK ]
level=info ts=2022-08-14T11:09:51.338Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-14T11:09:51.340Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-14T11:09:51.340Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-14T11:09:51.340Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-14T11:09:51.340Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-14T11:09:51.340Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000080400)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000080400)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000038800, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00008df01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f90cfae6f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a118, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00002a100, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00002a100, 0x20292e85afaa5601, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00000c8e8, 0x62f8d81f, 0xc000187b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00000c8e8, 0xc000187b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0002bc000, 0xab76f0, 0xc00000c8e8, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00000c8e8, 0xc0002bc000, 0x0, 0x0, 0xaaf020, 0xc00020e230, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0002bc000, 0x0, 0x0, 0xaaf020, 0xc00020e230, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 20 [runnable]:
net/http.(*Client).do(0xc000290570, 0xc0001da300, 0xa04fba, 0x3, 0x7ffe6a707ef8)
/usr/local/go/src/net/http/client.go:590
net/http.(*Client).Do(...)
/usr/local/go/src/net/http/client.go:585
main.(*Exporter).collect(0xc000296000, 0xc00007a840, 0x0, 0x0)
/app/apache_exporter.go:291 +0x177
main.(*Exporter).Collect(0xc000296000, 0xc00007a840)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 52 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 8 [chan receive]:
main.main.func1(0xaaf020, 0xc00020e230)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 12 [runnable]:
runtime.Gosched(...)
/usr/local/go/src/runtime/proc.go:292
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc000108960, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:540 +0xe5e
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f90cfa62278, 0xc00007c500, 0xc0002e2000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc00007ea10, 0x7f90cfa62278, 0xc00007c500, 0xc0002e2000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f90cfa62278, 0xc00007c500, 0xc0002e2000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0002909f0, 0x7f90cfa62278, 0xc00007c500, 0xc0002e2000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0002bc0e0, 0xc0002e2000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc000290b70, 0xab7900, 0xc0002bc0e0, 0xc0002e2000)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0002bc0e0, 0xc0002e2000)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0002bc000, 0xab7900, 0xc0002bc0e0, 0xc0002e2000)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0000200a0, 0xab8818, 0xc0002922c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 13 [runnable]:
net/http.(*connReader).backgroundRead(0xc000290e10)
/usr/local/go/src/net/http/server.go:671
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 14 [select]:
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect(0xc0000a8000, 0xc00007a840)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:312 +0x695
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:457 +0x5ce
goroutine 15 [semacquire]:
sync.runtime_Semacquire(0xc000022228)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc000022220)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc000022220, 0xc00007a840, 0xc00007a8a0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:463 +0x2b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 16 [runnable]:
bytes.(*Reader).Read(0xc000291080, 0xc0002fe000, 0x1000, 0x1000, 0x0, 0x0, 0xc00028b040)
/usr/local/go/src/bytes/reader.go:40 +0xf3
bufio.(*Scanner).Scan(0xc00028b348, 0xc000291080)
/usr/local/go/src/bufio/scan.go:214 +0xa9
github.com/prometheus/procfs.FS.Stat(0xa05a30, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/stat.go:177 +0x2b6
github.com/prometheus/procfs.ProcStat.StartTime(0xb2a57, 0xc000022270, 0xf, 0xd9c178, 0x1, 0x1, 0xb2a56, 0xb2a56, 0x0, 0xffffffffffffffff, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/proc_stat.go:179 +0x85
github.com/prometheus/client_golang/prometheus.(*processCollector).processCollect(0xc0001089b0, 0xc00007a840)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector_other.go:44 +0xe78
github.com/prometheus/client_golang/prometheus.(*processCollector).Collect(0xc0001089b0, 0xc00007a840)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector.go:138 +0x33
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 53 [waiting]:
runtime.ReadMemStats(0xc000308000)
/usr/local/go/src/runtime/mstats.go:473 +0x36
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect.func1(0xc0000a8000, 0xc000308000, 0xc0002581e0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:286 +0x38
created by github.com/prometheus/client_golang/prometheus.(*goCollector).Collect
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:285 +0xa9
goroutine 65 [runnable]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:442
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
[ OK ]
level=info ts=2022-08-14T14:09:50.322Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-14T14:09:50.323Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-14T14:09:50.323Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-14T14:09:50.323Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-14T14:09:50.323Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-14T14:09:50.325Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000380000)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000380000)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000036000, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc0002a3f01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7ffba6988f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000108598, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc000108580, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc000108580, 0xf06e93e8a9b5d401, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc0000b6d08, 0x62f9024f, 0xc000113b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc0000b6d08, 0xc000113b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc000300000, 0xab76f0, 0xc0000b6d08, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc0000b6d08, 0xc000300000, 0x0, 0x0, 0xaaf020, 0xc000240460, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc000300000, 0x0, 0x0, 0xaaf020, 0xc000240460, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 22 [chan receive]:
main.main.func1(0xaaf020, 0xc000240460)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 7 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 26 [runnable]:
runtime.Gosched(...)
/usr/local/go/src/runtime/proc.go:292
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc0000d0910, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:540 +0xe5e
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7ffba699e5f8, 0xc0000d0f00, 0xc00016a200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc000174310, 0x7ffba699e5f8, 0xc0000d0f00, 0xc00016a200)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7ffba699e5f8, 0xc0000d0f00, 0xc00016a200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc000172840, 0x7ffba699e5f8, 0xc0000d0f00, 0xc00016a200)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0003000e0, 0xc00016a200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0001729c0, 0xab7900, 0xc0003000e0, 0xc00016a200)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0003000e0, 0xc00016a200)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc000300000, 0xab7900, 0xc0003000e0, 0xc00016a200)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc000166a00, 0xab8818, 0xc0000c9440)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 27 [IO wait]:
internal/poll.runtime_pollWait(0x7ffba6988e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000108618, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000108600, 0xc000172c71, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000108600, 0xc000172c71, 0x1, 0x1, 0x461f80, 0x461f80, 0xc0000c71a0)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000c42c8, 0xc000172c71, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc000172c60)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 29 [runnable]:
sync.runtime_Semacquire(0xc0000c0f18)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc0000c0f10)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc0000c0f10, 0xc0000c73e0, 0xc0000c7440)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:463 +0x2b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 30 [runnable]:
net/url.getscheme(0x7ffc94b57ef8, 0x28, 0xc00016a200, 0x100000000000000, 0xab0020, 0xabe608, 0xc000174310, 0xc0000c9380)
/usr/local/go/src/net/url/url.go:431 +0x174
net/url.parse(0x7ffc94b57ef8, 0x28, 0xc000160100, 0x7ffc94b57ef8, 0x28, 0x0)
/usr/local/go/src/net/url/url.go:528 +0x114
net/url.Parse(0x7ffc94b57ef8, 0x28, 0xa32218, 0xab7901, 0xffffffffffffffff)
/usr/local/go/src/net/url/url.go:478 +0x85
net/http.NewRequestWithContext(0xab87a8, 0xc0000c0058, 0xa04fba, 0x3, 0x7ffc94b57ef8, 0x28, 0x0, 0x0, 0x0, 0x0, ...)
/usr/local/go/src/net/http/request.go:866 +0xa8
net/http.NewRequest(...)
/usr/local/go/src/net/http/request.go:828
main.(*Exporter).collect(0xc0001560f0, 0xc0000c73e0, 0x0, 0x0)
/app/apache_exporter.go:284 +0x85
main.(*Exporter).Collect(0xc0001560f0, 0xc0000c73e0)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 8 [runnable]:
io.(*LimitedReader).Read(0xc00000c870, 0xc000402900, 0x300, 0x300, 0x901, 0xc000402000, 0x900)
/usr/local/go/src/io/io.go:466 +0xc9
io.ReadAll(0xaaf2e0, 0xc00000c870, 0x0, 0x0, 0xc00000e020, 0x0, 0x0)
/usr/local/go/src/io/io.go:633 +0xdf
io/ioutil.ReadAll(...)
/usr/local/go/src/io/ioutil/ioutil.go:27
github.com/prometheus/procfs/internal/util.ReadFileNoStat(0xc000022110, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/internal/util/readfile.go:37 +0xfd
github.com/prometheus/procfs.FS.Stat(0xa05a30, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/stat.go:169 +0x18d
github.com/prometheus/procfs.ProcStat.StartTime(0x94bc, 0xc0000220a0, 0xf, 0xd9c178, 0x1, 0x1, 0x94bb, 0x94bb, 0x0, 0xffffffffffffffff, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/proc_stat.go:179 +0x85
github.com/prometheus/client_golang/prometheus.(*processCollector).processCollect(0xc0000d0960, 0xc0000c73e0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector_other.go:44 +0xe78
github.com/prometheus/client_golang/prometheus.(*processCollector).Collect(0xc0000d0960, 0xc0000c73e0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector.go:138 +0x33
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 39 [runnable]:
runtime/debug.readGCStats(0xc00023be58)
/usr/local/go/src/runtime/mstats.go:556 +0x58
runtime/debug.ReadGCStats(0xc00023be30)
/usr/local/go/src/runtime/debug/garbage.go:48 +0x52
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect(0xc00002a080, 0xc0000c73e0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:300 +0x29f
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 40 [runnable]:
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect.func1(0xc00002a080, 0xc0002ac000, 0xc00026c1e0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:285
created by github.com/prometheus/client_golang/prometheus.(*goCollector).Collect
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:285 +0xa9
[ OK ]
level=info ts=2022-08-14T17:09:51.304Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-14T17:09:51.305Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-14T17:09:51.305Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-14T17:09:51.305Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-14T17:09:51.305Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-14T17:09:51.306Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000400000)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000400000)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000036000, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f8094e72f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0002a8098, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc0002a8080, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc0002a8080, 0xbd0a58b7c0ad6c01, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc0002908a0, 0x62f92c7f, 0xc00015fb48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc0002908a0, 0xc00015fb98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0002d0000, 0xab76f0, 0xc0002908a0, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc0002908a0, 0xc0002d0000, 0x0, 0x0, 0xaaf020, 0xc0000dc500, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0002d0000, 0x0, 0x0, 0xaaf020, 0xc0000dc500, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 33 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 36 [chan receive]:
main.main.func1(0xaaf020, 0xc0000dc500)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 40 [runnable]:
runtime.Gosched(...)
/usr/local/go/src/runtime/proc.go:292
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc00007c960, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:540 +0xe5e
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f8094e32278, 0xc0002a64b0, 0xc0002f0000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc00028ca10, 0x7f8094e32278, 0xc0002a64b0, 0xc0002f0000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f8094e32278, 0xc0002a64b0, 0xc0002f0000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0002989f0, 0x7f8094e32278, 0xc0002a64b0, 0xc0002f0000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0002d00e0, 0xc0002f0000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc000298b70, 0xab7900, 0xc0002d00e0, 0xc0002f0000)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0002d00e0, 0xc0002f0000)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0002d0000, 0xab7900, 0xc0002d00e0, 0xc0002f0000)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0002e2000, 0xab8818, 0xc0002a02c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 41 [IO wait]:
internal/poll.runtime_pollWait(0x7f8094e72e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0002a8118, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0002a8100, 0xc000298e21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0002a8100, 0xc000298e21, 0x1, 0x1, 0x461f80, 0x461f80, 0xc000294540)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc00029a0a0, 0xc000298e21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc000298e10)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 42 [runnable]:
syscall.Getenv(0xa0783c, 0x7, 0x0, 0x0, 0x0)
/usr/local/go/src/syscall/env_unix.go:83 +0xbb
os.Getenv(0xa0783c, 0x7, 0x0, 0x0)
/usr/local/go/src/os/env.go:103 +0x4d
net/http.(*Transport).onceSetNextProtoDefaults(0xc0002a2000)
/usr/local/go/src/net/http/transport.go:362 +0x5f
sync.(*Once).doSlow(0xc0002a2110, 0xc000105660)
/usr/local/go/src/sync/once.go:68 +0xec
sync.(*Once).Do(...)
/usr/local/go/src/sync/once.go:59
net/http.(*Transport).roundTrip(0xc0002a2000, 0xc0001b4200, 0x30, 0x9db900, 0x7f809501a100)
/usr/local/go/src/net/http/transport.go:503 +0x111c
net/http.(*Transport).RoundTrip(0xc0002a2000, 0xc0001b4200, 0xc0002a2000, 0x0, 0x0)
/usr/local/go/src/net/http/roundtrip.go:17 +0x35
net/http.send(0xc0001b4200, 0xaaf4e0, 0xc0002a2000, 0x0, 0x0, 0x0, 0xc00000e240, 0x203000, 0x1, 0x0)
/usr/local/go/src/net/http/client.go:251 +0x454
net/http.(*Client).send(0xc000298570, 0xc0001b4200, 0x0, 0x0, 0x0, 0xc00000e240, 0x0, 0x1, 0xc0001b4200)
/usr/local/go/src/net/http/client.go:175 +0xff
net/http.(*Client).do(0xc000298570, 0xc0001b4200, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/client.go:717 +0x45f
net/http.(*Client).Do(...)
/usr/local/go/src/net/http/client.go:585
main.(*Exporter).collect(0xc0002a4000, 0xc000294780, 0x0, 0x0)
/app/apache_exporter.go:291 +0x177
main.(*Exporter).Collect(0xc0002a4000, 0xc000294780)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:457 +0x5ce
goroutine 43 [semacquire]:
sync.runtime_Semacquire(0xc00028a1c8)
/usr/local/go/src/runtime/sema.go:56 +0x45
sync.(*WaitGroup).Wait(0xc00028a1c0)
/usr/local/go/src/sync/waitgroup.go:130 +0x65
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc00028a1c0, 0xc000294780, 0xc0002947e0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:463 +0x2b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 44 [runnable]:
io.ReadAtLeast(0xaaefe0, 0xc00028e7e0, 0xc0002992b0, 0x1, 0x4, 0x1, 0x0, 0xc000096c30, 0x478225)
/usr/local/go/src/io/io.go:322 +0x1c5
io.ReadFull(...)
/usr/local/go/src/io/io.go:347
fmt.(*readRune).readByte(0xc000299290, 0x418754a8c0000000, 0x8, 0x0)
/usr/local/go/src/fmt/scan.go:321 +0x6a
fmt.(*readRune).ReadRune(0xc000299290, 0x20, 0x1, 0x0, 0x0)
/usr/local/go/src/fmt/scan.go:337 +0xb5
fmt.(*ss).ReadRune(0xc000294900, 0x20, 0x1, 0x0, 0x0)
/usr/local/go/src/fmt/scan.go:189 +0x7a
fmt.(*ss).getRune(0xc000294900, 0x1)
/usr/local/go/src/fmt/scan.go:211 +0x2f
fmt.(*ss).advance(0xc000294900, 0xa172ba, 0x18, 0xc0002b2af8)
/usr/local/go/src/fmt/scan.go:1145 +0x246
fmt.(*ss).doScanf(0xc000294900, 0xa172b2, 0x20, 0xc000096fc0, 0xb, 0xb, 0x3, 0x0, 0x0)
/usr/local/go/src/fmt/scan.go:1186 +0x105
fmt.Fscanf(0xaaefe0, 0xc00028e7e0, 0xa172b2, 0x20, 0xc000096fc0, 0xb, 0xb, 0xc000316304, 0x754, 0xcfc)
/usr/local/go/src/fmt/scan.go:143 +0xd9
fmt.Sscanf(...)
/usr/local/go/src/fmt/scan.go:114
github.com/prometheus/procfs.parseCPUStat(0xc0002b2a50, 0x4b, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/stat.go:89 +0x228
github.com/prometheus/procfs.FS.Stat(0xa05a30, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/stat.go:224 +0x4a6
github.com/prometheus/procfs.ProcStat.StartTime(0x606e7, 0xc00028a210, 0xf, 0xd9c178, 0x1, 0x1, 0x606e6, 0x606e6, 0x0, 0xffffffffffffffff, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/proc_stat.go:179 +0x85
github.com/prometheus/client_golang/prometheus.(*processCollector).processCollect(0xc00007c9b0, 0xc000294780)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector_other.go:44 +0xe78
github.com/prometheus/client_golang/prometheus.(*processCollector).Collect(0xc00007c9b0, 0xc000294780)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector.go:138 +0x33
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 25 [select]:
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect(0xc00002a580, 0xc000294780)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:312 +0x695
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 26 [waiting]:
runtime.ReadMemStats(0xc000224000)
/usr/local/go/src/runtime/mstats.go:473 +0x36
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect.func1(0xc00002a580, 0xc000224000, 0xc0002081e0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:286 +0x38
created by github.com/prometheus/client_golang/prometheus.(*goCollector).Collect
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:285 +0xa9
[ OK ]
level=info ts=2022-08-14T20:09:54.244Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-14T20:09:54.245Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-14T20:09:54.245Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-14T20:09:54.245Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-14T20:09:54.245Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-14T20:09:54.246Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 11 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime: failed to create new OS thread (have 11 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000088800)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000088800)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000033800, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc000206480)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7eff8e904f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000226098, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc000226080, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc000226080, 0xc8a79ded7eb11701, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00020e8b8, 0x62f956af, 0xc00015fb48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00020e8b8, 0xc00015fb98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc000248000, 0xab76f0, 0xc00020e8b8, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00020e8b8, 0xc000248000, 0x0, 0x0, 0xaaf020, 0xc00007cfa0, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc000248000, 0x0, 0x0, 0xaaf020, 0xc00007cfa0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 17 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 20 [chan receive]:
main.main.func1(0xaaf020, 0xc00007cfa0)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 24 [syscall]:
github.com/prometheus/client_golang/prometheus.processMetric(0xab26f0, 0xc0000b3740, 0xc0002655f8, 0xc000265628, 0x0, 0xc000265300, 0x1)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:650 +0xaf5 fp=0xc0002653b0 sp=0xc000265288 pc=0x807a55
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc00007c960, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:492 +0x9da fp=0xc000265810 sp=0xc0002653b0 pc=0x8069ba
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7eff8e8c4278, 0xc0000b0460, 0xc000270200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99 fp=0xc0002659c0 sp=0xc000265810 pc=0x816ef9
net/http.HandlerFunc.ServeHTTP(0xc00020aa10, 0x7eff8e8c4278, 0xc0000b0460, 0xc000270200)
/usr/local/go/src/net/http/server.go:2049 +0x44 fp=0xc0002659e8 sp=0xc0002659c0 pc=0x6ae744
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7eff8e8c4278, 0xc0000b0460, 0xc000270200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab fp=0xc000265a50 sp=0xc0002659e8 pc=0x817b4b
net/http.HandlerFunc.ServeHTTP(0xc0002169f0, 0x7eff8e8c4278, 0xc0000b0460, 0xc000270200)
/usr/local/go/src/net/http/server.go:2049 +0x44 fp=0xc000265a78 sp=0xc000265a50 pc=0x6ae744
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc000248380, 0xc000270200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf fp=0xc000265ae8 sp=0xc000265a78 pc=0x817c7f
net/http.HandlerFunc.ServeHTTP(0xc000216b70, 0xab7900, 0xc000248380, 0xc000270200)
/usr/local/go/src/net/http/server.go:2049 +0x44 fp=0xc000265b10 sp=0xc000265ae8 pc=0x6ae744
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc000248380, 0xc000270200)
/usr/local/go/src/net/http/server.go:2428 +0x1ad fp=0xc000265b70 sp=0xc000265b10 pc=0x6b05cd
net/http.serverHandler.ServeHTTP(0xc000248000, 0xab7900, 0xc000248380, 0xc000270200)
/usr/local/go/src/net/http/server.go:2867 +0xa3 fp=0xc000265ba0 sp=0xc000265b70 pc=0x6b1d03
net/http.(*conn).serve(0xc00025a000, 0xab8818, 0xc00021e2c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd fp=0xc000265fc8 sp=0xc000265ba0 pc=0x6ad22d
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 49 [IO wait]:
internal/poll.runtime_pollWait(0x7eff8e904e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000226118, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000226100, 0xc000216e21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000226100, 0xc000216e21, 0x1, 0x1, 0xc0002120c0, 0x0, 0xc00021e398)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0002180a8, 0xc000216e21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc000216e10)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 51 [runnable]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc0000ad8d0, 0xc00007baa0, 0xc00007bb00)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 50 [semacquire]:
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect(0xc00002a580, 0xc00007baa0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:281 +0x3f
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:457 +0x5ce
goroutine 52 [semacquire]:
github.com/prometheus/procfs.FS.Stat(0xa05a30, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/stat.go:232 +0x5de
github.com/prometheus/procfs.ProcStat.StartTime(0xb26de, 0xc0000ad920, 0xf, 0xd9c178, 0x1, 0x1, 0xb26dd, 0xb26dd, 0x0, 0xffffffffffffffff, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/proc_stat.go:179 +0x85
github.com/prometheus/client_golang/prometheus.(*processCollector).processCollect(0xc00007c9b0, 0xc00007baa0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector_other.go:44 +0xe78
github.com/prometheus/client_golang/prometheus.(*processCollector).Collect(0xc00007c9b0, 0xc00007baa0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector.go:138 +0x33
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc0002d6000)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc0002d6000)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0x0, 0xc00002c000, 0xa)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0xc00002c000, 0xc00002c000)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.handoffp(0xc00002c000)
/usr/local/go/src/runtime/proc.go:2412 +0x65
runtime.entersyscallblock_handoff()
/usr/local/go/src/runtime/proc.go:3687 +0x30
runtime.systemstack(0x0)
/usr/local/go/src/runtime/asm_amd64.s:379 +0x66
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1246
[ OK ]
level=info ts=2022-08-14T23:09:51.561Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-14T23:09:51.562Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-14T23:09:51.562Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-14T23:09:51.562Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-14T23:09:51.563Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-14T23:09:51.563Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000278c00)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000278c00)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000036000, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc000001380)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f7dab94bf18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000a8118, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc0000a8100, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc0000a8100, 0x91ba88aa7dc05e01, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc0000970e0, 0x62f980df, 0xc000167b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc0000970e0, 0xc000167b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0000ea000, 0xab76f0, 0xc0000970e0, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc0000970e0, 0xc0000ea000, 0x0, 0x0, 0xaaf020, 0xc000240460, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0000ea000, 0x0, 0x0, 0xaaf020, 0xc000240460, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 19 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 22 [chan receive]:
main.main.func1(0xaaf020, 0xc000240460)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 26 [syscall]:
compress/flate.NewWriter(0x7f7dab6e8d58, 0xc0000b4550, 0xffffffffffffffff, 0xa, 0xa, 0x0)
/usr/local/go/src/compress/flate/deflate.go:670 +0x31
compress/gzip.(*Writer).Write(0xc000326160, 0xc000490000, 0xee, 0x1000, 0x0, 0xc000093610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:191 +0x305
bufio.(*Writer).Flush(0xc000222b80, 0xc0000936d0, 0xc000093620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc000222b80, 0xc0000937c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc000326160, 0xc0000b4960, 0xee, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc0000b4960, 0xc000324bb8, 0xa30c88)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f7dab98f368, 0xc0000b4550, 0xc0002a0000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc00009b650, 0x7f7dab98f368, 0xc0000b4550, 0xc0002a0000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f7dab98f368, 0xc0000b4550, 0xc0002a0000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0000a2a20, 0x7f7dab98f368, 0xc0000b4550, 0xc0002a0000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0000ea0e0, 0xc0002a0000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0000a2ba0, 0xab7900, 0xc0000ea0e0, 0xc0002a0000)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0000ea0e0, 0xc0002a0000)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0000ea000, 0xab7900, 0xc0000ea0e0, 0xc0002a0000)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0000fc000, 0xab8818, 0xc0000c22c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 27 [IO wait]:
internal/poll.runtime_pollWait(0x7f7dab94be30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000a8198, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0000a8180, 0xc0000a2e51, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0000a8180, 0xc0000a2e51, 0x1, 0x1, 0x461f80, 0x461f80, 0xc0000b2600)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000a00a8, 0xc0000a2e51, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0000a2e40)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 10 [IO wait]:
internal/poll.runtime_pollWait(0x7f7dab94bd48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000a8298, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0000a8280, 0xc0001f0000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0000a8280, 0xc0001f0000, 0x1000, 0x1000, 0x439c3c, 0xc000109c38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000a00f0, 0xc0001f0000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc0001287e0, 0xc0001f0000, 0x1000, 0x1000, 0xc0000e8360, 0xc000109d40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc0001c8420)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc0001c8420, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc0001287e0)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 11 [select]:
net/http.(*persistConn).writeLoop(0xc0001287e0)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-15T02:09:52.756Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-15T02:09:52.759Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-15T02:09:52.759Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-15T02:09:52.759Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-15T02:09:52.759Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-15T02:09:52.760Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000300000)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000300000)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000036000, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc000093f01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7fa5a9953018, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000264318, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc000264300, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc000264300, 0xe9ade49971237501, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00020cc00, 0x62f9ab0f, 0xc000113b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00020cc00, 0xc000113b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc00029e000, 0xab76f0, 0xc00020cc00, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00020cc00, 0xc00029e000, 0x0, 0x0, 0xaaf020, 0xc000240370, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc00029e000, 0x0, 0x0, 0xaaf020, 0xc000240370, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 23 [waiting]:
runtime.ReadMemStats(0xc00017a000)
/usr/local/go/src/runtime/mstats.go:473 +0x36
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect.func1(0xc00002a080, 0xc00017a000, 0xc000094120)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:286 +0x38
created by github.com/prometheus/client_golang/prometheus.(*goCollector).Collect
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:285 +0xa9
goroutine 22 [select]:
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect(0xc00002a080, 0xc000200f60)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:312 +0x695
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 36 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 39 [chan receive]:
main.main.func1(0xaaf020, 0xc000240370)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 43 [runnable]:
runtime.Gosched(...)
/usr/local/go/src/runtime/proc.go:292
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc0000c8910, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:540 +0xe5e
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7fa5a97ad438, 0xc0002408c0, 0xc000218200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc00028a7e0, 0x7fa5a97ad438, 0xc0002408c0, 0xc000218200)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7fa5a97ad438, 0xc0002408c0, 0xc000218200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc00028c5a0, 0x7fa5a97ad438, 0xc0002408c0, 0xc000218200)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc00029e0e0, 0xc000218200)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc00028c720, 0xab7900, 0xc00029e0e0, 0xc000218200)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc00029e0e0, 0xc000218200)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc00029e000, 0xab7900, 0xc00029e0e0, 0xc000218200)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc000229400, 0xab8818, 0xc0002226c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 44 [runnable]:
net/http.(*connReader).backgroundRead(0xc00028c9c0)
/usr/local/go/src/net/http/server.go:671
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 45 [runnable]:
syscall.Syscall(0x0, 0x8, 0xc0001a6200, 0x200, 0x200, 0x200, 0x0)
/usr/local/go/src/syscall/asm_linux_amd64.s:20 +0x5
syscall.read(0x8, 0xc0001a6200, 0x200, 0x200, 0x0, 0x4c01ec, 0x48)
/usr/local/go/src/syscall/zsyscall_linux_amd64.go:686 +0x5a
syscall.Read(...)
/usr/local/go/src/syscall/syscall_unix.go:187
internal/poll.ignoringEINTRIO(...)
/usr/local/go/src/internal/poll/fd_unix.go:581
internal/poll.(*FD).Read(0xc00007a3c0, 0xc0001a6200, 0x200, 0x200, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:162 +0x145
os.(*File).read(...)
/usr/local/go/src/os/file_posix.go:31
os.(*File).Read(0xc00000e028, 0xc0001a6200, 0x200, 0x200, 0x9463a0, 0x990b01, 0xc0001a6200)
/usr/local/go/src/os/file.go:117 +0x77
io.(*LimitedReader).Read(0xc00000c8b8, 0xc0001a6200, 0x200, 0x200, 0xc00000c8b8, 0xc0002cf008, 0xc00005c400)
/usr/local/go/src/io/io.go:473 +0x63
io.ReadAll(0xaaf2e0, 0xc00000c8b8, 0x0, 0x0, 0xc00000e028, 0x0, 0x0)
/usr/local/go/src/io/io.go:633 +0xdf
io/ioutil.ReadAll(...)
/usr/local/go/src/io/ioutil/ioutil.go:27
github.com/prometheus/procfs/internal/util.ReadFileNoStat(0xc000022110, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/internal/util/readfile.go:37 +0xfd
github.com/prometheus/procfs.FS.Stat(0xa05a30, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/stat.go:169 +0x18d
github.com/prometheus/procfs.ProcStat.StartTime(0x4f117, 0xc0000220a0, 0xf, 0xd9c178, 0x1, 0x1, 0x4f114, 0x4f114, 0x0, 0xffffffffffffffff, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/proc_stat.go:179 +0x85
github.com/prometheus/client_golang/prometheus.(*processCollector).processCollect(0xc0000c8960, 0xc000200f60)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector_other.go:44 +0xe78
github.com/prometheus/client_golang/prometheus.(*processCollector).Collect(0xc0000c8960, 0xc000200f60)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector.go:138 +0x33
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:457 +0x5ce
goroutine 46 [runnable]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc00021e870, 0xc000200f60, 0xc000200fc0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 47 [runnable]:
syscall.Getenv(0xa0783c, 0x7, 0x0, 0x0, 0x0)
/usr/local/go/src/syscall/env_unix.go:83 +0xbb
os.Getenv(0xa0783c, 0x7, 0x40de10, 0x7fa5d05d4a68)
/usr/local/go/src/os/env.go:103 +0x4d
net/http.(*Transport).onceSetNextProtoDefaults(0xc0002428c0)
/usr/local/go/src/net/http/transport.go:362 +0x5f
sync.(*Once).doSlow(0xc0002429d0, 0xc0002b4660)
/usr/local/go/src/sync/once.go:68 +0xec
sync.(*Once).Do(...)
/usr/local/go/src/sync/once.go:59
net/http.(*Transport).roundTrip(0xc0002428c0, 0xc000218300, 0x30, 0x9db900, 0xd)
/usr/local/go/src/net/http/transport.go:503 +0x111c
net/http.(*Transport).RoundTrip(0xc0002428c0, 0xc000218300, 0xc0002428c0, 0x0, 0x0)
/usr/local/go/src/net/http/roundtrip.go:17 +0x35
net/http.send(0xc000218300, 0xaaf4e0, 0xc0002428c0, 0x0, 0x0, 0x0, 0xc00020e208, 0x203000, 0x1, 0x0)
/usr/local/go/src/net/http/client.go:251 +0x454
net/http.(*Client).send(0xc00028c120, 0xc000218300, 0x0, 0x0, 0x0, 0xc00020e208, 0x0, 0x1, 0xc000218300)
/usr/local/go/src/net/http/client.go:175 +0xff
net/http.(*Client).do(0xc00028c120, 0xc000218300, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/client.go:717 +0x45f
net/http.(*Client).Do(...)
/usr/local/go/src/net/http/client.go:585
main.(*Exporter).collect(0xc000244f00, 0xc000200f60, 0x0, 0x0)
/app/apache_exporter.go:291 +0x177
main.(*Exporter).Collect(0xc000244f00, 0xc000200f60)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
[ OK ]
level=info ts=2022-08-15T05:10:49.094Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-15T05:10:49.095Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-15T05:10:49.095Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-15T05:10:49.095Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-15T05:10:49.095Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-15T05:10:49.096Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000080400)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000080400)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000036000, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc0002e5f01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f155dac2f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a898, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00002a880, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00002a880, 0x84bfab87d23ae101, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00000ce40, 0x62f9d57b, 0xc000167b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00000ce40, 0xc000167b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0001ee000, 0xab76f0, 0xc00000ce40, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00000ce40, 0xc0001ee000, 0x0, 0x0, 0xaaf020, 0xc00007cc80, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0001ee000, 0x0, 0x0, 0xaaf020, 0xc00007cc80, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 34 [runnable]:
runtime/debug.readGCStats(0xc0002ba958)
/usr/local/go/src/runtime/mstats.go:556 +0x58
runtime/debug.ReadGCStats(0xc0002ba930)
/usr/local/go/src/runtime/debug/garbage.go:48 +0x52
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect(0xc0000a8000, 0xc00020c120)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:300 +0x29f
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 50 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 12 [chan receive]:
main.main.func1(0xaaf020, 0xc00007cc80)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 16 [runnable]:
io.(*LimitedReader).Read(0xc000380000, 0xc000400200, 0x200, 0x200, 0x201, 0xc000400000, 0x200)
/usr/local/go/src/io/io.go:466 +0xc9
io.ReadAll(0xaaf2e0, 0xc000380000, 0x0, 0x0, 0xc00000e388, 0x0, 0x0)
/usr/local/go/src/io/io.go:633 +0xdf
io/ioutil.ReadAll(...)
/usr/local/go/src/io/ioutil/ioutil.go:27
github.com/prometheus/procfs/internal/util.ReadFileNoStat(0xc0000235c0, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/internal/util/readfile.go:37 +0xfd
github.com/prometheus/procfs.FS.Stat(0xa05a30, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/stat.go:169 +0x18d
github.com/prometheus/procfs.ProcStat.StartTime(0xda242, 0xc000023550, 0xf, 0xd9c178, 0x1, 0x1, 0xda241, 0xda241, 0x0, 0xffffffffffffffff, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/proc_stat.go:179 +0x85
github.com/prometheus/client_golang/prometheus.(*processCollector).processCollect(0xc00007c9b0, 0xc00020c120)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector_other.go:44 +0xe78
github.com/prometheus/client_golang/prometheus.(*processCollector).Collect(0xc00007c9b0, 0xc00020c120)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector.go:138 +0x33
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 51 [runnable]:
runtime.Gosched(...)
/usr/local/go/src/runtime/proc.go:292
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc00007c960, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:540 +0xe5e
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f155da7f0a8, 0xc00021c0f0, 0xc000242000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc0001cb8f0, 0x7f155da7f0a8, 0xc00021c0f0, 0xc000242000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f155da7f0a8, 0xc00021c0f0, 0xc000242000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0001c9830, 0x7f155da7f0a8, 0xc00021c0f0, 0xc000242000)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc000252000, 0xc000242000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0001c99b0, 0xab7900, 0xc000252000, 0xc000242000)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc000252000, 0xc000242000)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0001ee000, 0xab7900, 0xc000252000, 0xc000242000)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc000226000, 0xab8818, 0xc000232000)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 52 [IO wait]:
internal/poll.runtime_pollWait(0x7f155dac2e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000220018, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000220000, 0xc0002220d1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000220000, 0xc0002220d1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc000224000, 0xc0002220d1, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc0002220c0)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 53 [runnable]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:442
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:457 +0x5ce
goroutine 54 [runnable]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc000230040, 0xc00020c120, 0xc00020c180)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 55 [select]:
net/http.(*Transport).getConn(0xc0001c0b40, 0xc000232180, 0x0, 0x7ffe0b5f7ef8, 0x4, 0xc000230050, 0xc, 0x0, 0x0, 0x0, ...)
/usr/local/go/src/net/http/transport.go:1368 +0x589
net/http.(*Transport).roundTrip(0xc0001c0b40, 0xc000242100, 0x30, 0x9db900, 0xd)
/usr/local/go/src/net/http/transport.go:579 +0x7eb
net/http.(*Transport).RoundTrip(0xc0001c0b40, 0xc000242100, 0xc0001c0b40, 0x0, 0x0)
/usr/local/go/src/net/http/roundtrip.go:17 +0x35
net/http.send(0xc000242100, 0xaaf4e0, 0xc0001c0b40, 0x0, 0x0, 0x0, 0xc000224010, 0x203000, 0x1, 0x0)
/usr/local/go/src/net/http/client.go:251 +0x454
net/http.(*Client).send(0xc0001c93b0, 0xc000242100, 0x0, 0x0, 0x0, 0xc000224010, 0x0, 0x1, 0xc000242100)
/usr/local/go/src/net/http/client.go:175 +0xff
net/http.(*Client).do(0xc0001c93b0, 0xc000242100, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/client.go:717 +0x45f
net/http.(*Client).Do(...)
/usr/local/go/src/net/http/client.go:585
main.(*Exporter).collect(0xc0001a8960, 0xc00020c120, 0x0, 0x0)
/app/apache_exporter.go:291 +0x177
main.(*Exporter).Collect(0xc0001a8960, 0xc00020c120)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 56 [select]:
net.(*Resolver).lookupIPAddr(0xddffe0, 0xab87a8, 0xc0000220b0, 0xa051b5, 0x3, 0xc000230050, 0x9, 0x50, 0x0, 0x0, ...)
/usr/local/go/src/net/lookup.go:299 +0x65b
net.(*Resolver).internetAddrList(0xddffe0, 0xab87a8, 0xc0000220b0, 0xa051b5, 0x3, 0xc000230050, 0xc, 0x0, 0x0, 0x0, ...)
/usr/local/go/src/net/ipsock.go:280 +0x4d4
net.(*Resolver).resolveAddrList(0xddffe0, 0xab87a8, 0xc0000220b0, 0xa055d2, 0x4, 0xa051b5, 0x3, 0xc000230050, 0xc, 0x0, ...)
/usr/local/go/src/net/dial.go:221 +0x47d
net.(*Dialer).DialContext(0xde0c60, 0xab87a8, 0xc0000220b0, 0xa051b5, 0x3, 0xc000230050, 0xc, 0x0, 0x0, 0x0, ...)
/usr/local/go/src/net/dial.go:403 +0x22b
net/http.(*Transport).dial(0xc0001c0b40, 0xab87a8, 0xc0000220b0, 0xa051b5, 0x3, 0xc000230050, 0xc, 0x0, 0x0, 0x0, ...)
/usr/local/go/src/net/http/transport.go:1171 +0x16f
net/http.(*Transport).dialConn(0xc0001c0b40, 0xab87a8, 0xc0000220b0, 0x0, 0x7ffe0b5f7ef8, 0x4, 0xc000230050, 0xc, 0x0, 0xc000238240, ...)
/usr/local/go/src/net/http/transport.go:1600 +0x1b85
net/http.(*Transport).dialConnFor(0xc0001c0b40, 0xc000262000)
/usr/local/go/src/net/http/transport.go:1442 +0xc6
created by net/http.(*Transport).queueForDial
/usr/local/go/src/net/http/transport.go:1411 +0x40f
goroutine 57 [runnable]:
sync.(*RWMutex).RUnlock(0xe0fb50)
/usr/local/go/src/sync/rwmutex.go:75 +0x50
syscall.Getenv(0xa0783c, 0x7, 0x0, 0x0, 0x9f4500)
/usr/local/go/src/syscall/env_unix.go:85 +0x19e
os.Getenv(0xa0783c, 0x7, 0x9f4580, 0xc000242100)
/usr/local/go/src/os/env.go:103 +0x4d
net.goDebugString(0xa0709d, 0x6, 0x0, 0x0)
/usr/local/go/src/net/parse.go:364 +0x3a
net.goDebugNetDNS(0x0, 0x0, 0x0)
/usr/local/go/src/net/conf.go:289 +0x4b
net.initConfVal()
/usr/local/go/src/net/conf.go:47 +0x37
sync.(*Once).doSlow(0xe0f850, 0xa31f38)
/usr/local/go/src/sync/once.go:68 +0xec
sync.(*Once).Do(...)
/usr/local/go/src/sync/once.go:59
net.systemConf(...)
/usr/local/go/src/net/conf.go:42
net.(*Resolver).lookupIP(0xddffe0, 0xab8770, 0xc0002321c0, 0xa051b5, 0x3, 0xc000230050, 0x9, 0x2, 0x80cddb, 0x0, ...)
/usr/local/go/src/net/lookup_unix.go:94 +0x158
net.glob..func1(0xab8770, 0xc0002321c0, 0xc00021a060, 0xa051b5, 0x3, 0xc000230050, 0x9, 0xc0000220b0, 0x0, 0x7ffe0b5f7ef8, ...)
/usr/local/go/src/net/hook.go:23 +0x72
net.(*Resolver).lookupIPAddr.func1(0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/net/lookup.go:293 +0xba
internal/singleflight.(*Group).doCall(0xddfff0, 0xc00021c140, 0xc000230060, 0xd, 0xc000232200)
/usr/local/go/src/internal/singleflight/singleflight.go:95 +0x2e
created by internal/singleflight.(*Group).DoChan
/usr/local/go/src/internal/singleflight/singleflight.go:88 +0x2cc
goroutine 35 [runnable]:
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect.func1(0xc0000a8000, 0xc0002e8000, 0xc0002ee000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:285
created by github.com/prometheus/client_golang/prometheus.(*goCollector).Collect
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:285 +0xa9
[ OK ]
level=info ts=2022-08-15T08:09:53.295Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-15T08:09:53.296Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-15T08:09:53.296Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-15T08:09:53.296Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-15T08:09:53.296Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-15T08:09:53.297Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc000300000)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc000300000)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000036000, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc0001e5f01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7ff24a47cf18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0000b0118, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc0000b0100, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc0000b0100, 0xf2d2a0e9fdf49201, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00009f368, 0x62f9ff6f, 0xc00015fb48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00009f368, 0xc00015fb98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc000294000, 0xab76f0, 0xc00009f368, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00009f368, 0xc000294000, 0x0, 0x0, 0xaaf020, 0xc00007cc80, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc000294000, 0x0, 0x0, 0xaaf020, 0xc00007cc80, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 34 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 24 [chan receive]:
main.main.func1(0xaaf020, 0xc00007cc80)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 28 [runnable]:
runtime.Gosched(...)
/usr/local/go/src/runtime/proc.go:292
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc00007c960, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:540 +0xe5e
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7ff24a4bdab8, 0xc0000bc780, 0xc0000cc100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc0000a3e30, 0x7ff24a4bdab8, 0xc0000bc780, 0xc0000cc100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7ff24a4bdab8, 0xc0000bc780, 0xc0000cc100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc0000ab5c0, 0x7ff24a4bdab8, 0xc0000bc780, 0xc0000cc100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0002940e0, 0xc0000cc100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0000ab740, 0xab7900, 0xc0002940e0, 0xc0000cc100)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0002940e0, 0xc0000cc100)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc000294000, 0xab7900, 0xc0002940e0, 0xc0000cc100)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0000d6aa0, 0xab8818, 0xc0000d0440)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 29 [runnable]:
net/http.(*connReader).backgroundRead(0xc0000ab9e0)
/usr/local/go/src/net/http/server.go:671
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 30 [runnable]:
fmt.indexRune(0xa04e5e, 0x2, 0xc000000032, 0x32)
/usr/local/go/src/fmt/scan.go:468 +0xad
fmt.(*ss).consume(0xc00007b380, 0xa04e5e, 0x2, 0x1, 0xc0001eac90)
/usr/local/go/src/fmt/scan.go:484 +0x5c
fmt.(*ss).accept(...)
/usr/local/go/src/fmt/scan.go:516
fmt.(*ss).floatToken(0xc00007b380, 0x66, 0xa08cbd)
/usr/local/go/src/fmt/scan.go:705 +0x51
fmt.(*ss).scanOne(0xc00007b380, 0x66, 0x92c700, 0xc0001ac610)
/usr/local/go/src/fmt/scan.go:1009 +0xed0
fmt.(*ss).doScanf(0xc00007b380, 0xa172b2, 0x20, 0xc0001eafc0, 0xb, 0xb, 0x5, 0x0, 0x0)
/usr/local/go/src/fmt/scan.go:1230 +0x2a5
fmt.Fscanf(0xaaefe0, 0xc0001f4070, 0xa172b2, 0x20, 0xc0001eafc0, 0xb, 0xb, 0xc0001970ef, 0x96a, 0xf11)
/usr/local/go/src/fmt/scan.go:143 +0xd9
fmt.Sscanf(...)
/usr/local/go/src/fmt/scan.go:114
github.com/prometheus/procfs.parseCPUStat(0xc0001ac550, 0x4c, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/stat.go:89 +0x228
github.com/prometheus/procfs.FS.Stat(0xa05a30, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/stat.go:224 +0x4a6
github.com/prometheus/procfs.ProcStat.StartTime(0x287cd, 0xc0000233e0, 0xf, 0xd9c178, 0x1, 0x1, 0x287cc, 0x287cc, 0x0, 0xffffffffffffffff, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/proc_stat.go:179 +0x85
github.com/prometheus/client_golang/prometheus.(*processCollector).processCollect(0xc00007c9b0, 0xc0000bac00)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector_other.go:44 +0xe78
github.com/prometheus/client_golang/prometheus.(*processCollector).Collect(0xc00007c9b0, 0xc0000bac00)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector.go:138 +0x33
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:457 +0x5ce
goroutine 31 [runnable]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc0000ce280, 0xc0000bac00, 0xc0000bac60)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 32 [runnable]:
syscall.Getenv(0xa0783c, 0x7, 0x0, 0x0, 0x0)
/usr/local/go/src/syscall/env_unix.go:83 +0xbb
os.Getenv(0xa0783c, 0x7, 0x40de10, 0x7ff2711465b8)
/usr/local/go/src/os/env.go:103 +0x4d
net/http.(*Transport).onceSetNextProtoDefaults(0xc0000e6280)
/usr/local/go/src/net/http/transport.go:362 +0x5f
sync.(*Once).doSlow(0xc0000e6390, 0xc000100660)
/usr/local/go/src/sync/once.go:68 +0xec
sync.(*Once).Do(...)
/usr/local/go/src/sync/once.go:59
net/http.(*Transport).roundTrip(0xc0000e6280, 0xc0000cc200, 0x30, 0x9db900, 0xd)
/usr/local/go/src/net/http/transport.go:503 +0x111c
net/http.(*Transport).RoundTrip(0xc0000e6280, 0xc0000cc200, 0xc0000e6280, 0x0, 0x0)
/usr/local/go/src/net/http/roundtrip.go:17 +0x35
net/http.send(0xc0000cc200, 0xaaf4e0, 0xc0000e6280, 0x0, 0x0, 0x0, 0xc0000a8168, 0x203000, 0x1, 0x0)
/usr/local/go/src/net/http/client.go:251 +0x454
net/http.(*Client).send(0xc0000ab140, 0xc0000cc200, 0x0, 0x0, 0x0, 0xc0000a8168, 0x0, 0x1, 0xc0000cc200)
/usr/local/go/src/net/http/client.go:175 +0xff
net/http.(*Client).do(0xc0000ab140, 0xc0000cc200, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/client.go:717 +0x45f
net/http.(*Client).Do(...)
/usr/local/go/src/net/http/client.go:585
main.(*Exporter).collect(0xc0000e8690, 0xc0000bac00, 0x0, 0x9691c0)
/app/apache_exporter.go:291 +0x177
main.(*Exporter).Collect(0xc0000e8690, 0xc0000bac00)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 35 [runnable]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:442
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
[ OK ]
level=info ts=2022-08-15T11:09:50.898Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-15T11:09:50.901Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-15T11:09:50.901Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-15T11:09:50.901Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-15T11:09:50.901Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-15T11:09:50.901Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc00005d800)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc00005d800)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000036000, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc00008ad80)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f4d8ab15f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000108518, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc000108500, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc000108500, 0xa2e9b345f2b2ed01, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc0000b6cc0, 0x62fa299f, 0xc000113b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc0000b6cc0, 0xc000113b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc000300000, 0xab76f0, 0xc0000b6cc0, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc0000b6cc0, 0xc000300000, 0x0, 0x0, 0xaaf020, 0xc000240410, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc000300000, 0x0, 0x0, 0xaaf020, 0xc000240410, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 26 [runnable]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc0000d0910, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:412 +0xab
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f4d8ab2b4b8, 0xc0002405a0, 0xc00016a500)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc000174310, 0x7f4d8ab2b4b8, 0xc0002405a0, 0xc00016a500)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f4d8ab2b4b8, 0xc0002405a0, 0xc00016a500)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc000172840, 0x7f4d8ab2b4b8, 0xc0002405a0, 0xc00016a500)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0003002a0, 0xc00016a500)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc0001729c0, 0xab7900, 0xc0003002a0, 0xc00016a500)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0003002a0, 0xc00016a500)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc000300000, 0xab7900, 0xc0003002a0, 0xc00016a500)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc000166aa0, 0xab8818, 0xc0000c9440)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 22 [chan receive]:
main.main.func1(0xaaf020, 0xc000240410)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 8 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 9 [IO wait]:
internal/poll.runtime_pollWait(0x7f4d8ab15e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc000108598, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc000108580, 0xc000172c71, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc000108580, 0xc000172c71, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0000c42b8, 0xc000172c71, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc000172c60)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
[ OK ]
level=info ts=2022-08-15T14:09:54.463Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-15T14:09:54.466Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-15T14:09:54.466Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-15T14:09:54.466Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-15T14:09:54.466Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-15T14:09:54.467Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc00005d800)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc00005d800)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000036000, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc00002a001)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.park_m(0xc00029a300)
/usr/local/go/src/runtime/proc.go:3318 +0x9d
runtime.mcall(0x0)
/usr/local/go/src/runtime/asm_amd64.s:327 +0x5b
goroutine 1 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0x7fabce977f18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0002a0098, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc0002a0080, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc0002a0080, 0x5f13a62b070dd501, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc0002868a0, 0x62fa53cf, 0xc0000e7b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc0002868a0, 0xc0000e7b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0002c8000, 0xab76f0, 0xc0002868a0, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc0002868a0, 0xc0002c8000, 0x0, 0x0, 0xaaf020, 0xc00020a370, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0002c8000, 0x0, 0x0, 0xaaf020, 0xc00020a370, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 18 [syscall, 1 minutes]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 51 [chan receive, 1 minutes]:
main.main.func1(0xaaf020, 0xc00020a370)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 55 [runnable]:
compress/flate.(*compressor).deflate(0xc0005c4000)
/usr/local/go/src/compress/flate/deflate.go:477 +0x13f
compress/flate.(*compressor).write(0xc0005c4000, 0xc00023e000, 0x99, 0x1000, 0x1000, 0x3c149f52, 0x0)
/usr/local/go/src/compress/flate/deflate.go:554 +0x85
compress/flate.(*Writer).Write(...)
/usr/local/go/src/compress/flate/deflate.go:712
compress/gzip.(*Writer).Write(0xc000232160, 0xc00023e000, 0x99, 0x1000, 0xc0002ed610, 0xc0002ed610, 0x4356b0)
/usr/local/go/src/compress/gzip/gzip.go:196 +0xc5
bufio.(*Writer).Flush(0xc000296640, 0xc0002ed6d0, 0xc0002ed620)
/usr/local/go/src/bufio/bufio.go:607 +0x7b
github.com/prometheus/common/expfmt.MetricFamilyToText.func1(0xc000296640, 0xc0002ed7c8)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:85 +0x2f
github.com/prometheus/common/expfmt.MetricFamilyToText(0xaaede0, 0xc000232160, 0xc00029e050, 0x99, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/text_create.go:269 +0x122a
github.com/prometheus/common/expfmt.NewEncoder.func7(0xc00029e050, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:144 +0x3d
github.com/prometheus/common/expfmt.encoderCloser.Encode(...)
/go/pkg/mod/github.com/prometheus/common@v0.29.0/expfmt/encode.go:50
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7fabce8f73b8, 0xc00020a050, 0xc0002f8100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:195 +0x469
net/http.HandlerFunc.ServeHTTP(0xc000282a10, 0x7fabce8f73b8, 0xc00020a050, 0xc0002f8100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7fabce8f73b8, 0xc00020a050, 0xc0002f8100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc00028e9f0, 0x7fabce8f73b8, 0xc00020a050, 0xc0002f8100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0002c81c0, 0xc0002f8100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc00028eb70, 0xab7900, 0xc0002c81c0, 0xc0002f8100)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0002c81c0, 0xc0002f8100)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0002c8000, 0xab7900, 0xc0002c81c0, 0xc0002f8100)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc0002da000, 0xab8818, 0xc0002962c0)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 20 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0x7fabce977e30, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0002a0118, 0x72, 0x0, 0x1, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0002a0100, 0xc00028ee21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0002a0100, 0xc00028ee21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc0002900a8, 0xc00028ee21, 0x1, 0x1, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*connReader).backgroundRead(0xc00028ee10)
/usr/local/go/src/net/http/server.go:672 +0x58
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 27 [IO wait, 1 minutes]:
internal/poll.runtime_pollWait(0x7fabce977d48, 0x72, 0xffffffffffffffff)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc0001a8198, 0x72, 0x1000, 0x1000, 0xffffffffffffffff)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Read(0xc0001a8180, 0xc0000ff000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:166 +0x1d5
net.(*netFD).Read(0xc0001a8180, 0xc0000ff000, 0x1000, 0x1000, 0x439c3c, 0xc00008cc38, 0x465300)
/usr/local/go/src/net/fd_posix.go:55 +0x4f
net.(*conn).Read(0xc000290098, 0xc0000ff000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
/usr/local/go/src/net/net.go:183 +0x91
net/http.(*persistConn).Read(0xc000258000, 0xc0000ff000, 0x1000, 0x1000, 0xc000252420, 0xc00008cd40, 0x405755)
/usr/local/go/src/net/http/transport.go:1922 +0x77
bufio.(*Reader).fill(0xc0002002a0)
/usr/local/go/src/bufio/bufio.go:101 +0x108
bufio.(*Reader).Peek(0xc0002002a0, 0x1, 0x0, 0x1, 0x4, 0x1, 0x3)
/usr/local/go/src/bufio/bufio.go:139 +0x4f
net/http.(*persistConn).readLoop(0xc000258000)
/usr/local/go/src/net/http/transport.go:2083 +0x1a8
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1743 +0xc77
goroutine 28 [select, 1 minutes]:
net/http.(*persistConn).writeLoop(0xc000258000)
/usr/local/go/src/net/http/transport.go:2382 +0xf7
created by net/http.(*Transport).dialConn
/usr/local/go/src/net/http/transport.go:1744 +0xc9c
[ OK ]
level=info ts=2022-08-15T17:09:58.515Z caller=apache_exporter.go:606 msg="Starting apache_exporter" version="(version=0.11.0, branch=HEAD, revision=f4fd9dd7e9672fda120a3085f224431550baf2a7)"
level=info ts=2022-08-15T17:09:58.516Z caller=apache_exporter.go:607 msg="Build context" build="(go=go1.16.10, user=root@59af51684ea1, date=20211205-05:28:44)"
level=info ts=2022-08-15T17:09:58.516Z caller=apache_exporter.go:608 msg="Starting Server: " listen_address=:9117
level=info ts=2022-08-15T17:09:58.516Z caller=apache_exporter.go:609 msg="Collect from: " scrape_uri=http://localhost/whm-server-status/?auto
level=info ts=2022-08-15T17:09:58.517Z caller=apache_exporter.go:613 msg="listening and wait for graceful stop"
level=info ts=2022-08-15T17:09:58.517Z caller=tls_config.go:195 msg="TLS is disabled." http2=false
runtime: failed to create new OS thread (have 10 already; errno=11)
runtime: may need to increase max user processes (ulimit -u)
fatal error: newosproc
runtime stack:
runtime.throw(0xa09b49, 0x9)
/usr/local/go/src/runtime/panic.go:1117 +0x72
runtime.newosproc(0xc00027a400)
/usr/local/go/src/runtime/os_linux.go:160 +0x1be
runtime.newm1(0xc00027a400)
/usr/local/go/src/runtime/proc.go:2144 +0xdd
runtime.newm(0xa325a0, 0xc000036000, 0x9)
/usr/local/go/src/runtime/proc.go:2123 +0xa6
runtime.startm(0x0, 0xc000069f01)
/usr/local/go/src/runtime/proc.go:2378 +0xe5
runtime.wakep()
/usr/local/go/src/runtime/proc.go:2477 +0x66
runtime.resetspinning()
/usr/local/go/src/runtime/proc.go:3020 +0x59
runtime.schedule()
/usr/local/go/src/runtime/proc.go:3176 +0x2b9
runtime.mstart1()
/usr/local/go/src/runtime/proc.go:1313 +0x93
runtime.mstart()
/usr/local/go/src/runtime/proc.go:1272 +0x6e
goroutine 1 [IO wait]:
internal/poll.runtime_pollWait(0x7f1ca6f2cf18, 0x72, 0x0)
/usr/local/go/src/runtime/netpoll.go:227 +0x55
internal/poll.(*pollDesc).wait(0xc00002a118, 0x72, 0x0, 0x0, 0xa07b6f)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:87 +0x45
internal/poll.(*pollDesc).waitRead(...)
/usr/local/go/src/internal/poll/fd_poll_runtime.go:92
internal/poll.(*FD).Accept(0xc00002a100, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)
/usr/local/go/src/internal/poll/fd_unix.go:401 +0x212
net.(*netFD).accept(0xc00002a100, 0x9c8e49e882a52f01, 0x0, 0x0)
/usr/local/go/src/net/fd_unix.go:172 +0x45
net.(*TCPListener).accept(0xc00000cb28, 0x62fa7dff, 0xc000189b48, 0x4cf3e6)
/usr/local/go/src/net/tcpsock_posix.go:139 +0x32
net.(*TCPListener).Accept(0xc00000cb28, 0xc000189b98, 0x18, 0xc000000180, 0x6b21fb)
/usr/local/go/src/net/tcpsock.go:261 +0x65
net/http.(*Server).Serve(0xc0002ce000, 0xab76f0, 0xc00000cb28, 0x0, 0x0)
/usr/local/go/src/net/http/server.go:2961 +0x285
github.com/prometheus/exporter-toolkit/web.Serve(0xab76f0, 0xc00000cb28, 0xc0002ce000, 0x0, 0x0, 0xaaf020, 0xc000220320, 0x0, 0xd8)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:196 +0x1b0
github.com/prometheus/exporter-toolkit/web.ListenAndServe(0xc0002ce000, 0x0, 0x0, 0xaaf020, 0xc000220320, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/exporter-toolkit@v0.7.0/web/tls_config.go:188 +0x105
main.main()
/app/apache_exporter.go:635 +0xc8a
goroutine 7 [syscall]:
os/signal.signal_recv(0x0)
/usr/local/go/src/runtime/sigqueue.go:168 +0xa5
os/signal.loop()
/usr/local/go/src/os/signal/signal_unix.go:23 +0x25
created by os/signal.Notify.func1.1
/usr/local/go/src/os/signal/signal.go:151 +0x45
goroutine 10 [chan receive]:
main.main.func1(0xaaf020, 0xc000220320)
/app/apache_exporter.go:614 +0x15b
created by main.main
/app/apache_exporter.go:612 +0xb9a
goroutine 14 [runnable]:
runtime.Gosched(...)
/usr/local/go/src/runtime/proc.go:292
github.com/prometheus/client_golang/prometheus.(*Registry).Gather(0xc000110960, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:540 +0xe5e
github.com/prometheus/client_golang/prometheus/promhttp.HandlerFor.func1(0x7f1ca6ee9ab8, 0xc0002a6690, 0xc00028c100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/http.go:126 +0x99
net/http.HandlerFunc.ServeHTTP(0xc0002a31f0, 0x7f1ca6ee9ab8, 0xc0002a6690, 0xc00028c100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerInFlight.func1(0x7f1ca6ee9ab8, 0xc0002a6690, 0xc00028c100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:40 +0xab
net/http.HandlerFunc.ServeHTTP(0xc00028f590, 0x7f1ca6ee9ab8, 0xc0002a6690, 0xc00028c100)
/usr/local/go/src/net/http/server.go:2049 +0x44
github.com/prometheus/client_golang/prometheus/promhttp.InstrumentHandlerCounter.func1(0xab7900, 0xc0002ce0e0, 0xc00028c100)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/promhttp/instrument_server.go:101 +0xdf
net/http.HandlerFunc.ServeHTTP(0xc00028f710, 0xab7900, 0xc0002ce0e0, 0xc00028c100)
/usr/local/go/src/net/http/server.go:2049 +0x44
net/http.(*ServeMux).ServeHTTP(0xde0aa0, 0xab7900, 0xc0002ce0e0, 0xc00028c100)
/usr/local/go/src/net/http/server.go:2428 +0x1ad
net/http.serverHandler.ServeHTTP(0xc0002ce000, 0xab7900, 0xc0002ce0e0, 0xc00028c100)
/usr/local/go/src/net/http/server.go:2867 +0xa3
net/http.(*conn).serve(0xc000020b40, 0xab8818, 0xc000290440)
/usr/local/go/src/net/http/server.go:1932 +0x8cd
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2993 +0x39b
goroutine 15 [runnable]:
net/http.(*connReader).backgroundRead(0xc00028f9b0)
/usr/local/go/src/net/http/server.go:671
created by net/http.(*connReader).startBackgroundRead
/usr/local/go/src/net/http/server.go:668 +0xd5
goroutine 16 [runnable]:
io.(*LimitedReader).Read(0xc000380000, 0xc000400200, 0x200, 0x200, 0x201, 0xc000400000, 0x200)
/usr/local/go/src/io/io.go:466 +0xc9
io.ReadAll(0xaaf2e0, 0xc000380000, 0x0, 0x0, 0xc000320000, 0x0, 0x0)
/usr/local/go/src/io/io.go:633 +0xdf
io/ioutil.ReadAll(...)
/usr/local/go/src/io/ioutil/ioutil.go:27
github.com/prometheus/procfs/internal/util.ReadFileNoStat(0xc000136e10, 0xa, 0x0, 0x0, 0x0, 0x0, 0x0)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/internal/util/readfile.go:37 +0xfd
github.com/prometheus/procfs.FS.Stat(0xa05a30, 0x5, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/stat.go:169 +0x18d
github.com/prometheus/procfs.ProcStat.StartTime(0x7182b, 0xc000136da0, 0xf, 0xd9c178, 0x1, 0x1, 0x7182a, 0x7182a, 0x0, 0xffffffffffffffff, ...)
/go/pkg/mod/github.com/prometheus/procfs@v0.6.0/proc_stat.go:179 +0x85
github.com/prometheus/client_golang/prometheus.(*processCollector).processCollect(0xc0001109b0, 0xc00007aa80)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector_other.go:44 +0xe78
github.com/prometheus/client_golang/prometheus.(*processCollector).Collect(0xc0001109b0, 0xc00007aa80)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/process_collector.go:138 +0x33
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:457 +0x5ce
goroutine 49 [runnable]:
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func2(0xc0000222d0, 0xc00007aa80, 0xc00007aae0)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:462 +0x60d
goroutine 50 [runnable]:
syscall.Getenv(0xa0783c, 0x7, 0x0, 0x0, 0x0)
/usr/local/go/src/syscall/env_unix.go:83 +0xbb
os.Getenv(0xa0783c, 0x7, 0x40de10, 0x7f1ccdbf6108)
/usr/local/go/src/os/env.go:103 +0x4d
net/http.(*Transport).onceSetNextProtoDefaults(0xc0002a8280)
/usr/local/go/src/net/http/transport.go:362 +0x5f
sync.(*Once).doSlow(0xc0002a8390, 0xc000114660)
/usr/local/go/src/sync/once.go:68 +0xec
sync.(*Once).Do(...)
/usr/local/go/src/sync/once.go:59
net/http.(*Transport).roundTrip(0xc0002a8280, 0xc00028c200, 0x30, 0x9db900, 0xd)
/usr/local/go/src/net/http/transport.go:503 +0x111c
net/http.(*Transport).RoundTrip(0xc0002a8280, 0xc00028c200, 0xc0002a8280, 0x0, 0x0)
/usr/local/go/src/net/http/roundtrip.go:17 +0x35
net/http.send(0xc00028c200, 0xaaf4e0, 0xc0002a8280, 0x0, 0x0, 0x0, 0xc00000e170, 0x203000, 0x1, 0x0)
/usr/local/go/src/net/http/client.go:251 +0x454
net/http.(*Client).send(0xc00028f110, 0xc00028c200, 0x0, 0x0, 0x0, 0xc00000e170, 0x0, 0x1, 0xc00028c200)
/usr/local/go/src/net/http/client.go:175 +0xff
net/http.(*Client).do(0xc00028f110, 0xc00028c200, 0x0, 0x0, 0x0)
/usr/local/go/src/net/http/client.go:717 +0x45f
net/http.(*Client).Do(...)
/usr/local/go/src/net/http/client.go:585
main.(*Exporter).collect(0xc0002aa690, 0xc00007aa80, 0x0, 0x0)
/app/apache_exporter.go:291 +0x177
main.(*Exporter).Collect(0xc0002aa690, 0xc00007aa80)
/app/apache_exporter.go:578 +0x9a
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 65 [runnable]:
runtime/debug.readGCStats(0xc000094258)
/usr/local/go/src/runtime/mstats.go:556 +0x58
runtime/debug.ReadGCStats(0xc000094230)
/usr/local/go/src/runtime/debug/garbage.go:48 +0x52
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect(0xc000214000, 0xc00007aa80)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:300 +0x29f
github.com/prometheus/client_golang/prometheus.(*Registry).Gather.func1()
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:446 +0x12b
created by github.com/prometheus/client_golang/prometheus.(*Registry).Gather
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/registry.go:538 +0xe4d
goroutine 66 [runnable]:
github.com/prometheus/client_golang/prometheus.(*goCollector).Collect.func1(0xc000214000, 0xc0000ac000, 0xc0000b2000)
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:285
created by github.com/prometheus/client_golang/prometheus.(*goCollector).Collect
/go/pkg/mod/github.com/prometheus/client_golang@v1.11.0/prometheus/go_collector.go:285 +0xa9