opentibiabr/otservbr-global

high ram memory usage

sebaz12 opened this issue · 11 comments

Priority

High

Area

  • Datapack
  • Source
  • Map
  • Other

What happened?

hi, i installed the newest data-pack and i got crashes. the ots engine uses to much memory ram... i have host with 6 cores and 12gb ram memory when 10 players are online ram memory jumps to 100% and crash server
image
this is usage when nobody is online...

What OS are you seeing the problem on?

Windows 10

Code of Conduct

  • I agree to follow this project's Code of Conduct

4gb is average RAM usage, global map requires a lot of RAM.

If you don't want to use a lot of RAM, try using a minor map.

As for the crash, for more details. What causes? Have a log? Ten online players do not crash, crash is caused by undefined behavior, by unhandled exception. If you don't give details, no one will guess what's going on, we don't have a crystal ball.

Hi, Dudantas

Nothing come up on console, just restart server randomly, Please advice me how i can deeply search for logs in this case?
I checked server status, ram usage, cpu usage all seems to be fine.
Is there any chance third person loginto php admin and disconect it maybe?

Kind Regards
Czaja

Hi, Dudantas

Nothing come up on console, just restart server randomly, Please advice me how i can deeply search for logs in this case? I checked server status, ram usage, cpu usage all seems to be fine. Is there any chance third person loginto php admin and disconect it maybe?

Kind Regards Czaja

You can use visual studio debug to get a crash log
Go to debug > attach to process
Choose the process and run the crash, there will be a log of the last functions executed before the crash.
Make sure to compile on release with deb info

Hello there Eduardo. We find out the problem. when we trade with npc buy manas you use look on item then its restart server. Its with all NPC like that... critical bug, people can duplicate items on crashes. get back to me asap with solution please. Kind Regards

On Mon, 25 Jul 2022 at 11:54, Eduardo Dantas @.> wrote: Hi, Dudantas Nothing come up on console, just restart server randomly, Please advice me how i can deeply search for logs in this case? I checked server status, ram usage, cpu usage all seems to be fine. Is there any chance third person loginto php admin and disconect it maybe? Kind Regards Czaja You can use visual studio debug to get a crash log Go to debug > attach to process Choose the process and run the crash, there will be a log of the last functions executed before the crash. Make sure to compile on release with deb info — Reply to this email directly, view it on GitHub <#730 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZXPXLMWYCEZ4BGC5BQKC5DVVZW65ANCNFSM54P6H73Q . You are receiving this because you commented.Message ID: @.>

hello, just to be sure, are you using the main branch, right?
that was an issue on opentibiabr/canary#366 but I fixed a long time ago

Hello there Eduardo. We find out the problem. when we trade with npc buy manas you use look on item then its restart server. Its with all NPC like that... critical bug, people can duplicate items on crashes. get back to me asap with solution please. Kind Regards

On Mon, 25 Jul 2022 at 11:54, Eduardo Dantas @.> wrote: Hi, Dudantas Nothing come up on console, just restart server randomly, Please advice me how i can deeply search for logs in this case? I checked server status, ram usage, cpu usage all seems to be fine. Is there any chance third person loginto php admin and disconect it maybe? Kind Regards Czaja You can use visual studio debug to get a crash log Go to debug > attach to process Choose the process and run the crash, there will be a log of the last functions executed before the crash. Make sure to compile on release with deb info — Reply to this email directly, view it on GitHub <#730 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZXPXLMWYCEZ4BGC5BQKC5DVVZW65ANCNFSM54P6H73Q . You are receiving this because you commented.Message ID: _@**.**_>

hello, just to be sure, are you using the main branch, right? that was an issue on opentibiabr/canary#366 but I fixed a long time ago

hi, we use main branch we compiled it at Polish Time
image

You weren't suppose to close the issue related to that crash. @dudantas opened the PR for fix, we will test this, and if everything alright, we will merge, then the Issues will be closed automatically. It will help if you test and review if it's fine.

we should use this https://github.com/opentibiabr/canary/tree/fix-crash-related-to-look-item?? or we have to wait??

If you confirm that my pull request fixed the bug, let me know that I'll go up to main

i check your fix and it works right now.
Thank you For Help.