Excessive memory usage -
niCe - 25.09.2010
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?
Re: Excessive memory usage -
Kyosaur - 25.09.2010
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.
Re: Excessive memory usage -
Retardedwolf - 25.09.2010
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?
Re: Excessive memory usage -
Kyosaur - 25.09.2010
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.
Re: Excessive memory usage -
niCe - 25.09.2010
I've noticed that posts as well, but I'm not using pvars.
Re: Excessive memory usage -
Relixious - 25.09.2010
Show your script?
Re: Excessive memory usage -
miokie - 25.09.2010
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
Re: Excessive memory usage -
Relixious - 25.09.2010
Quote:
Originally Posted by miokie
|
Why is that funny?
Re: Excessive memory usage -
Kyosaur - 25.09.2010
Quote:
Originally Posted by miokie
|
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 :\.
Re: Excessive memory usage -
niCe - 28.09.2010
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?