CuteHttpFileServer
CuteHttpFileServer copied to clipboard
内存溢出,16G内存,使用率36%,启动约5分钟,直接报错网站停止运行
website:http://192.168.1.35/ webdav :http://192.168.1.35/webdav runtime: out of memory: cannot allocate 1183981568-byte block (8224768 in use) fatal error: out of memory runtime stack: runtime.throw(0x902ae2, 0xd) c:/go/src/runtime/panic.go:774 +0x64 runtime.largeAlloc(0x46921800, 0x890101, 0x321b1fc8) c:/go/src/runtime/malloc.go:1140 +0x108 runtime.mallocgc.func1() c:/go/src/runtime/malloc.go:1033 +0x39 runtime.systemstack(0x0) c:/go/src/runtime/asm_386.s:399 +0x53 runtime.mstart() c:/go/src/runtime/proc.go:1146 goroutine 23 [running]: runtime.systemstack_switch() c:/go/src/runtime/asm_386.s:360 fp=0x1183b89c sp=0x1183b898 pc=0x44fd60 runtime.mallocgc(0x46921800, 0x878420, 0x1, 0x433290) c:/go/src/runtime/malloc.go:1032 +0x684 fp=0x1183b8f0 sp=0x1183b89c pc=0x40a454 runtime.makeslice(0x878420, 0x46921800, 0x46921800, 0x5310) c:/go/src/runtime/slice.go:49 +0x4f fp=0x1183b904 sp=0x1183b8f0 pc=0x43c85f image.NewYCbCr(0x0, 0x0, 0x4880, 0x5310, 0x0, 0x756834c0) c:/go/src/image/ycbcr.go:174 +0x89 fp=0x1183b950 sp=0x1183b904 pc=0x5d3279 image/jpeg.(*decoder).makeImg(0x11c94000, 0x910, 0xa62) c:/go/src/image/jpeg/scan.go:40 +0x224 fp=0x1183b9c4 sp=0x1183b950 pc=0x5e05a4 image/jpeg.(*decoder).processSOS(0x11c94000, 0xa, 0x2, 0x80) c:/go/src/image/jpeg/scan.go:150 +0xf71 fp=0x1183bba4 sp=0x1183b9c4 pc=0x5e1701 image/jpeg.(*decoder).decode(0x11c94000, 0x9b4850, 0x11918030, 0x408100, 0x88c0c0, 0x8e86c0, 0x924b00, 0x9b4850) c:/go/src/image/jpeg/reader.go:630 +0x29c fp=0x1183bbc8 sp=0x1183bba4 pc=0x5df2cc image/jpeg.Decode(0x9b4850, 0x11918030, 0x11918030, 0x9b4850, 0x11918030, 0x2) c:/go/src/image/jpeg/reader.go:779 +0x44 fp=0x1183bbec sp=0x1183bbc8 pc=0x5e00f4 image.Decode(0x9b5630, 0x11807b50, 0x11807b50, 0x9b5630, 0x11807b50, 0x0, 0x0, 0x457cf3) c:/go/src/image/format.go:93 +0xb1 fp=0x1183bc68 sp=0x1183bbec pc=0x5cdbb1 github.com/disintegration/imaging.Decode(...) D:/projects/private/chfs/src/github.com/disintegration/imaging/helpers.go:89 github.com/disintegration/imaging.Open(0x11aadb20, 0x63, 0x0, 0x0, 0x0, 0x0) D:/projects/private/chfs/src/github.com/disintegration/imaging/helpers.go:100 +0xd4 fp=0x1183bcbc sp=0x1183bc68 pc=0x5fa424 chfs/preview/imagepreview.GetPreviewImage(0x11aadb20, 0x63, 0x40, 0x40) D:/projects/private/chfs/src/chfs/preview/imagepreview/image.go:41 +0x2d fp=0x1183bcf4 sp=0x1183bcbc pc=0x5ffb5d chfs/preview.generate.func1(0x11aadb20, 0x63, 0x9bd5e0, 0x11abcea0, 0x0, 0x0, 0x457cf3, 0xd3ade0) D:/projects/private/chfs/src/chfs/preview/preview.go:62 +0x109 fp=0x1183bd34 sp=0x1183bcf4 pc=0x756789 path/filepath.walk(0x11aadb20, 0x63, 0x9bd5e0, 0x11abcea0, 0x924650, 0x0, 0x0) c:/go/src/path/filepath/path.go:358 +0x2dd fp=0x1183bd98 sp=0x1183bd34 pc=0x5bf96d path/filepath.walk(0x11bf21e0, 0x58, 0x9bd5e0, 0x11abccc0, 0x924650, 0x0, 0x0) c:/go/src/path/filepath/path.go:382 +0x1f9 fp=0x1183bdfc sp=0x1183bd98 pc=0x5bf889 path/filepath.walk(0x11864320, 0x4b, 0x9bd5e0, 0x11a8d8c0, 0x924650, 0x0, 0x0) c:/go/src/path/filepath/path.go:382 +0x1f9 fp=0x1183be60 sp=0x1183bdfc pc=0x5bf889 path/filepath.walk(0x11a217c0, 0x32, 0x9bd5e0, 0x11a8cd20, 0x924650, 0x0, 0x0) c:/go/src/path/filepath/path.go:382 +0x1f9 fp=0x1183bec4 sp=0x1183be60 pc=0x5bf889 path/filepath.walk(0x1185f3e0, 0x1c, 0x9bd5e0, 0x11879b00, 0x924650, 0x0, 0x0) c:/go/src/path/filepath/path.go:382 +0x1f9 fp=0x1183bf28 sp=0x1183bec4 pc=0x5bf889 path/filepath.walk(0x11860680, 0xd, 0x9bd5e0, 0x11878cc0, 0x924650, 0x0, 0x0) c:/go/src/path/filepath/path.go:382 +0x1f9 fp=0x1183bf8c sp=0x1183bf28 pc=0x5bf889 path/filepath.Walk(0x11860680, 0xd, 0x924650, 0x0, 0x0) c:/go/src/path/filepath/path.go:404 +0xdd fp=0x1183bfb8 sp=0x1183bf8c pc=0x5bfa6d chfs/preview.generate(0x11860680, 0xd) D:/projects/private/chfs/src/chfs/preview/preview.go:58 +0x33 fp=0x1183bfd0 sp=0x1183bfb8 pc=0x756673 chfs/preview.PreviewGeneratorDeamon(0x11856600, 0x2, 0x2) D:/projects/private/chfs/src/chfs/preview/preview.go:23 +0x33 fp=0x1183bfe0 sp=0x1183bfd0 pc=0x756333 runtime.goexit() c:/go/src/runtime/asm_386.s:1325 +0x1 fp=0x1183bfe4 sp=0x1183bfe0 pc=0x451671 created by main.main D:/projects/private/chfs/src/chfs/main.go:124 +0x13f0 goroutine 1 [IO wait, 2 minutes]: internal/poll.runtime_pollWait(0x117b90e8, 0x72, 0x9b6530) c:/go/src/runtime/netpoll.go:184 +0x4b internal/poll.(*pollDesc).wait(0x1196c0fc, 0x72, 0xc98600, 0x0, 0x0) c:/go/src/internal/poll/fd_poll_runtime.go:87 +0x37 internal/poll.(*ioSrv).ExecIO(0xd3a214, 0x1196c014, 0x11804100, 0x17, 0x1, 0x0) c:/go/src/internal/poll/fd_windows.go:228 +0xef internal/poll.(*FD).acceptOne(0x1196c000, 0x20c, 0x119580f0, 0x2, 0x2, 0x1196c014, 0x4, 0x46, 0x0, 0x0) c:/go/src/internal/poll/fd_windows.go:896 +0x82 internal/poll.(*FD).Accept(0x1196c000, 0x11c53dc8, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...) c:/go/src/internal/poll/fd_windows.go:930 +0x12e net.(*netFD).accept(0x1196c000, 0x2c, 0x11836540, 0x1200008) c:/go/src/net/fd_windows.go:193 +0x66 net.(*TCPListener).accept(0x118040e0, 0x11806200, 0x40a69c, 0x20) c:/go/src/net/tcpsock_posix.go:139 +0x27 net.(*TCPListener).Accept(0x118040e0, 0x8c9d20, 0x1181e7a0, 0x8879e0, 0xd314d8) c:/go/src/net/tcpsock.go:261 +0x3c net/http.(*Server).Serve(0x119481b0, 0x9ba330, 0x118040e0, 0x0, 0x0) c:/go/src/net/http/server.go:2896 +0x22f main.main() D:/projects/private/chfs/src/chfs/main.go:189 +0xf58 goroutine 19 [sync.Cond.Wait, 2 minutes]: runtime.goparkunlock(...) c:/go/src/runtime/proc.go:310 sync.runtime_notifyListWait(0x118bc8e8, 0x0) c:/go/src/runtime/sema.go:510 +0x121 sync.(*Cond).Wait(0x118bc8e0) c:/go/src/sync/cond.go:56 +0x66 github.com/cihub/seelog.(*asyncLoopLogger).processItem(0x1185aa20, 0x0) D:/projects/private/chfs/src/github.com/cihub/seelog/behavior_asynclooplogger.go:50 +0x74 github.com/cihub/seelog.(*asyncLoopLogger).processQueue(0x1185aa20) D:/projects/private/chfs/src/github.com/cihub/seelog/behavior_asynclooplogger.go:63 +0x38 created by github.com/cihub/seelog.NewAsyncLoopLogger D:/projects/private/chfs/src/github.com/cihub/seelog/behavior_asynclooplogger.go:40 +0x72 goroutine 20 [sync.Cond.Wait, 2 minutes]: runtime.goparkunlock(...) c:/go/src/runtime/proc.go:310 sync.runtime_notifyListWait(0x118bca88, 0x0) c:/go/src/runtime/sema.go:510 +0x121 sync.(*Cond).Wait(0x118bca80) c:/go/src/sync/cond.go:56 +0x66 github.com/cihub/seelog.(*asyncLoopLogger).processItem(0x1185aae0, 0x0) D:/projects/private/chfs/src/github.com/cihub/seelog/behavior_asynclooplogger.go:50 +0x74 github.com/cihub/seelog.(*asyncLoopLogger).processQueue(0x1185aae0) D:/projects/private/chfs/src/github.com/cihub/seelog/behavior_asynclooplogger.go:63 +0x38 created by github.com/cihub/seelog.NewAsyncLoopLogger D:/projects/private/chfs/src/github.com/cihub/seelog/behavior_asynclooplogger.go:40 +0x72 goroutine 21 [sync.Cond.Wait, 2 minutes]: runtime.goparkunlock(...) c:/go/src/runtime/proc.go:310 sync.runtime_notifyListWait(0x118e29c8, 0x0) c:/go/src/runtime/sema.go:510 +0x121 sync.(*Cond).Wait(0x118e29c0) c:/go/src/sync/cond.go:56 +0x66 github.com/cihub/seelog.(*asyncLoopLogger).processItem(0x1185b860, 0x0) D:/projects/private/chfs/src/github.com/cihub/seelog/behavior_asynclooplogger.go:50 +0x74 github.com/cihub/seelog.(*asyncLoopLogger).processQueue(0x1185b860) D:/projects/private/chfs/src/github.com/cihub/seelog/behavior_asynclooplogger.go:63 +0x38 created by github.com/cihub/seelog.NewAsyncLoopLogger D:/projects/private/chfs/src/github.com/cihub/seelog/behavior_asynclooplogger.go:40 +0x72 goroutine 22 [sleep, 2 minutes]: runtime.goparkunlock(...) c:/go/src/runtime/proc.go:310 time.Sleep(0x85c50000, 0x1a31) c:/go/src/runtime/time.go:105 +0x159 main.main.func1() D:/projects/private/chfs/src/chfs/main.go:118 +0x2b created by main.main D:/projects/private/chfs/src/chfs/main.go:114 +0x888