Jump to content
  • 0

Server freezes when using command as a GM


flamezito

Question


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   0
  • Joined:  01/17/17
  • Last Seen:  

Hello, I made a simple script that reloads the cash shop automatically at 9:00 pm, however, sometimes the server freezes for about 5 to 10 seconds, where some players are disconnected in the process.

I thought it was the script's fault or something like that, however, I noticed the same behavior when using a simple "@ii" command within the game on a GM account, so I did a test with a normal account and the server didn't froze.

apparently the server or client freezes when a GM or a script executes a command.

In the server logs, it doesn't show anything, it only shows the log of players who disconnected.

Somewhere on this forum, I saw a similar problem, where someone said it was a problem inserting into the command log table, however, looking at the table, I see the logs without problems and inserted at a high speed.

My script:

-   script  cashshop#updat  -1,{
OnClock2100:
    atcommand "@reloaditemdb";
    end;
}
Edited by flamezito
Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1826
  • Reputation:   288
  • Joined:  08/03/12
  • Last Seen:  

15 minutes ago, flamezito said:

Hello, I made a simple script that reloads the cash shop automatically at 9:00 pm, however, sometimes the server freezes for about 5 to 10 seconds, where some players are disconnected in the process.

I thought it was the script's fault or something like that, however, I noticed the same behavior when using a simple "@ii" command within the game on a GM account, so I did a test with a normal account and the server didn't froze.

apparently the server or client freezes when a GM or a script executes a command.

In the server logs, it doesn't show anything, it only shows the log of players who disconnected.

Somewhere on this forum, I saw a similar problem, where someone said it was a problem inserting into the command log table, however, looking at the table, I see the logs without problems and inserted at a high speed.

My script:

-   script  cashshop#updat  -1,{
OnClock2100:
    atcommand "@reloaditemdb";
    end;
}

latest rathena have command @reloadcashdb. should be faster.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  8
  • Reputation:   0
  • Joined:  01/17/17
  • Last Seen:  

10 minutes ago, Chaos92 said:

latest rathena have command @reloadcashdb. should be faster.

Okay, I'll try! But that doesn't change what happened to @ii
I'm using a VPS KVM 2 core 8g ram

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  49
  • Topics Per Day:  0.01
  • Content Count:  1826
  • Reputation:   288
  • Joined:  08/03/12
  • Last Seen:  

4 hours ago, flamezito said:

Okay, I'll try! But that doesn't change what happened to @ii
I'm using a VPS KVM 2 core 8g ram

didnt know what to say, check the log maybe. it shouldnt be freeze.

But if @reloaditemdb, most probably will freeze awhile since the data is so many to be loaded.

but for @ii I dont think so. it should be fast.

just use @reloadcashdb.

Edited by Chaos92
additional info
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...