FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory

gauthierbuttezHOBBY

a year ago

I am using flowise with railway. I use pinecode to store data.

I want to upload text files and my website pages. I am using the Text Node and Puppeter web crawler Node.

I faced a first issue :

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory

So after investigation, I changed the chank size to 1000 and the bug was fixed for a text file. Then I added puppeteer web scrapper. I used the sitemap method, I get the urls in puppeteer web scraper. and the issue came back. Again a problem of memory limit.

So I tried with another web scraper node and the same issue.

I have 30 text files that represent 30 books. It is about 50 Mo in total.

I have some screenshots to see my configuration if necessary. I don't know what I am doing wrong. I am a newbie in Flowise and Pinecone.

here is railway logs :

2024-07-08 11:52:17 [INFO]: ⬆ POST /api/v1/vector/internal-upsert/ceee0b68-64a4-4f7b-b684-445d5ffb3c19

Jul 08 13:54:11

Jul 08 13:54:11

<--- Last few GCs --->

Jul 08 13:54:11

Jul 08 13:54:11

[36:0x7fa3236226c0] 483060 ms: Mark-Compact 245.4 (258.7) -> 244.7 (258.7) MB, 210.03 / 0.00 ms (average mu = 0.597, current mu = 0.017) allocation failure; scavenge might not succeed

Jul 08 13:54:11

[36:0x7fa3236226c0] 483211 ms: Mark-Compact 245.7 (258.7) -> 245.0 (259.2) MB, 147.53 / 0.00 ms (average mu = 0.435, current mu = 0.025) allocation failure; scavenge might not succeed

Jul 08 13:54:11

Jul 08 13:54:11

Jul 08 13:54:11

<--- JS stacktrace --->

Jul 08 13:54:11

Jul 08 13:54:11

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory

Jul 08 13:54:11

----- Native stack trace -----

Jul 08 13:54:11

Jul 08 13:54:31

container event container died

Can you help me to find a solution, please?

Solved

2 Replies

a year ago

you more than likely have tried to exceed the trial plans resource limits, please try again after upgrading to the hobby plan


gauthierbuttezHOBBY

a year ago

ok. Thanks. I'll do that.


gauthierbuttezHOBBY

a year ago

I get same issue when upsert

1259905993890857200


gauthierbuttezHOBBY

a year ago

1259906032226795500


a year ago

have you since redeployed the service?


gauthierbuttezHOBBY

a year ago

oups. No


gauthierbuttezHOBBY

a year ago

sorry


gauthierbuttezHOBBY

a year ago

I previously deployed with custom : "node --max-old-space-size=4096 packages/server/bin/run start ". I found this while investigating. I have aroun 50Mo of text book splitted in 30 text files + 60 urls from sitemap.Should I keep that.


gauthierbuttezHOBBY

a year ago

?


a year ago

yeah thats fine


gauthierbuttezHOBBY

a year ago

Thanks


gauthierbuttezHOBBY

a year ago

Same issue It didn't work

1259946752958795800
1259946753420034000


gauthierbuttezHOBBY

a year ago

1259946853479481300


a year ago

then you would need to take this up with the template creator


gauthierbuttezHOBBY

a year ago

What do you mean?


a year ago

what was left unclear?


gauthierbuttezHOBBY

a year ago

Who is and what is a template creator? You mean the flowise setup of my flow? It works with text file. Not web scraper.


a year ago

you used a template to deploy flowise, if there is something wrong with the template, you need to take that up with the creator


gauthierbuttezHOBBY

a year ago

Thank you for your help.


agustinblandinoHOBBY

2 months ago

y?


agustinblandino

y?

2 months ago

This thread is old, please open a new one if you're having issues.


Status changed to Solved adam about 2 months ago