GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Import Database Neo4j - OutOfMemoryError · Issue #3768 · ArcadeData/arcadedb

Import Database Neo4j - OutOfMemoryError #3768

New issue
Copy link
New issue
Copy link
Closed
Bug
Closed
Import Database Neo4j - OutOfMemoryError#3768
Bug
Copy link
Assignees
lvca
Labels
waiting for user
Milestone
26.4.2

Description

@RobertoSannino
RobertoSannino
opened on Apr 2, 2026
Issue body actions

Version: 26.3.2 and 26.4.1-SNAPSHOT
Environment: Docker

While trying to import a big dataset (200+GB) exported from Neo4j using CALL apoc.export.json.all("all_20260211.json",{useTypes:true});
I incur in OutOfMemory errors even using commitEvery = 5, it seems like it tries to load all the json lines for a specific Vertex type all in once, without properly batching them.

The command I am executing from the command line is the following:
{test}> IMPORT DATABASE file:///home/arcadedb/data/import/test_all_20260401.json with commitEvery = 500, forceDatabaseCreate = true, wal = false;

Here the output:

...
Parsed 0 (0/sec 0%) 0 records (0/sec) 0 vertices (0/sec) 0 edges (0/sec 0 skipped) 0 linked edges (0/sec 0%) updated documents 0 (0%)
Parsed 0 (0/sec 0%) 0 records (0/sec) 0 vertices (0/sec) 0 edges (0/sec 0 skipped) 0 linked edges (0/sec 0%) updated documents 0 (0%)
Parsed 0 (0/sec 0%) 0 records (0/sec) 0 vertices (0/sec) 0 edges (0/sec 0 skipped) 0 linked edges (0/sec 0%) updated documents 0 (0%)
java.lang.OutOfMemoryError: Java heap space
Dumping heap to java_pid409.hprof ...
Heap dump file created [34501946522 bytes in 53.464 secs]

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "Timer-2"

Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "ArcadeDB TransactionManager test"
Parsed 0 (0/sec 0%) 0 records (0/sec) 0 vertices (0/sec) 0 edges (0/sec 0 skipped) 0 linked edges (0/sec 0%) updated documents 0 (0%)

ERROR:
com.arcadedb.exception.CommandExecutionException: Error on importing database
	at com.arcadedb.query.sql.parser.ImportDatabaseStatement.executeSimple(ImportDatabaseStatement.java:77)
	at com.arcadedb.query.sql.executor.SingleOpExecutionPlan.executeInternal(SingleOpExecutionPlan.java:92)
	at com.arcadedb.query.sql.parser.SimpleExecStatement.execute(SimpleExecStatement.java:72)
	at com.arcadedb.query.sql.parser.Statement.execute(Statement.java:73)
	at com.arcadedb.query.sql.SQLQueryEngine.command(SQLQueryEngine.java:113)
	at com.arcadedb.query.QueryEngine.command(QueryEngine.java:90)
	at com.arcadedb.database.LocalDatabase.command(LocalDatabase.java:1492)
	at com.arcadedb.console.Console.executeSQL(Console.java:632)
	at com.arcadedb.console.Console.execute(Console.java:293)
	at com.arcadedb.console.Console.parse(Console.java:787)
	at com.arcadedb.console.Console.interactiveMode(Console.java:149)
	at com.arcadedb.console.Console.execute(Console.java:206)
	at com.arcadedb.console.Console.main(Console.java:166)
Caused by: java.lang.OutOfMemoryError: Java heap space

Activity

  1. robfrank commented on Apr 2, 2026

    @robfrank
    robfrank
    on Apr 2, 2026
    Collaborator
    More actions

    which memory settings are you using to run the arcadeDB container?

  2. RobertoSannino commented on Apr 2, 2026

    @RobertoSannino
    RobertoSannino
    on Apr 2, 2026
    Author
    More actions
      arcadedb:
        container_name: arcadedb
        image: arcadedata/arcadedb:26.3.2
        environment:
          ARCADEDB_OPTS_MEMORY: -Xms1G -Xmx32G
          JAVA_OPTS: >
            -Xms800M -Xmx32G
            ...
    
  3. lvca
    self-assigned this
    on Apr 2, 2026
  4. lvca commented on Apr 2, 2026

    @lvca
    lvca
    on Apr 2, 2026
    Member
    More actions

    I think it's time to push on main the nee optimized Neo4j importer that uses the same underlying architecture of the GraphImporter: https://arcadedb.com/blog/graphbatch-up-to-8x-faster-graph-ingestion/. Working on merging it

  5. lvca
    added this to the 26.4.1 milestone on Apr 2, 2026
  6. lvca
    added the
    Bug
    issue type on Apr 2, 2026
  7. lvca commented on Apr 2, 2026

    @lvca
    lvca
    on Apr 2, 2026
    Member
    More actions

    It has been merged on main, please @RobertoSannino give it a try after built a new distro from main source (mvn -T 1C clean install -DskipTests -> 26.4.1-SNAPSHOT). Same API, same way, but the new version leverages the new GraphBatch API to be much faster with less RAM used

  8. lvca
    added
    waiting for user
    on Apr 2, 2026
  9. lvca commented on Apr 2, 2026

    @lvca
    lvca
    on Apr 2, 2026
    Member
    More actions

    @RobertoSannino also, if your neo4j database has numeric ids (always exported as string, but by default it's a number unless you use your own ids) the new importer uses >80% less RAM -> #3770

  10. RobertoSannino commented on Apr 3, 2026

    @RobertoSannino
    RobertoSannino
    on Apr 3, 2026
    Author
    More actions

    Thank you! I will give it a try asap

  11. lvca commented on Apr 23, 2026

    @lvca
    lvca
    on Apr 23, 2026
    Member
    More actions

    Closing for now because of no response. In case the issue persists, please comment this issue.

  12. lvca
    closed this as completedon Apr 23, 2026
  13. tae898
    added a commit that references this issue on Jun 28, 2026

    chore(deps-dev): bump org.mockito:mockito-core from 5.20.0 to 5.21.0 …

    e2d3f51
  14. mergify
    added a commit that references this issue on Aug 18, 2026

    chore(deps): bump the go-modules group across 1 directory with 3 upda…

    4e0e573
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @lvca
    lvca

Labels

waiting for user

Type

Bug

Projects

No projects

    Milestone

    • 26.4.2

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.