Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory #3770

Open
JaegerMaster opened this issue Jan 1, 2025 · 2 comments
Labels
bug Something isn't working

Comments

@JaegerMaster
Copy link

What happened?

Audiobookshelf installation crashes due to out of memory limitations

What did you expect to happen?

NA

Steps to reproduce the issue

  1. Run the scanner for library consisting of approx 75K audiobooks

Audiobookshelf version

v2.17.6

How are you running audiobookshelf?

Docker

What OS is your Audiobookshelf server hosted from?

Linux

If the issue is being seen in the UI, what browsers are you seeing the problem on?

Firefox

Logs

<--- Last few GCs --->

[7:0x7f78a1485660]  6308217 ms: Scavenge 4041.5 (4123.3) -> 4041.1 (4134.0) MB, 9.92 / 0.00 ms  (average mu = 0.590, current mu = 0.207) allocation failure; 
[7:0x7f78a1485660]  6308266 ms: Scavenge 4047.8 (4134.0) -> 4047.1 (4134.8) MB, 9.46 / 0.00 ms  (average mu = 0.590, current mu = 0.207) allocation failure; 
[7:0x7f78a1485660]  6308291 ms: Scavenge 4048.8 (4134.8) -> 4047.7 (4155.8) MB, 15.33 / 0.00 ms  (average mu = 0.590, current mu = 0.207) allocation failure; 


<--- JS stacktrace --->

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

Additional Notes

No response

@JaegerMaster JaegerMaster added the bug Something isn't working label Jan 1, 2025
@nichwall
Copy link
Contributor

nichwall commented Jan 1, 2025

Does the library only have audiobooks? So not ebook files? How many files are in the library? Do you have any logs from before the crash?

You can increase the amount of memory for the node process using the steps here: #3338 (comment)

@JaegerMaster
Copy link
Author

Hi, @nichwall Thanks

There are only audiobooks in the library approx 70K.

There were nothing else in the logs other than what I posted.

I increased the memory size to 8GB and is working properly at present.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants