Excessive memory usage
#1

Hello, my server usually uses around 60MB of memory, but last few days this usage sometimes suddenly rises to the 100% of capacity of the memory (3GB total). I'm not using any FS or plugins. Do you please have any idea, what could cause this issue?
Reply
#2

Are you using pvars? I think there were a few people who were having weird problems with memory leaks due to them. Im not completely sure though.
Reply
#3

Quote:
Originally Posted by Kyosaur
Посмотреть сообщение
Are you using pvars? I think there were a few people who were having weird problems with memory leaks due to them. Im not completely sure though.
Theres problems with pvars now?
Reply
#4

Quote:
Originally Posted by Retardedwolf
Посмотреть сообщение
Theres problems with pvars now?
Im not entirely sure. I do remember seeing a couple of posts saying there was a memory leak problem; never seen an official statement though. Just curious if he uses them, thats all.
Reply
#5

I've noticed that posts as well, but I'm not using pvars.
Reply
#6

Show your script?
Reply
#7

Quote:
Originally Posted by Relixious
Посмотреть сообщение
Show your script?
I Lol'd.

Ontopic: Uhh, I'm not sure; but it could be string sizes, are yours all properly sized?

https://sampforum.blast.hk/showthread.php?tid=55261
Reply
#8

Quote:
Originally Posted by miokie
Посмотреть сообщение
I Lol'd.

Ontopic: Uhh, I'm not sure; but it could be string sizes, are yours all properly sized?

https://sampforum.blast.hk/showthread.php?tid=55261
Why is that funny?
Reply
#9

Quote:
Originally Posted by miokie
Посмотреть сообщение
I Lol'd.

Ontopic: Uhh, I'm not sure; but it could be string sizes, are yours all properly sized?

https://sampforum.blast.hk/showthread.php?tid=55261
That wouldnt be it. Variables arent handled at runtime, so this means that variable creation is done once your script is compiled. If he used unhealthily massive arrays, it wouldn't cause a fluctuation like what he is experiencing, it would just use that much memory all the time.

Quote:
Originally Posted by niCe
Посмотреть сообщение
I've noticed that posts as well, but I'm not using pvars.
Im guessing you also dont use anything like malloc/the native properties then?

Can you give us any ideas you have at all? Try to think when the problem started / what you added to your game mode. It might help someone uncover something (atm we have nothing to go off of, so its a bit difficult). Try to give as much relevant information as you can :\.
Reply
#10

Quote:
Originally Posted by Kyosaur
Посмотреть сообщение
Im guessing you also dont use anything like malloc/the native properties then?

Can you give us any ideas you have at all? Try to think when the problem started / what you added to your game mode. It might help someone uncover something (atm we have nothing to go off of, so its a bit difficult). Try to give as much relevant information as you can :\.
Malloc? I guess no.

Well, I'm not aware of anything in my gamemode what could cause this excessive usage. Albeit I use few large local arrays (up to 8192 cells) for dialogs, but I believe it's not the sake of this issue. Anyway, I guess this may be an external attack or some leak, since this issue is appearing very randomly for about a last week (no evidence in last 2 days though). I just wonder if anyone else has been experiencing anything like this?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)