Posts: 248
Threads: 54
Joined: May 2014
Hello there,
I have a problem in my server (linux) centos_64, Its lagging anytime. I don't know why (Maybe through the port:7777)? or maybe at my linux VPS space?, I need your opinion guys (recently my friend told me its because on port 7777) or maybe on Linux VPS Space or maybe im typing "nohup ./samp03svr &" so this will cause a loop executing the samp03svr? (iam right?) If this whats the code i need to type to open the server without lagging. I need your help i will give an reputation!
Operating System: centos-5-x86_64
RAM: 128 MB
SWAP: 128 MB
CPU Count: 0.25
Disk Space: 10 GB
Network Speed: 10 mbps
Bandwidth: 0 / 500 GB
P.S: Im so sorry for my bad english
Thanks guys!
Posts: 724
Threads: 14
Joined: Jul 2012
Reputation:
0
Use 'top' which is the Linux equivalent of task manager to view resource usage. If you have multiple processes running, you likely wouldn't notice any server restarts as the first daemon/task in the background would likely be the one accepting connections.
Posts: 1,696
Threads: 6
Joined: Dec 2008
128MB ram found your problem.
Also do free -m in SSH and paste results.
Posts: 248
Threads: 54
Joined: May 2014
Quote:
Originally Posted by rymax99
Use 'top' which is the Linux equivalent of task manager to view resource usage. If you have multiple processes running, you likely wouldn't notice any server restarts as the first daemon/task in the background would likely be the one accepting connections.
|
Holy F*ck
Код:
top - 19:52:45 up 4 days, 13:35, 1 user, load average: 0.22, 0.16, 0.10
Tasks: 31 total, 1 running, 30 sleeping, 0 stopped, 0 zombie
Cpu(s): 9.6%us, 2.4%sy, 0.0%ni, 73.5%id, 0.0%wa, 0.0%hi, 0.0%si, 14.5%st
Mem: 131072k total, 129868k used, 1204k free, 0k buffers
Swap: 131072k total, 6544k used, 124528k free, 32556k cached
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2046 PARP 20 0 121m 81m 2292 S 3.7 64.0 27:33.62 samp03svr - My server
1 root 20 0 10372 640 608 S 0.0 0.5 0:02.63 init
2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd/48944
3 root 20 0 0 0 0 S 0.0 0.0 0:00.00 khelper/48944
92 root 16 -4 12640 368 364 S 0.0 0.3 0:00.01 udevd
382 root 20 0 5932 604 544 S 0.0 0.5 0:00.48 syslogd
410 root 20 0 64804 728 632 S 0.0 0.6 0:00.04 sshd
418 root 20 0 21664 592 588 S 0.0 0.5 0:00.00 xinetd
475 root 20 0 62856 776 608 S 0.0 0.6 0:07.40 sendmail
503 smmsp 20 0 57736 680 552 S 0.0 0.5 0:00.05 sendmail
513 root 20 0 170m 1024 988 S 0.0 0.8 0:07.80 httpd
516 apache 20 0 170m 1660 1020 S 0.0 1.3 0:00.00 httpd
517 apache 20 0 170m 1648 1008 S 0.0 1.3 0:00.00 httpd
518 apache 20 0 170m 1640 1012 S 0.0 1.3 0:00.00 httpd
519 apache 20 0 170m 1828 1096 S 0.0 1.4 0:00.00 httpd
520 apache 20 0 170m 1224 992 S 0.0 0.9 0:00.00 httpd
521 apache 20 0 170m 1368 1068 S 0.0 1.0 0:00.00 httpd
Should i kill them all except the PARP
Posts: 248
Threads: 54
Joined: May 2014
Quote:
Originally Posted by Khanz
128MB ram found your problem.
Also do free -m in SSH and paste results.
|
Код:
$ free -m
total used free shared buffers cached
Mem: 128 126 1 0 0 31
-/+ buffers/cache: 94 33
Swap: 128 6 121
Posts: 1,003
Threads: 31
Joined: Jul 2013
Reputation:
0
service sendmail stop
service httpd stop
see if it frees up your server memory for your server