Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Problem with mongo 2.2.0 and java connection

Received: by 10.236.190.104 with SMTP id d68mr12546698yhn.45.1349711001048;
        Mon, 08 Oct 2012 08:43:21 -0700 (PDT)
X-BeenThere: mongodb-user@googlegroups.com
Received: by 10.236.133.84 with SMTP id p60ls8999756yhi.5.gmail; Mon, 08 Oct
 2012 08:43:11 -0700 (PDT)
Received: by 10.236.138.232 with SMTP id a68mr12774935yhj.28.1349710991114;
        Mon, 08 Oct 2012 08:43:11 -0700 (PDT)
Received: by 10.236.138.232 with SMTP id a68mr12774933yhj.28.1349710991093;
        Mon, 08 Oct 2012 08:43:11 -0700 (PDT)
Return-Path: <scg...@gmail.com>
Received: from mail-yh0-f41.google.com (mail-yh0-f41.google.com [209.85.213.41])
        by gmr-mx.google.com with ESMTPS id b7si3878326yhj.1.2012.10.08.08.43.11
        (version=TLSv1/SSLv3 cipher=OTHER);
        Mon, 08 Oct 2012 08:43:11 -0700 (PDT)
Received-SPF: pass (google.com: domain of scg...@gmail.com designates 209.85.213.41 as permitted sender) client-ip=209.85.213.41;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of scg...@gmail.com designates 209.85.213.41 as permitted sender) smtp.mail=scg...@gmail.com; dkim=pass header...@gmail.com
Received: by mail-yh0-f41.google.com with SMTP id 47so979913yhr.14
        for <mongodb-user@googlegroups.com>; Mon, 08 Oct 2012 08:43:11 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20120113;
        h=from:content-type:message-id:mime-version:subject:date:references
         :to:in-reply-to:x-mailer;
        bh=nlzL31Y95zmEJSqt50WMXh9Bz+QvlydMEyMvGR7EQgM=;
        b=Te3BYAXxyt5GdnDLZ3nftQTOmR3zKZ6hwRjujlOq0YY8r2jhodC4aH4mjjs/4k6QvG
         hTx5w+xIuJwRsBlZrsz95ycmP3b+ebafXco/nSt1x/BQy21kdPccmPtc1e6vCfseuemq
         V+rbJpjYVhVJrKR98DFvvZ/6Zsvx3UWbxkuB/Ssj1+M4FG1eTsQ0cum9GLdDm9qabwDK
         z+D9MFGm+5E2IaXW3pPfojTkwCbNopGOwxMnxT3IBTxhKZd20jekkGQshbhDMSDMxum3
         GLzVAf8SLW92v4n/NenaKheCm7jGDiOztFYR+jJc1wvnK5TrOf28lk61m+nNB/yruB2K
         FyEQ==
Received: by 10.236.9.36 with SMTP id 24mr16384273yhs.63.1349710990946;
        Mon, 08 Oct 2012 08:43:10 -0700 (PDT)
Return-Path: <scg...@gmail.com>
Received: from [192.168.98.100] (r186-52-8-247.dialup.adsl.anteldata.net.uy. [186.52.8.247])
        by mx.google.com with ESMTPS id o12sm11891679anp.8.2012.10.08.08.43.07
        (version=TLSv1/SSLv3 cipher=OTHER);
        Mon, 08 Oct 2012 08:43:09 -0700 (PDT)
From: Sebastian Gutierrez <scg...@gmail.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_56FF3049-768A-4232-83A7-CDC946D0C083"
Message-Id: <969737A1-435D-459F-9338-AD755111B...@gmail.com>
Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\))
Subject: Re: [mongodb-user] Problem with mongo 2.2.0 and java connection
Date: Mon, 8 Oct 2012 13:43:05 -0200
References: <EF18F98C-5120-4CB1-B71F-3008A8BC3...@gmail.com> <5460bcbc-5898-40d1-b09a-80467f4fde1a@googlegroups.com>
To: mongodb-user@googlegroups.com
In-Reply-To: <5460bcbc-5898-40d1-b09a-80467f4fde1a@googlegroups.com>
X-Mailer: Apple Mail (2.1499)


--Apple-Mail=_56FF3049-768A-4232-83A7-CDC946D0C083
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=windows-1252

compiling on mac, running on linux=20

java version "1.7.0_07"
Java(TM) SE Runtime Environment (build 1.7.0_07-b10)
Java HotSpot(TM) 64-Bit Server VM (build 23.3-b01, mixed mode)


same arquitecture I have with mysql, remember this is doing nothing. is =
just when starts, until my server goes down=85..

ReplicaSetStatus is not from my code..=20

any idea?


thanks!




On Oct 8, 2012, at 1:01 PM, Gianfranco <gianfra...@10gen.com> wrote:

