Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Out of memory error #17

Open
magaton opened this issue Jun 23, 2015 · 7 comments
Open

Out of memory error #17

magaton opened this issue Jun 23, 2015 · 7 comments

Comments

@magaton
Copy link

magaton commented Jun 23, 2015

I cannot run neogen with default config neogen.yml on my macbook pro OSX 10.10
php --version
PHP 5.5.20 (cli) (built: Feb 25 2015 23:30:53)
Copyright (c) 1997-2014 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2014 Zend Technologies

I've set memory_limit in /etc/php.ini to be 2048M

localhost:~/neogen generate
Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 72 bytes) in /neogen/vendor/doctrine/collections/lib/Doctrine/Common/Collections/ArrayCollection.php on line 279

@ikwattro
Copy link
Member

How many nodes and relationships do you want to generate ?

@magaton
Copy link
Author

magaton commented Jun 23, 2015

it's default config with neogen.yml from this repository

@ikwattro
Copy link
Member

I'm looking on it, I removed the Collection class and moved to plain arrays.

While I did not have your memory issue, plain arrays are performing much faster

@magaton
Copy link
Author

magaton commented Jun 25, 2015

Thanks, but I dont see that change pushed.
I am quite confused how this app is supposed to work.
OOM problem seems to be gone when I increased my memory limit to 4G, but ...
localhost:/neogen$ bin/neogen generate --export="/Users/agaton/myfile.cql"
3725.0767729282
localhost:
/neogen$ cat /Users/agaton/myfile.cql
cat: /Users/agaton/myfile.cql: No such file or directory

simply it doesnt create a file. The similar thing happens when I call:
localhost:~/neogen$ bin/neogen generate

Although my neo4j server is up and running on 127.0.0.1:7474 nothing happens, graph.db is not updated.
Also, if I have neo4j server stopped, no error is fired.

Any hint?
Thanks!

@magaton
Copy link
Author

magaton commented Jul 16, 2015

Hi, any news on this maybe?
Thanks

@humpedli
Copy link

The same error here:

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 72 bytes) in /Users/hump/Documents/Work/neogen/vendor/doctrine/collections/lib/Doctrine/Common/Collections/ArrayCollection.php on line 279

OSX 10.10.3

Is there any solution for this problem?

@ikwattro
Copy link
Member

For now I would recommend to use 0.x versions, so latest is 0.5.9 until next week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants