写了一个测试脚本,今天看服务器直接连接不上了,显示以下错误:
[2020/09/12 08:29:21.236 +00:00] [INFO] [levels.go:902] ["compact failed"] [def="1 top:[22:23](7992824), bot:[136:138](14264618), skip:0, write_amp:2.78"] [error="open /tmp/tidb/kv/0000046d.sst.idx: too many open files"]
[2020/09/12 08:29:21.236 +00:00] [INFO] [levels.go:902] ["compact failed"] [def="1 top:[37:132](9927492), bot:[194:232](4038537), skip:0, write_amp:1.41"] [error="open /tmp/tidb/kv/0000046e.sst.idx: too many open files"]
[2020/09/12 08:29:21.259 +00:00] [INFO] [levels.go:882] ["start compaction"] [level=1] [score=1.0331481620669365]
[2020/09/12 08:29:21.259 +00:00] [INFO] [levels.go:899] ["running compaction"] [def="1 top:[25:120](9927492), bot:[205:243](4038537), skip:0, write_amp:1.41"]
[2020/09/12 08:29:21.259 +00:00] [INFO] [levels.go:367] ["check range with lower level"] [overlapped=false]
[2020/09/12 08:29:21.259 +00:00] [INFO] [levels.go:902] ["compact failed"] [def="1 top:[25:120](9927492), bot:[205:243](4038537), skip:0, write_amp:1.41"] [error="open /tmp/tidb/kv/0000046f.sst: too many open files"]
[2020/09/12 08:29:21.449 +00:00] [ERROR] [server.go:311] ["accept failed"] [error="accept tcp [::]:4000: accept4: too many open files"]
[2020/09/12 08:29:21.449 +00:00] [FATAL] [terror.go:257] ["unexpected error"] [error="accept tcp [::]:4000: accept4: too many open files"] [stack="github.com/pingcap/parser/terror.MustNil\
\t/home/zhangys/go/pkg/mod/github.com/pingcap/parser@v0.0.0-20200909072241-6dac7bb703e2/terror/terror.go:257\
main.runServer\
\t/home/zhangys/database/tidb0518/tidb-server/main.go:683\
main.main\
\t/home/zhangys/database/tidb0518/tidb-server/main.go:186\
runtime.main\
\t/usr/lib/go-1.15/src/runtime/proc.go:204"] [stack="github.com/pingcap/parser/terror.MustNil\
\t/home/zhangys/go/pkg/mod/github.com/pingcap/parser@v0.0.0-20200909072241-6dac7bb703e2/terror/terror.go:257\
main.runServer\
\t/home/zhangys/database/tidb0518/tidb-server/main.go:683\
main.main\
\t/home/zhangys/database/tidb0518/tidb-server/main.go:186\
runtime.main\
\t/usr/lib/go-1.15/src/runtime/proc.go:204"]
exit status 1
版本:commit 94704d0cc49343862fc6a59e59a531d38a463a4f (HEAD -> master, origin/master, origin/HEAD)
我的测试不方便给出,跑要求的脚本错误。请问需要提供什么信息?