Closed edamame8888 closed 3 weeks ago
The memory being maxed out at 100% is the cause.
Before the improvement, the memory performance in Cloud Watch Insight was maxed out and the content retrieval never finished. After the improvement, memory performance improved and we confirmed that the embedding was completed in a short period of time.
https://github.com/aws-samples/bedrock-claude-chat/issues/341#issuecomment-2151090410
Thank you for the investigation with clear evidence! LGTM, thank you for your contribution!! @edamame8888
Merged v1 by #346
*Issue #341
Description of changes:
This pull request enhances the resource management of our URL loading function by ensuring that Playwright pages are closed after processing each URL. It incorporates a page.close() statement within the URL processing loop and closes the browser with browser.close() at the end of the session. These changes prevent resource leaks and improve performance during bulk URL operations.
Changes: