I will post some code, but its only 1 jsp that is doing this. There is
no heavy logic or state being maintained. It seems the mongo driver
originates the exception well before the OOM. Also, as I mentioned, I
can no longer reach mongo when this happens, even from mongo shell.
Mongo dies.
Here is my JSP pseudo-code, simply.
Mongo mongo = new Mongo();
DB db = mongo.getDB('testdb');
DBCollection items = db.getCollection('items');
for i = 0; i< items.length; i++ {
BasicDBObject dbobject = new BasicDBObject();
dbobj.put("key","value");
....
....
items.insert(dbobj);
}
Ack, perhaps I need a close or commit or something?
On May 6, 11:31 am, Scott Hernandez <
scotthernan...@gmail.com> wrote:
> It seems like this is completely a client-side (java) issue. Can you
> please use jconsole/jvisualvm or a profiler to see where the memory is
> going. The odds are very good this has nothing to do with mongo per se
> and is just related to your java code.
>
>
http://java.sun.com/developer/technicalArticles/J2SE/jconsole.htmlhttp://visualvm.java.net/