Using Neo4j embedded in Java applications Error!!

88 views
Skip to first unread message

Shouer.Shen

unread,
Mar 30, 2012, 5:37:13 AM3/30/12
to Neo4j
Hi
I created a empty project and import the spring`s jar and config the
web.xml, run it , no error !
then I import the jar files in $NEO4J_HOME/lib , run it error , the
log as follow :

Message: Starting Servlet Engine: Apache Tomcat/7.0.22
java.lang.OutOfMemoryError: PermGen space
Exception in thread "main" java.lang.OutOfMemoryError: PermGen space
at java.lang.Throwable.getStackTraceElement(Native Method)
at java.lang.Throwable.getOurStackTrace(Throwable.java:591)
at java.lang.Throwable.printStackTrace(Throwable.java:462)
at java.lang.Throwable.printStackTrace(Throwable.java:451)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:469)

When I delete the jar I imported from $NEO4J_HOME/lib , run Ok !

I used the spring 3.2, neo4j 1.7M2 in eclipse!

why?

Shouer.Shen

unread,
Mar 30, 2012, 5:40:28 AM3/30/12
to Neo4j
and in eclipse.ini :

-startup
plugins/org.eclipse.equinox.launcher_1.2.0.v20110502.jar
--launcher.library
plugins/
org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.100.v20110502
-product
org.eclipse.epp.package.jee.product
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
1024M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
1024m
--launcher.defaultAction
openFile
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms40m
-Xmx1024m
-XX:PermSize=1024M
-XX:MaxPermSize=1024M




Shen

Peter Neubauer

unread,
Mar 30, 2012, 5:57:08 AM3/30/12
to ne...@googlegroups.com
Are you doing a heavy operation at that time?

Cheers,

/peter neubauer

G:  neubauer.peter
S:  peter.neubauer
P:  +46 704 106975
L:   http://www.linkedin.com/in/neubauer
T:   @peterneubauer

Neo4j                                - Graphs rule.
Program or be programmed - Computer Literacy for kids.
http://foocafe.org/#CoderDojo

Shouer.Shen

unread,
Mar 30, 2012, 8:17:05 AM3/30/12
to Neo4j
How to do a heavy operation ?



On 3月30日, 下午5时57分, Peter Neubauer <peter.neuba...@neotechnology.com>
wrote:
> Are you doing a heavy operation at that time?
>
> Cheers,
>
> /peter neubauer
>
> G:  neubauer.peter
> S:  peter.neubauer
> P:  +46 704 106975
> L:   http://www.linkedin.com/in/neubauer
> T:   @peterneubauer
>
> Neo4j                                - Graphs rule.
> Program or be programmed - Computer Literacy for kids.http://foocafe.org/#CoderDojo

Peter Neubauer

unread,
Mar 30, 2012, 9:33:54 AM3/30/12
to ne...@googlegroups.com

I am just asking if you are doing any queries or updates on the database when this occurs. Or is it during startup?

Shouer.Shen

unread,
Mar 30, 2012, 10:03:05 PM3/30/12
to Neo4j
Oh !!!

it during startup

I know how to do it well

thanks !

In eclipse , just set window--》preference--》jdk--》installed jres--》
edit--》default VM Arguments

-Xms128M -Xmx512M -XX:PermSize=64M -XX:MaxPermSize=128M

in eclipse.ini set :

org.eclipse.epp.package.jee.product
--launcher.XXMaxPermSize
128M-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize
128m-vmargs


On 3月30日, 下午9时33分, Peter Neubauer <neubauer.pe...@gmail.com> wrote:
> I am just asking if you are doing any queries or updates on the database
> when this occurs. Or is it during startup?

Peter Neubauer

unread,
Mar 31, 2012, 2:41:15 AM3/31/12
to ne...@googlegroups.com
Ahh nice :)
--
Reply all
Reply to author
Forward
0 new messages