> In what platform are you compiling this? Windows, Mac, Linux, etc?
>=20
> See this page for more info on this JVM heap issue:
> =
http://stackoverflow.com/questions/37335/how-to-deal-with-java-lang-outofm=
emoryerror-java-heap-space-error-64mb-heap
>=20
> It's not a mongodb driver or database issue.
>=20
> On Monday, October 8, 2012 3:25:29 PM UTC+1, Sebastian Gutierrez =
wrote:
> Hi,=20
>=20
>=20
> I=B4m starting to use mongo for a new project, and using the last =
2.2.0 and the last 2.9.1 java driver=20
>=20
>=20
> I=B4m getting this:=20
>=20
> Exception in thread "ReplicaSetStatus:Updater" =
java.lang.OutOfMemoryError: Java heap space=20
>         at =
org.bson.io.PoolOutputBuffer.<init>(PoolOutputBuffer.java:223)=20
>         at com.mongodb.Mongo$1.createNew(Mongo.java:624)=20
>         at com.mongodb.Mongo$1.createNew(Mongo.java:621)=20
>         at org.bson.util.SimplePool.get(SimplePool.java:44)=20
>         at com.mongodb.OutMessage.<init>(OutMessage.java:132)=20
>         at com.mongodb.OutMessage.<init>(OutMessage.java:124)=20
>         at com.mongodb.OutMessage.query(OutMessage.java:83)=20
>         at com.mongodb.OutMessage.query(OutMessage.java:79)=20
>         at com.mongodb.OutMessage.query(OutMessage.java:75)=20
>         at com.mongodb.DBPort.findOne(DBPort.java:142)=20
>         at com.mongodb.DBPort.runCommand(DBPort.java:148)=20
>         at =
com.mongodb.ConnectionStatus$UpdatableNode.update(ConnectionStatus.java:18=
4)=20
>         at =
com.mongodb.ReplicaSetStatus$UpdatableReplicaSetNode.update(ReplicaSetStat=
us.java:614)=20
>         at =
com.mongodb.ReplicaSetStatus$Updater.updateAll(ReplicaSetStatus.java:766)=20=

>         at =
com.mongodb.ReplicaSetStatus$Updater.run(ReplicaSetStatus.java:736)=20
> Exception in thread "ReplicaSetStatus:Updater" Exception in thread =
"ReplicaSetStatus:Updater" Exception in thread =
"ReplicaSetStatus:Updater" Exception in thread =
"ReplicaSetStatus:Updater" Exception in thread =
"ReplicaSetStatus:Updater" Exception in thread =
"ReplicaSetStatus:Updater" Exception in thread =
"ReplicaSetStatus:Updater" Exception=20
>=20
>=20
> there is no query at all just connected.=20
>=20
>=20
> I=B4m connected like this:=20
>=20
>    static private  Mongo M;=20
>      static private DB MDB;=20
>    =20
>=20
>      M =3D new Mongo(hosts);=20
>             M.setWriteConcern(WriteConcern.SAFE);=20
>             MDB=3D M.getDB( DataBase);=20
>            =20
>=20
> best regard.=20
>=20
>=20
>=20
> --=20
> You received this message because you are subscribed to the Google
> Groups "mongodb-user" group.
> To post to this group, send email to mongodb-user@googlegroups.com
> To unsubscribe from this group, send email to
> mongodb-user+unsubscribe@googlegroups.com
> See also the IRC channel -- freenode.net#mongodb


--Apple-Mail=_56FF3049-768A-4232-83A7-CDC946D0C083
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html;
	charset=windows-1252

