Load large xml (3G) with apoc.load.xml

i'm tryin to load large xml (3G) with apoc.load.xml but I have this error

Neo.ClientError.Procedure.ProcedureCallFailed
Failed to invoke procedure apoc.load.xml: Caused by: java.lang.OutOfMemoryError: Java heap space

i made my memory config like this

dbms.memory.heap.initial_size=4G
dbms.memory.heap.max_size=4G
dbms.memory.pagecache.size=4G

But the error is still here (by the way, i have 8G memory in my lapotop)

Anybody have an idea to resolve it