cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

async javaScript function return Connection timeout error and dbms.memory.transaction max memory

Hi legends ,

I am working on a contact-based recommendation application using Javascripts. While I am inserting user contacts into an async foreach loop, it frequently shows

1. The allocation of an extra 2.0 MiB would use more than the limit 250.0 MiB. Currently using 250.0 MiB. dbms.memory.transaction.total.max threshold reached

2. Connection acquisition timed out in 60000 ms. Pool status: Active conn count = 100, Idle conn count = 0.

Note : iam using the free version of neo4j Aura DB . and I am adding some screen shots as well.

js code :

selectUserData.data.forEach(async elements => {

     var session = neo4jConn.session({database:"neo4j"});

     var result = await session.executeWrite(tx =>

     tx.run(`

               MATCH (person:Person {userId: $userId})

               MERGE (number:Number {mobile: $mobile,countryCode:$countryCode,contactName:$contactName})

               MERGE (person)-[:saved]->(number)`, // query

               {

                     userId:userId.toString(),

                     mobile:elements.mobile.toString(),

                     countryCode:elements.countryCode.toString(),

                     contactName:elements.contactName.toString()

              }

     )

);

await session.close();

});

 

Thankyou ❤️.

0 REPLIES 0