opentibiabr / otservbr-global

OTServBR-Global datapack was migrated to Canary repository: https://github.com/opentibiabr/canary
GNU General Public License v2.0
143 stars 162 forks source link

high ram memory usage #730

Closed sebaz12 closed 2 years ago

sebaz12 commented 2 years ago

Priority

High

Area

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

dudantas commented 2 years ago

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.

CzajaTwitch commented 2 years ago

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

dudantas commented 2 years ago

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

CzajaTwitch commented 2 years 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 https://github.com/opentibiabr/otservbr-global/issues/730#issuecomment-1193894790, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZXPXLMWYCEZ4BGC5BQKC5DVVZW65ANCNFSM54P6H73Q . You are receiving this because you commented.Message ID: @.***>

omeranha commented 2 years 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 https://github.com/opentibiabr/canary/pull/366 but I fixed a long time ago

CzajaTwitch commented 2 years ago

Hi there Omeranha. I just made post on forum about this bug,

When you trade with npc and look on item it restart server without any errors in console.

On Mon, 25 Jul 2022 at 16:58, omeranha @.***> wrote:

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 … <#m8989522079335388069> 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) https://github.com/opentibiabr/otservbr-global/issues/730#issuecomment-1193894790>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZXPXLMWYCEZ4BGC5BQKC5DVVZW65ANCNFSM54P6H73Q 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 https://github.com/opentibiabr/canary/pull/366 but I fixed a long time ago

— Reply to this email directly, view it on GitHub https://github.com/opentibiabr/otservbr-global/issues/730#issuecomment-1194277689, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZXPXLOF2Q2XLUMGRSDKIH3VV22TPANCNFSM54P6H73Q . You are receiving this because you commented.Message ID: @.***>

sebaz12 commented 2 years 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

sebaz12 commented 2 years ago

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

guispiller commented 2 years ago

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.

dudantas commented 2 years ago

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

sebaz12 commented 2 years ago

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