<html><head><meta http-equiv=3D"Content-Type" content=3D"text/html =
charset=3Dwindows-1252"></head><body style=3D"word-wrap: break-word; =
-webkit-nbsp-mode: space; -webkit-line-break: after-white-space; =
">compiling on mac, running on linux&nbsp;<div><br></div><div><div>java =
version "1.7.0_07"</div><div>Java(TM) SE Runtime Environment (build =
1.7.0_07-b10)</div><div>Java HotSpot(TM) 64-Bit Server VM (build =
23.3-b01, mixed mode)</div></div><div><br></div><div><br></div><div>same =
arquitecture I have with mysql, remember this is doing nothing. is just =
when starts, until my server goes =
down=85..</div><div><br></div><div>ReplicaSetStatus is not from my =
code..&nbsp;</div><div><br></div><div>any =
idea?</div><div><br></div><div><br></div><div>thanks!</div><div><br><div><=
br></div><div><br></div><div><br><div><div>On Oct 8, 2012, at 1:01 PM, =
Gianfranco &lt;<a =
href=3D"mailto:gianfra...@10gen.com">gianfra...@10gen.com</a>&gt; =
wrote:</div><br class=3D"Apple-interchange-newline"><blockquote =
type=3D"cite">In what platform are you compiling this? Windows, Mac, =
Linux, etc?<div><br></div><div>See this page for more info on this JVM =
heap issue:</div><div><a =
href=3D"http://stackoverflow.com/questions/37335/how-to-deal-with-java-lan=
g-outofmemoryerror-java-heap-space-error-64mb-heap">http://stackoverflow.c=
om/questions/37335/how-to-deal-with-java-lang-outofmemoryerror-java-heap-s=
pace-error-64mb-heap</a></div><div><br></div><div>It's not a mongodb =
driver or database issue.<br><br>On Monday, October 8, 2012 3:25:29 PM =
UTC+1, Sebastian Gutierrez wrote:<blockquote class=3D"gmail_quote" =
style=3D"margin: 0;margin-left: 0.8ex;border-left: 1px #ccc =
solid;padding-left: 1ex;">Hi,=20
<br>
<br>
<br>I=B4m starting to use mongo for a new project, and using the last =
2.2.0 and the last 2.9.1 java driver
<br>
<br>
<br>I=B4m getting this:
<br>
<br>Exception in thread "ReplicaSetStatus:Updater" =
java.lang.OutOfMemoryError: Java heap space
<br>&nbsp; &nbsp; &nbsp; &nbsp; at =
org.bson.io.PoolOutputBuffer.&lt;<wbr>init&gt;(PoolOutputBuffer.java:<wbr>=
223)
<br>&nbsp; &nbsp; &nbsp; &nbsp; at =
com.mongodb.Mongo$1.createNew(<wbr>Mongo.java:624)
<br>&nbsp; &nbsp; &nbsp; &nbsp; at =
com.mongodb.Mongo$1.createNew(<wbr>Mongo.java:621)
<br>&nbsp; &nbsp; &nbsp; &nbsp; at =
org.bson.util.SimplePool.get(<wbr>SimplePool.java:44)
<br>&nbsp; &nbsp; &nbsp; &nbsp; at =
com.mongodb.OutMessage.&lt;init&gt;(<wbr>OutMessage.java:132)
<br>&nbsp; &nbsp; &nbsp; &nbsp; at =
com.mongodb.OutMessage.&lt;init&gt;(<wbr>OutMessage.java:124)
<br>&nbsp; &nbsp; &nbsp; &nbsp; at =
com.mongodb.OutMessage.query(<wbr>OutMessage.java:83)
<br>&nbsp; &nbsp; &nbsp; &nbsp; at =
com.mongodb.OutMessage.query(<wbr>OutMessage.java:79)
<br>&nbsp; &nbsp; &nbsp; &nbsp; at =
com.mongodb.OutMessage.query(<wbr>OutMessage.java:75)
<br>&nbsp; &nbsp; &nbsp; &nbsp; at =
com.mongodb.DBPort.findOne(<wbr>DBPort.java:142)
<br>&nbsp; &nbsp; &nbsp; &nbsp; at =
com.mongodb.DBPort.runCommand(<wbr>DBPort.java:148)
<br>&nbsp; &nbsp; &nbsp; &nbsp; at =
com.mongodb.ConnectionStatus$<wbr>UpdatableNode.update(<wbr>ConnectionStat=
us.java:184)
<br>&nbsp; &nbsp; &nbsp; &nbsp; at =
com.mongodb.ReplicaSetStatus$<wbr>UpdatableReplicaSetNode.<wbr>update(Repl=
icaSetStatus.java:<wbr>614)
<br>&nbsp; &nbsp; &nbsp; &nbsp; at =
com.mongodb.ReplicaSetStatus$<wbr>Updater.updateAll(<wbr>ReplicaSetStatus.=
java:766)
<br>&nbsp; &nbsp; &nbsp; &nbsp; at =
com.mongodb.ReplicaSetStatus$<wbr>Updater.run(ReplicaSetStatus.<wbr>java:7=
36)
<br>Exception in thread "ReplicaSetStatus:Updater" Exception in thread =
"ReplicaSetStatus:Updater" Exception in thread =
"ReplicaSetStatus:Updater" Exception in thread =
"ReplicaSetStatus:Updater" Exception in thread =
"ReplicaSetStatus:Updater" Exception in thread =
"ReplicaSetStatus:Updater" Exception in thread =
"ReplicaSetStatus:Updater" Exception
<br>
<br>
<br>there is no query at all just connected.
<br>
<br>
<br>I=B4m connected like this:
<br>
<br>&nbsp; &nbsp;static private &nbsp;Mongo M;
<br>&nbsp; &nbsp; &nbsp;static private DB MDB;
<br>&nbsp; &nbsp;
<br>
<br>&nbsp; &nbsp; &nbsp;M =3D new Mongo(hosts);
<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; =
M.setWriteConcern(<wbr>WriteConcern.SAFE);
<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; MDB=3D M.getDB( DataBase);
<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;=20
<br>
<br>best regard.
<br>
<br>
<br></blockquote></div><div><br class=3D"webkit-block-placeholder"></div>

-- <br>
You received this message because you are subscribed to the Google<br>
Groups "mongodb-user" group.<br>
To post to this group, send email to <a =
href=3D"mailto:mongodb-user@googlegroups.com">mongodb-u...@googlegroups.co=
m</a><br>
To unsubscribe from this group, send email to<br>
<a =
href=3D"mailto:mongodb-user+unsubscribe@googlegroups.com">mongodb-user+uns=
ubscribe@googlegroups.com</a><br>
See also the IRC channel -- <a =
href=3D"http://freenode.net">freenode.net</a>#mongodb<br>
</blockquote></div><br></div></div></body></html>=

--Apple-Mail=_56FF3049-768A-4232-83A7-CDC946D0C083--