Raised This Month: $32 Target: $400
 8% 

Solved Server turns crazy


Post New Thread Reply   
 
Thread Tools Display Modes
kgns
Senior Member
Join Date: May 2017
Location: Istanbul, Turkey
Old 01-06-2019 , 20:37   Re: Server turns crazy
Reply With Quote #21

PTaH does not have anything to do with this problem, look elsewhere.

PTaH is an extension that offers many hooks that are unavailable with vanilla sourcemod, and/or require manual maintenance with DHooks extension. while some of those hooks might cause problems with some servers, they only cause it if any plugins use those hooks. which means you should check the plugins using PTaH if you think PTaH is causing you any trouble. having PTaH as an extension without any plugins using its hooks cannot cause any problems as its code doesnt even run. (sm doesnt even load PTaH extension if no plugins require it, but you can still manually load it, and still its code is not run at any point without a plugin)
__________________

OyunHost Sunucu Hizmetleri: https://www.oyunhost.net
kgns is offline
NanoC
Veteran Member
Join Date: Jan 2016
Location: Argentina
Old 01-07-2019 , 01:14   Re: Server turns crazy
Reply With Quote #22

Solved! It was a memory leak, to fix it i've made a little and basic plugin to disable some plugins with high memory size at map end, and enable them again on map start
__________________
NanoC is offline
Send a message via Skype™ to NanoC
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 01-07-2019 , 06:11   Re: Server turns crazy
Reply With Quote #23

Quote:
Originally Posted by NanoC View Post
Solved! It was a memory leak, to fix it i've made a little and basic plugin to disable some plugins with high memory size at map end, and enable them again on map start
It would be best if you can list the plugin(s) that was causing the problem (if it is a public plugin)
__________________
8guawong is offline
NanoC
Veteran Member
Join Date: Jan 2016
Location: Argentina
Old 01-07-2019 , 07:28   Re: Server turns crazy
Reply With Quote #24

franug_itemname or something like that (deleted)
store by zephyrus
a plugin made for me (new discord api)
weapons (made by kgns)
These are the top 4 plugins with highest memory size
__________________
NanoC is offline
Send a message via Skype™ to NanoC
e54385991
AlliedModders Donor
Join Date: Aug 2013
Old 01-07-2019 , 10:53   Re: Server turns crazy
Reply With Quote #25

i think there "MyJailbreak" too many leaks.

https://github.com/shanapu/MyJailbre...rs.sp#L78-L113

every mapstart create file handle and Keyvalues handle etc...

it's not a global variable. without delete Keyvalues filehandle ..etc..

Try 100 times mapchange

after sm_dump_handles handle.txt
__________________

Last edited by e54385991; 01-07-2019 at 10:56.
e54385991 is offline
Send a message via ICQ to e54385991
freak.exe_uLow
AlliedModders Donor
Join Date: Jul 2012
Location: Germany
Old 01-07-2019 , 11:21   Re: Server turns crazy
Reply With Quote #26

Quote:
Originally Posted by NanoC View Post
franug_itemname or something like that (deleted)
store by zephyrus
a plugin made for me (new discord api)
weapons (made by kgns)
These are the top 4 plugins with highest memory size
Did you remove Knife completely? or do you use something else for that?
freak.exe_uLow is offline
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 01-07-2019 , 11:42   Re: Server turns crazy
Reply With Quote #27

Quote:
Originally Posted by e54385991 View Post
i think there "MyJailbreak" too many leaks.

https://github.com/shanapu/MyJailbre...rs.sp#L78-L113

every mapstart create file handle and Keyvalues handle etc...

it's not a global variable. without delete Keyvalues filehandle ..etc..

Try 100 times mapchange

after sm_dump_handles handle.txt
Nice find!

I will fix that as soon as possible!
Any other findings in this way?
__________________
coding & free software

Last edited by shanapu; 01-07-2019 at 12:02.
shanapu is offline
NanoC
Veteran Member
Join Date: Jan 2016
Location: Argentina
Old 01-07-2019 , 12:46   Re: Server turns crazy
Reply With Quote #28

Quote:
Originally Posted by freak.exe_uLow View Post
Did you remove Knife completely? or do you use something else for that?
i deactivated the plugin on map end then i activate it on map start using a basic plugin
__________________
NanoC is offline
Send a message via Skype™ to NanoC
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 01-07-2019 , 19:12   Re: Server turns crazy
Reply With Quote #29

Quote:
Originally Posted by e54385991 View Post
i think there "MyJailbreak" too many leaks.

https://github.com/shanapu/MyJailbre...rs.sp#L78-L113

every mapstart create file handle and Keyvalues handle etc...

it's not a global variable. without delete Keyvalues filehandle ..etc..

Try 100 times mapchange

after sm_dump_handles handle.txt
yeah my jailbreak server crash 1 time per day and I think that is caused by memory leaks.

I found that memory leaks is caused by myjailbreak plugin (i added more improvements to the issue), teamgames (I think that i fixed it here) and devzones (with trie handles that I will see too).
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.

Franc1sco is offline
Send a message via MSN to Franc1sco
NanoC
Veteran Member
Join Date: Jan 2016
Location: Argentina
Old 01-07-2019 , 20:03   Re: Server turns crazy
Reply With Quote #30

Ye i've posted a screenshot in myjb git about a plugin with high memory size.
If you didnt know this, there's a way to know what plugins have too high memory size.
First you should type this in console:
sm_dump_handles handles.txt
Then go to csgo/ folder and find handles.txt, open it.
Copy all lines and paste them here (thanks freak.exe_uLow for the help )
Now you can see what plugins have too high memory size

__________________
NanoC is offline
Send a message via Skype™ to NanoC
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:19.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode