Jump to content
  • 0

memory limit


Emilio_M

Question

2 answers to this question

Recommended Posts

  • 0
  • MTA Anti-Cheat Team

Server crashes can happen when you get a Memory exception / aka running out of RAM, now that has to pass your system's capacity or when you have alot of RAM would need high load after a long runtime to make the actual MTA server process unstable (as every process would with certain memory usage)

For single resources I think it's hard to get it using so much that it will pass the memory limit resulting in a crash.

If you can get a single resource eating that much memory, you can better start thinking it has a memory leak somewhere in the script.

Link to comment
  • 0

Well all my scripts are using 369773 KB and one alone is using 77781 KB (lots of stuff in lua tables) you can check in performancebrowser to see each resources memory usage. The average script shouldn't use over 1000KB but if it stores loads of stuff in lua tables or large strings like images and screenshots from players then it will use more.

Your debug script will be spammed by "ERROR: Out of memory" before the server might crash (or automatically shut itself down if it's frozen for too long)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...