eshujiushiwo / mongo-mload Goto Github PK
View Code? Open in Web Editor NEWBenchmark for MongoDB
License: Apache License 2.0
Benchmark for MongoDB
License: Apache License 2.0
run:
go run mload.go --host 127.0.0.1 --userName mongobench --passWord xxx --db mongobench --collection data_test --datanum 100000 --procnum 8 --cpunum 8 --jsonfile ./test_data.json --operation insert
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x562c9b]
goroutine 30 [running]:
gopkg.in/mgo%2ev2.(*Session).acquireSocket(0x0, 0x0, 0x0, 0x0, 0x0)
/usr/lib/golang/src/gopkg.in/mgo.v2/session.go:4408 +0x5b
gopkg.in/mgo%2ev2.(*Collection).writeOp(0xc4200f4360, 0x58fa20, 0xc4200f4390, 0x412301, 0x0, 0x0, 0x0)
/usr/lib/golang/src/gopkg.in/mgo.v2/session.go:4603 +0xa3
gopkg.in/mgo%2ev2.(*Collection).Insert(0xc4200f4360, 0xc4200ea5c0, 0x1, 0x1, 0x0, 0x0)
/usr/lib/golang/src/gopkg.in/mgo.v2/session.go:2437 +0xac
main.(*Mongobench).InsertData(0xc4200b00a0, 0x5ddd54, 0x3, 0xc420116420)
/opt/soft/mongo-mload-master/src/mload.go:131 +0x274
created by main.main
/opt/soft/mongo-mload-master/src/mload.go:295 +0x1eb9
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x562c9b]
goroutine 25 [running]:
gopkg.in/mgo%2ev2.(*Session).acquireSocket(0x0, 0x0, 0x0, 0x0, 0x0)
/usr/lib/golang/src/gopkg.in/mgo.v2/session.go:4408 +0x5b
gopkg.in/mgo%2ev2.(*Collection).writeOp(0xc4200f4360, 0x58fa20, 0xc4201a4000, 0x412301, 0x0, 0x0, 0x0)
/usr/lib/golang/src/gopkg.in/mgo.v2/session.go:4603 +0xa3
gopkg.in/mgo%2ev2.(*Collection).Insert(0xc4200f4360, 0xc4201a2000, 0x1, 0x1, 0x0, 0x0)
/usr/lib/golang/src/gopkg.in/mgo.v2/session.go:2437 +0xac
main.(*Mongobench).InsertData(0xc4200b00a0, 0x5ddd54, 0x3, 0xc420116240)
/opt/soft/mongo-mload-master/src/mload.go:131 +0x274
created by main.main
/opt/soft/mongo-mload-master/src/mload.go:295 +0x1eb9
exit status 2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.