qiujiawei
unread,Dec 8, 2010, 1:25:19 AM12/8/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mongodb-user
maybe it cause since two day ago.
Two days ago,we create about 10K unuseful collections in the db.
then ,I write an java to del most of then.
but now,when I use the mongo and use "show collections",i find may
collections with the same name appears.
And ,command "getIndexes() or getStatus()" can't use;
I goto /data/db find that there is 14 ns file,and 11 of then is
2GB.Should I set bigger --nssize ?
now ,I have 300+ collections,some of then is contain most 40W
records,and some only contain 300 records.
If I combine this all collections to one,would the db be faster?
now,each query would cost near 2000ms to get return with the index.
my analytics programe get an Exception while connecting to db
com.mongodb.MongoException$Network: can't say something
at com.mongodb.DBTCPConnector.say(DBTCPConnector.java:165)
at com.mongodb.DBApiLayer$MyCollection.update(DBApiLayer.java:
289)
at com.mongodb.DBCollection.update(DBCollection.java:112)
at
com.xingyun.analytics.lib.MyMongodb.HdfsIntoColl(MyMongodb.java:208)
at com.xingyun.analytics.MainRun.main(MainRun.java:64)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:
58)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
plz help