Skip to forum content

You are not logged in. Please login or register.


forums.pvpgn.pro → [EN] Tech Support → [Solved]Memory Leak Causing D2CS Crash

Pages 1

You must login or register to post a reply

RSS topic feed

Posts: 8

1 (edited by Feofilaktt 12.12.2019 16:32)

Topic: [Solved]Memory Leak Causing D2CS Crash

Hi everyone,

I've been having a problem with my D2CS... Randomly it crash I have to climb it again.

In reports from Kern.log says that the program was terminated for using a lot of memory of the machine and really, my VPS has only 1GB of RAM, but the process D2CS uses almost nothing.

For these reasons, I think it might be some failure or some kind of attack, because this problem started without modification on my part or OS.

Has anyone had this problem?

Is it lack of memory in the machine?

Today I have an average of 100-120 Players and 50-60 Games.

I attach the kernel log.

Diablo 2 Online

Itens - Armory - Market - Clans - Builds - Planner

2

Re: [Solved]Memory Leak Causing D2CS Crash

I am no expert on the pvpgn side of things as I recently started my own server.

From just general IT experience, perhaps it is not the server that is causing the crashing of the application. What could be happening is, that other processes might be using a lot of RAM or uses all your ram that is available causing your server to terminate due to the lack of RAM available. It could cause that your SWAP memory overloads and then the system will fall over.

What operating system is your server running on?

Have a look at the task manager or do an HTOP (Linux) to monitor what applications use your RAM resources.

3

Re: [Solved]Memory Leak Causing D2CS Crash

Ponneh wrote:

I am no expert on the pvpgn side of things as I recently started my own server.

From just general IT experience, perhaps it is not the server that is causing the crashing of the application. What could be happening is, that other processes might be using a lot of RAM or uses all your ram that is available causing your server to terminate due to the lack of RAM available. It could cause that your SWAP memory overloads and then the system will fall over.

What operating system is your server running on?

Have a look at the task manager or do an HTOP (Linux) to monitor what applications use your RAM resources.


I am using Debian 8 Jessie.

Yes, I keep an eye out for processes using HTOP, but the memory never exceeds 300mb in use.

This is something that happens suddenly without my being able to visualize.


https://forums.pvpgn.pro/uploads/images/2019/11/27/capturar.png

Added: 27.11.2019 15:38

I am using this command to locate memory failures, let's see what will give.

smem -rkt | grep -E 'D2GS.exe|mysqld |bnetd|d2cs|d2dbs| 6 |----|PID'

https://forums.pvpgn.pro/uploads/images/2019/11/27/unknown.png

Diablo 2 Online

Itens - Armory - Market - Clans - Builds - Planner

4

Re: [Solved]Memory Leak Causing D2CS Crash

Looking at your attachments, I see your swap mem is half the size of your actual memory. Usually, the swap memory should be double the amount of ram you have. Also, see if you can increase your swap storage to around 5-6gb. Its good practice to rather have a beefy swap space and a "slower" running server than have little swap and a server that crashes.

See if you can increase your swap mem and have it running like that for a few days and monitor the outcome.

To do a swap mem increase you will have some downtime for a while as you need to switch off the server to increase.

How does your partitioning look like?

Hope you solve your issue

5

Re: [Solved]Memory Leak Causing D2CS Crash

Ponneh wrote:

Looking at your attachments, I see your swap mem is half the size of your actual memory. Usually, the swap memory should be double the amount of ram you have. Also, see if you can increase your swap storage to around 5-6gb. Its good practice to rather have a beefy swap space and a "slower" running server than have little swap and a server that crashes.

See if you can increase your swap mem and have it running like that for a few days and monitor the outcome.

To do a swap mem increase you will have some downtime for a while as you need to switch off the server to increase.

How does your partitioning look like?

Hope you solve your issue

True, I had not noticed that. What a failure my hahaha

Probably this being the problem, I will increase the RAM in VPS and increase the swap space.

Thank you so much for reminding me, I'm even embarrassed due to my linux experience. If my teacher saw that he would be angry hahahaha

Diablo 2 Online

Itens - Armory - Market - Clans - Builds - Planner

6

Re: [Solved]Memory Leak Causing D2CS Crash

Not a problem at all.

Glad I could help smile

let us know if you managed and if it fixed your issue.

P.

7

Re: [Solved]Memory Leak Causing D2CS Crash

Yeap, I will make the changes this weekend and analyzea and put the test results here.

Regards big_smile

Diablo 2 Online

Itens - Armory - Market - Clans - Builds - Planner

8

Re: [Solved]Memory Leak Causing D2CS Crash

Feofilaktt wrote:

Yeap, I will make the changes this weekend and analyzea and put the test results here.

Regards big_smile

Problem solved! It was lack of RAM and SWAP space.

Diablo 2 Online

Itens - Armory - Market - Clans - Builds - Planner

Posts: 8

Pages 1

You must login or register to post a reply

Who now at forum

Currently view post: 0 guests, 0 registered users

forums.pvpgn.pro → [EN] Tech Support → [Solved]Memory Leak Causing D2CS Crash