How to boost my server?

Issues related to applications and software problems and general support
hack3rcon
Posts: 757
Joined: 2014/11/24 11:04:37

How to boost my server?

Post by hack3rcon » 2020/10/17 16:42:37

Hello,
My server is so slow and when I want to write something is console then writing is delayed. I offer some information about my server and I'm thankful if anyone show me some ways to boost is:

Code: Select all

# free 
              total        used        free      shared  buff/cache   available
Mem:        3867856     3094076      628904       11392      144876      575532
Swap:       2170876     1382284      788592
And:

Code: Select all

# iostat
Linux 4.18.0-193.14.2.el8_2.x86_64 (System) 	10/17/2020 	_x86_64_	(4 CPU)

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           2.17    0.02    0.63    0.03    0.00   97.14

Device             tps    kB_read/s    kB_wrtn/s    kB_read    kB_wrtn
sda               3.51        44.39        45.40  203959475  208613480
dm-0              1.44        38.62        33.62  177484677  154477077
dm-1              4.36         5.74        11.69   26358028   53740852
dm-2              0.00         0.01         0.08      52746     354114
And:

Code: Select all

# vmstat 
procs -----------memory---------- ---swap-- -----io---- -system-- ------cpu-----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
 1  0 1375628 539688     72 224988    1    3    11    11    1    2  2  1 97  0  0
And https://pastebin.fun/lCK8mah605 and https://paste.ubuntu.com/p/2yj2kdM5tB/.
I attached these images too:
Suricata.png
Suricata.png (105.88 KiB) Viewed 1493 times
iotop.png
iotop.png (88.38 KiB) Viewed 1494 times
Thank you.

tunk
Posts: 1206
Joined: 2017/02/22 15:08:17

Re: How to boost my server?

Post by tunk » 2020/10/17 17:19:44

More memory, you're using 1.4GB swap.

User avatar
TrevorH
Site Admin
Posts: 33216
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: How to boost my server?

Post by TrevorH » 2020/10/17 17:31:02

Also the first sample from iostat/vmstat is an average since the system was booted so it's mostly useless. It's the subsequent samples that contain useful info.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

hack3rcon
Posts: 757
Joined: 2014/11/24 11:04:37

Re: How to boost my server?

Post by hack3rcon » 2020/10/17 20:28:24

tunk wrote:
2020/10/17 17:19:44
More memory, you're using 1.4GB swap.
How can I solve it without any reboot?

hack3rcon
Posts: 757
Joined: 2014/11/24 11:04:37

Re: How to boost my server?

Post by hack3rcon » 2020/10/21 08:20:22

In this situation, how can I troubleshooting it?

tunk
Posts: 1206
Joined: 2017/02/22 15:08:17

Re: How to boost my server?

Post by tunk » 2020/10/21 11:22:35

Shutdown server, switch off power, unplug power cable(s), install more memory, etc.

BShT
Posts: 585
Joined: 2019/10/09 12:31:40

Re: How to boost my server?

Post by BShT » 2020/10/21 13:50:43

most of time for me delayed typing is a link usage or latency issue

but there will be a thousand factors to see, if you have a VM or a physical host, if your VM has shared resources and/or resources limitations

hack3rcon
Posts: 757
Joined: 2014/11/24 11:04:37

Re: How to boost my server?

Post by hack3rcon » 2020/10/21 15:50:20

This happened suddenly!!!

hack3rcon
Posts: 757
Joined: 2014/11/24 11:04:37

Re: How to boost my server?

Post by hack3rcon » 2020/10/22 20:30:48

How a Linux administrator solve this problem?

tunk
Posts: 1206
Joined: 2017/02/22 15:08:17

Re: How to boost my server?

Post by tunk » 2020/10/23 10:32:20

ps aux | sort -rn -k 4 | more
Fourth column is memory usage in %.

Post Reply