[Neo] Neo is very slow (I think I'm being stupid)

Tim Langley timlangley at me.com
Tue Jan 12 01:21:55 CET 2010


Thank you everyone -i really appreciate all your help ;)

(*embarassed though*)
This time it was completely my fault -i'd been benchmarking on a cold  
cache - once I removed this limitation it flys

(*embarassed again*)

T

Sent from my iPhone so please excuse typos adn brevity

Tim Langley
+44 7989 539363

On 12 Jan 2010, at 00:12, Laurent Laborde <kerdezixe at gmail.com> wrote:

> On Tue, Jan 12, 2010 at 12:27 AM, Rick Bullotta
> <rick.bullotta at burningskysoftware.com> wrote:
>>> In terms of setting Java VM parameters, I know how to do it for a  
>>> Java app
>> or application server, but not for Scala. ;-)
>>
>> Anyone?
>
> scala and scalac are shell script (or batch on windows).
> On my scala version, the end of the script look like this :
>
> # Reminder: substitution ${JAVA_OPTS:=-Xmx256M -Xms16M} DO NOT work  
> on Solaris
> [ -n "$JAVA_OPTS" ] || JAVA_OPTS="-Xmx256M -Xms32M"
>
> if [ -z "$JAVACMD" -a -n "$JAVA_HOME" -a -x "$JAVA_HOME/bin/java" ];  
> then
>    JAVACMD="$JAVA_HOME/bin/java"
> fi
>
> exec "${JAVACMD:=java}" $JAVA_OPTS -cp "$TOOL_CLASSPATH"
> -Dscala.home="$SCALA_HOME" -Denv.classpath="$CLASSPATH"
> -Denv.emacs="$EMACS"  scala.tools.nsc.MainGenericRunner  "$@"
>
> you can set your $JAVA_OPTS envrionment varibalbe to something like :
> JAVA_OPTS="-Xmx1024M -Xms128M"
>
> or copy scala to something like : scala-FatBurger and edit this part :
> [ -n "$JAVA_OPTS" ] || JAVA_OPTS="-Xmx256M -Xms32M"
> to :
> [ -n "$JAVA_OPTS" ] || JAVA_OPTS="-Xmx2560M -Xms320M"
>
> Btw... i'm pretty sure you run out of ram because you have a top level
> transaction.
> I sometime have the same problem, my workaround was to buy 8GB or  
> ram :)
>
> -- 
> Laurent "ker2x" Laborde
> Sysadmin & DBA at http://www.over-blog.com/
> _______________________________________________
> Neo mailing list
> User at lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user


More information about the User mailing list