[GH-ISSUE #3930] Question RAM Usage #2659

Closed
opened 2026-10-31 20:27:03 +07:00 by bsakaguchi · 11 comments
Owner

Originally created by @lLeXeRl on GitHub (Mar 16, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3930

Question

After update to new version is start to use too much ram of x-ray service, i have a server with max 1gb ram and after update need to restart every 2-5 min
Image

Checklist

  • This question is written entirely in English.
Originally created by @lLeXeRl on GitHub (Mar 16, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3930 ### Question After update to new version is start to use too much ram of x-ray service, i have a server with max 1gb ram and after update need to restart every 2-5 min <img width="1025" height="691" alt="Image" src="https://github.com/user-attachments/assets/74fa33d4-5daf-45be-9d95-11bb12ef2ce2" /> ### Checklist - [x] This question is written entirely in English.
bsakaguchi 2026-10-31 20:27:03 +07:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@BLaDZer commented on GitHub (Mar 16, 2026):

Same here: my server with 4 GB but all of them gone instantly when I (alone) connecting with mKCP (checked only this) config

<!-- gh-comment-id:4070057884 --> @BLaDZer commented on GitHub (Mar 16, 2026): Same here: my server with 4 GB but all of them gone instantly when I (alone) connecting with mKCP (checked only this) config
Author
Owner

@lLeXeRl commented on GitHub (Mar 16, 2026):

Same here: my server with 4 GB but all of them gone instantly when I (alone) connecting with mKCP (checked only this) config

Yeah, it's problem of mKCP connection, its bad coz I need to use udp protocol(

<!-- gh-comment-id:4070142378 --> @lLeXeRl commented on GitHub (Mar 16, 2026): > Same here: my server with 4 GB but all of them gone instantly when I (alone) connecting with mKCP (checked only this) config Yeah, it's problem of mKCP connection, its bad coz I need to use udp protocol(
Author
Owner

@stxze commented on GitHub (Mar 16, 2026):

same here, tested xhttp and tcp conf, also tried downgrade to 2.8.9 with xray core 26.1.31 - same issue

<!-- gh-comment-id:4070242428 --> @stxze commented on GitHub (Mar 16, 2026): same here, tested xhttp and tcp conf, also tried downgrade to 2.8.9 with xray core 26.1.31 - same issue
Author
Owner

@lLeXeRl commented on GitHub (Mar 16, 2026):

Yeah, after update, uninstalling and downgrades didn't work

<!-- gh-comment-id:4070445293 --> @lLeXeRl commented on GitHub (Mar 16, 2026): Yeah, after update, uninstalling and downgrades didn't work
Author
Owner

@stxze commented on GitHub (Mar 17, 2026):

any updates?

<!-- gh-comment-id:4073158548 --> @stxze commented on GitHub (Mar 17, 2026): any updates?
Author
Owner

@lLeXeRl commented on GitHub (Mar 17, 2026):

any updates?

I think its problem with xray core, waiting until update

<!-- gh-comment-id:4073275083 --> @lLeXeRl commented on GitHub (Mar 17, 2026): > any updates? I think its problem with xray core, waiting until update
Author
Owner

@stxze commented on GitHub (Mar 17, 2026):

Image

As i said before, i downgraded to 2.8.9 with xray core 26.1.31 and had same issue, i have 4gb ram on my server and didnt had swap file. I tried set swap on 4gb, then i updated again to latest version. I saw ram leak like ~6 hours today and im always manualy reboot xray when i saw >2,5 gb usage, after that i deleted swap cause wanted get config "stock" like i had before first time update x-ui.
I also experimented with the reality settings and tried to set mldsa65 seed and verify like few days ago (don't know why, lol).
Now i deleted mldsa65 verify and seed and i've had 1 GB of RAM usage for 6 hours now.
Looks like something has been fixed.

<!-- gh-comment-id:4077325264 --> @stxze commented on GitHub (Mar 17, 2026): <img width="1133" height="452" alt="Image" src="https://github.com/user-attachments/assets/ec54d8a8-a84d-44cf-b4f2-5893a59afdb7" /> As i said before, i downgraded to 2.8.9 with xray core 26.1.31 and had same issue, i have 4gb ram on my server and didnt had swap file. I tried set swap on 4gb, then i updated again to latest version. I saw ram leak like ~6 hours today and im always manualy reboot xray when i saw >2,5 gb usage, after that i deleted swap cause wanted get config "stock" like i had before first time update x-ui. I also experimented with the reality settings and tried to set mldsa65 seed and verify like few days ago (don't know why, lol). Now i deleted mldsa65 verify and seed and i've had 1 GB of RAM usage for 6 hours now. Looks like something has been fixed.
Author
Owner

@lLeXeRl commented on GitHub (Mar 17, 2026):

Image As i said before, i downgraded to 2.8.9 with xray core 26.1.31 and had same issue, i have 4gb ram on my server and didnt had swap file. I tried set swap on 4gb, then i updated again to latest version. I saw ram leak like ~6 hours today and im always manualy reboot xray when i saw >2,5 gb usage, after that i deleted swap cause wanted get config "stock" like i had before first time update x-ui. I also experimented with the reality settings and tried to set mldsa65 seed and verify like few days ago (don't know why, lol). Now i deleted mldsa65 verify and seed and i've had 1 GB of RAM usage for 6 hours now. Looks like something has been fixed.

How much users you have?

<!-- gh-comment-id:4077769586 --> @lLeXeRl commented on GitHub (Mar 17, 2026): > <img alt="Image" width="1133" height="452" src="https://private-user-images.githubusercontent.com/254730198/565047321-ec54d8a8-a84d-44cf-b4f2-5893a59afdb7.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzM3NzkxMjEsIm5iZiI6MTc3Mzc3ODgyMSwicGF0aCI6Ii8yNTQ3MzAxOTgvNTY1MDQ3MzIxLWVjNTRkOGE4LWE4NGQtNDRjZi1iNGYyLTU4OTNhNTlhZmRiNy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwMzE3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDMxN1QyMDIwMjFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mNjMyZTA0NDQ2MTJjNGYyOTk5ZGU4M2ZjODkzYWMzNThkNWE4MjM1OWY0ODAyYWUyNWZjYzVlODgwNTY0NWZmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.UgDN117Enf3Uo0ybZcMB_XI4-HsNEFtZvZoHjbO-jTg"> > As i said before, i downgraded to 2.8.9 with xray core 26.1.31 and had same issue, i have 4gb ram on my server and didnt had swap file. I tried set swap on 4gb, then i updated again to latest version. I saw ram leak like ~6 hours today and im always manualy reboot xray when i saw >2,5 gb usage, after that i deleted swap cause wanted get config "stock" like i had before first time update x-ui. I also experimented with the reality settings and tried to set mldsa65 seed and verify like few days ago (don't know why, lol). Now i deleted mldsa65 verify and seed and i've had 1 GB of RAM usage for 6 hours now. Looks like something has been fixed. How much users you have?
Author
Owner

@stxze commented on GitHub (Mar 17, 2026):

Image As i said before, i downgraded to 2.8.9 with xray core 26.1.31 and had same issue, i have 4gb ram on my server and didnt had swap file. I tried set swap on 4gb, then i updated again to latest version. I saw ram leak like ~6 hours today and im always manualy reboot xray when i saw >2,5 gb usage, after that i deleted swap cause wanted get config "stock" like i had before first time update x-ui. I also experimented with the reality settings and tried to set mldsa65 seed and verify like few days ago (don't know why, lol). Now i deleted mldsa65 verify and seed and i've had 1 GB of RAM usage for 6 hours now. Looks like something has been fixed.

How much users you have?

Total - 77 rn
Avarage online - 30-40

<!-- gh-comment-id:4077954214 --> @stxze commented on GitHub (Mar 17, 2026): > > <img alt="Image" width="1133" height="452" src="https://private-user-images.githubusercontent.com/254730198/565047321-ec54d8a8-a84d-44cf-b4f2-5893a59afdb7.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzM3NzkxMjEsIm5iZiI6MTc3Mzc3ODgyMSwicGF0aCI6Ii8yNTQ3MzAxOTgvNTY1MDQ3MzIxLWVjNTRkOGE4LWE4NGQtNDRjZi1iNGYyLTU4OTNhNTlhZmRiNy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwMzE3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDMxN1QyMDIwMjFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mNjMyZTA0NDQ2MTJjNGYyOTk5ZGU4M2ZjODkzYWMzNThkNWE4MjM1OWY0ODAyYWUyNWZjYzVlODgwNTY0NWZmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.UgDN117Enf3Uo0ybZcMB_XI4-HsNEFtZvZoHjbO-jTg"> > > As i said before, i downgraded to 2.8.9 with xray core 26.1.31 and had same issue, i have 4gb ram on my server and didnt had swap file. I tried set swap on 4gb, then i updated again to latest version. I saw ram leak like ~6 hours today and im always manualy reboot xray when i saw >2,5 gb usage, after that i deleted swap cause wanted get config "stock" like i had before first time update x-ui. I also experimented with the reality settings and tried to set mldsa65 seed and verify like few days ago (don't know why, lol). Now i deleted mldsa65 verify and seed and i've had 1 GB of RAM usage for 6 hours now. Looks like something has been fixed. > > How much users you have? Total - 77 rn Avarage online - 30-40
Author
Owner

@lLeXeRl commented on GitHub (Mar 17, 2026):

Image As i said before, i downgraded to 2.8.9 with xray core 26.1.31 and had same issue, i have 4gb ram on my server and didnt had swap file. I tried set swap on 4gb, then i updated again to latest version. I saw ram leak like ~6 hours today and im always manualy reboot xray when i saw >2,5 gb usage, after that i deleted swap cause wanted get config "stock" like i had before first time update x-ui. I also experimented with the reality settings and tried to set mldsa65 seed and verify like few days ago (don't know why, lol). Now i deleted mldsa65 verify and seed and i've had 1 GB of RAM usage for 6 hours now. Looks like something has been fixed.

How much users you have?

Total - 77 rn Avarage online - 30-40

I have total 7 users and average online 3 🫠
And mKCP only 1 user, after this 1gb ram usage is not normally 😑

<!-- gh-comment-id:4078028115 --> @lLeXeRl commented on GitHub (Mar 17, 2026): > > > <img alt="Image" width="1133" height="452" src="https://private-user-images.githubusercontent.com/254730198/565047321-ec54d8a8-a84d-44cf-b4f2-5893a59afdb7.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzM3NzkxMjEsIm5iZiI6MTc3Mzc3ODgyMSwicGF0aCI6Ii8yNTQ3MzAxOTgvNTY1MDQ3MzIxLWVjNTRkOGE4LWE4NGQtNDRjZi1iNGYyLTU4OTNhNTlhZmRiNy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwMzE3JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDMxN1QyMDIwMjFaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mNjMyZTA0NDQ2MTJjNGYyOTk5ZGU4M2ZjODkzYWMzNThkNWE4MjM1OWY0ODAyYWUyNWZjYzVlODgwNTY0NWZmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.UgDN117Enf3Uo0ybZcMB_XI4-HsNEFtZvZoHjbO-jTg"> > > > As i said before, i downgraded to 2.8.9 with xray core 26.1.31 and had same issue, i have 4gb ram on my server and didnt had swap file. I tried set swap on 4gb, then i updated again to latest version. I saw ram leak like ~6 hours today and im always manualy reboot xray when i saw >2,5 gb usage, after that i deleted swap cause wanted get config "stock" like i had before first time update x-ui. I also experimented with the reality settings and tried to set mldsa65 seed and verify like few days ago (don't know why, lol). Now i deleted mldsa65 verify and seed and i've had 1 GB of RAM usage for 6 hours now. Looks like something has been fixed. > > > > > > How much users you have? > > Total - 77 rn Avarage online - 30-40 I have total 7 users and average online 3 🫠 And mKCP only 1 user, after this 1gb ram usage is not normally 😑
Author
Owner

@adomination commented on GitHub (Mar 30, 2026):

My VPS has 1GB of memory, and it started leaking memory around November-December 2025. I restart it (x-ray) about every two-three days.
[v2.8.11]
I can add screenshots from Zabbix if needed.

<!-- gh-comment-id:4154135792 --> @adomination commented on GitHub (Mar 30, 2026): My VPS has 1GB of memory, and it started leaking memory around November-December 2025. I restart it (x-ray) about every two-three days. [v2.8.11] I can add screenshots from Zabbix if needed.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#2659
No description provided.