Tatham,
I also looked at your messages, log. You're starving the JVM :)
Fri Aug 12 14:39:45 EST 2011: Physical mem: 8123MB, Heap size: 56MB
-Xms3m, -Xmx64m
Please increate the heap size to a larger amount of memory.
I don't know what else runs on that server.
On Windows you should make the heap for Neo4j as large as possible (as memory
mapped file caches are allocated inside the heap).
So please configure it to use 4 or 6G (-Xmx6G )
you don't have to configure the minimum heap size (-Xms)
Cheers
Michael
An simplest example for using variables within your gremlin script's:
Using variables will not only save you lots of perm-gen memory but also makes
your scripts faster (as groovy doesn't have to generate new byte-code time and
again but can utilize its script caches).
URLENCODED Params:
String script="script" : "g.v(id).outE";
String params = "{ \"id\" : 100 }";
contentType = MediaType.APPLICATION_FORM_URLENCODED_TYPE;
POST "http://localhost:7474/db/data/ext/GremlinPlugin/graphdb/execute_script"+
"?script=" + URLEncoder.encode(script, "UTF-8")+"¶ms=" +
URLEncoder.encode(params, "UTF-8")
In the future it will be possible to use json for that like:
POST "http://localhost:7474/db/data/ext/GremlinPlugin/graphdb/execute_script"
{ "script" : "g.v(id).outE",
"params" : { "id" : 100 }
}
Am 12.08.2011 um 08:04 schrieb Tatham Oddie:
> messages.log extract available here:
> http://dl.dropbox.com/u/5216304/20110812-neo4j-messages.log
>
>
> -- Tatham
>
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On
> Behalf Of Tatham Oddie
> Sent: Friday, 12 August 2011 3:57 PM
> To: Neo4j user discussions ([email protected])
> Subject: [Neo4j] java.lang.OutOfMemoryError: PermGen space
>
> Howdy,
>
> We've started experiencing reasonably consistent java.lang.OutOfMemoryError
> exceptions.
>
> We're using neo4j-community-1.4.M04-windows.zip, running on Windows 7 x64 for
> development + Windows Azure for production.
>
> Graph access is exclusively via REST. We perform basic CRUD operations and
> Gremlin queries.
>
> The server spins up like so:
>
> 12/08/11 2:39:43 PM org.neo4j.server.NeoServerWithEmbeddedWebServer INFO:
> Starting Neo Server on port [5102] with [80] threads available
> 12/08/11 2:39:43 PM org.neo4j.server.database.Database INFO: Using
> database at C:\AzureTemp\neo4j-db
> 12/08/11 2:39:47 PM org.neo4j.server.modules.DiscoveryModule INFO: Mounted
> discovery module at [/]
> 12/08/11 2:39:48 PM org.neo4j.server.plugins.PluginManager INFO: Loaded
> server plugin "CypherPlugin"
> 12/08/11 2:39:48 PM org.neo4j.server.plugins.PluginManager INFO: Loaded
> server plugin "GremlinPlugin"
> 12/08/11 2:39:48 PM org.neo4j.server.modules.RESTApiModule INFO: Mounted
> REST API at [/db/data/]
> 12/08/11 2:39:48 PM org.neo4j.server.modules.ManagementApiModule INFO:
> Mounted management API at [/db/manage/]
> 12/08/11 2:39:48 PM org.neo4j.server.modules.WebAdminModule INFO: Mounted
> webadmin at [/webadmin]
> 12/08/11 2:39:48 PM org.neo4j.server.web.Jetty6WebServer INFO: Mounting
> static content at [/webadmin] from [webadmin-html]
> 12/08/11 2:39:50 PM org.neo4j.server.NeoServerWithEmbeddedWebServer INFO:
> Server started on [http://192.168.10.151:5102/]
>
> Then, after a relatively small number of queries (sub 500? still confirming
> more details), we get this:
>
> Exception in thread "RMI RenewClean-[192.168.10.151:31174]"
> java.lang.OutOfMemoryError: PermGen space
> Exception in thread "Statistics Gatherer" java.lang.OutOfMemoryError:
> PermGen space
>
> Java.exe is still running, and consuming around 180MB of RAM (with another
> 3GB of physical memory still available on the system). REST API returns 500s
> and the WebAdmin is unavailable.
>
> My questions:
>
> 1) Is this just that we've got a configuration setting wrong? In my very
> limited knowledge of Java, I know we can reconfigure the size, but this seems
> to indicate a potentially larger issue.
>
> 2) What should I do to gather more information to help diagnose this?
>
>
> --
> Tatham Oddie
> au mob: +61 414 275 989, us cell: +1 415 598 8201, skype: tathamoddie If
> you're printing this email, you're doing it wrong. This is a computer, not a
> typewriter.
>
> _______________________________________________
> Neo4j mailing list
> [email protected]
> https://lists.neo4j.org/mailman/listinfo/user
> _______________________________________________
> Neo4j mailing list
> [email protected]
> https://lists.neo4j.org/mailman/listinfo/user
_______________________________________________
Neo4j mailing list
[email protected]
https://lists.neo4j.org/mailman/listinfo/user