Solved đź™Ź CRASH: pthread_create failed (EAGAIN) 🙏

Rentex

New member
Feb 18, 2022
5
0
1
So currently I'm running an Paper 1.17.1 OVH Rise 1 proxy server with servers: proxy, hub, skyblock for now.

Specs:
Ryzen 5 3950x 12c24t(not sure about threads)
32 GB DDR4 2666MHz
300GB SSD Raid

Time to time, SkyBlock server know to crash with reason: >....[170.468s][warning][os,thread] Failed to start thread - pthread_create failed (EAGAIN) for attributes: stacksize: 1024k, guardsize: 0k, detached and server's CPU drops from 130% to 0.35% and it got non-responsible to any command except kill and players lose their progress last 5mins.
And sometimes it can't log it to an file.

My friend know that stuff about docker, panels, linux etc, and he set setting for thread limit over 1million (or higher) but there is still crash.
I'm having 50 plugins and using Aikar's GC parameters.

If you need additional information, reply or DM me on Discord: Rentex#9024
If someone has or know how to fix this issue, please respond 🙏
 
Timings
https://timings.aikar.co/?id=a6c3f76dd99446f792e38a9e6051f892
Version Output
[23:37:13 INFO]: Checking version, please wait...
[23:37:13 INFO]: This server is running Paper version git-Paper-408 (MC: 1.17.1) (Implementing API version 1.17.1-R0.1-SNAPSHOT) (Git: cc43ba7 on ver/1.17.1)
You are running the latest version
Previous version: git-Paper-399 (MC: 1.17.1)

electronicboy

Administrator
Staff member
Dec 11, 2021
225
10
38
28
CPU usage dropping to 0.x% sounds like ptero? if so, the limit is configured in wings but that generally screams that you're running out of memory, reduce Xmx by a gig or so, leave the containers memory limit alone
 

Rentex

New member
Feb 18, 2022
5
0
1
CPU usage dropping to 0.x% sounds like ptero? if so, the limit is configured in wings but that generally screams that you're running out of memory, reduce Xmx by a gig or so, leave the containers memory limit alone
What do you mean by "containers memory"? In ptero's "Build Configuration?".
I'll reduce Xmx by gig, currently is -Xmx14G and -Xmx14G
 

Rentex

New member
Feb 18, 2022
5
0
1
I set -Xms14G -Xmx13G but server won't start it said:
Initial heap size set to a larger value than the maximum heap size
Error occurred during initialization of VM


And after that i set params: -Xms13G -Xmx14G and server started. Have you myb made mistake in typing I wonder?