MRatWork Forum by Mustafa Ramadhan
Language Specific Discussions => Indonesia Users => Topic started by: flameblue59 on 2017-03-18, 07:29:22
-
Siang, saya mau menanyakan situs saya yang sering kena Error 500. Berikut sh /script/sysinfo
A. Control Panel:
- Kloxo-MR: 7.0.0.c-2017031601
- Web: hiawatha-10.5.0-f.2.mr.el6.x86_64
- PHP: php56s-5.6.30-1.ius.centos6 (fpm mode)
B. Plateform:
- OS: CentOS release 6.8 (Final) x86_64
- Hostname: server.1ori.com
C. Services:
1. MySQL: MariaDB-server-10.0.30-1.el6.x86_64
2. PHP:
- Installed:
- Branch: php54-cli-5.4.45-1.ius.centos6.x86_64
- Multiple:
* php52m-5.2.17-102.mr.el6
* php53m-5.3.29-1.ius.centos6
* php54m-5.4.45-1.ius.centos6
* php55m-5.5.38-1.ius.centos6
* php56m-5.6.30-1.ius.centos6
* php70m-7.0.16-1.ius.centos6
* php71m-7.1.2-1.ius.centos6
- Used: php54m-fpm
- Multiple: disable
3. Web Used: nginxproxy
- Hiawatha: hiawatha-10.5.0-f.2.mr.el6.x86_64
- Lighttpd: lighttpd-1.4.45-1.el6.x86_64
- Nginx: nginx-1.11.10-1.el6.ngx.x86_64
- Apache: httpd24u-2.4.25-3.ius.centos6.x86_64
- PHP Type: suphp_event
- Secondary PHP: on
4. WebCache: none
- ATS: --uninstalled--
- Squid: --uninstalled--
- Varnish: --uninstalled--
5. Dns: bind
- Bind: bind-9.9.7-1.mr.el6.x86_64
- DJBDns: --uninstalled--
- NSD: --uninstalled--
- PowerDNS: --uninstalled--
- Yadifa: --uninstalled--
6. Mail: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
- pop3/imap4: courier-imap-toaster-4.1.2-1.3.20.mr.el6.x86_64
- smtp: qmail-toaster-1.03-1.3.55.mr.el6.x86_64
- spam: bogofilter-1.2.4-1.el6.x86_64
7. Stats: awstats
D. Memory:
total used free shared buffers cached
Mem: 8388607 3913 8384694 379 0 2823
-/+ buffers/cache: 1089 8387518
Swap: 0 0 0
E. Disk Space:
Filesystem Size Used Avail Use% Mounted on
/dev/simfs 20G 3.3G 17G 17% /
*** Process Time: 00:00:00:15.15141 (dd:hh:mm:ss:xxxxxx) ***
* Note: run 'sh /script/sysinfo -y' if you want run 'fix-service-list' also
(importance after Kloxo-MR update)
Kira-kira kenapa ya? udah coba
sh /script/fixweb
sh /script/restart-web -y
tapi hasilnya malah gini.
Stopping php54m-fpm (PHP Used): [ OK ]
Starting php54m-fpm (PHP Used): [ OK ]
-------------------------------------------------------------------
Stopping php52m-fpm (Multiple Php): [ OK ]
Starting php52m-fpm (Multiple Php): [ OK ]
-------------------------------------------------------------------
Stopping php53m-fpm (Multiple Php): [ OK ]
Starting php53m-fpm (Multiple Php): [ OK ]
-------------------------------------------------------------------
Stopping php54m-fpm (Multiple Php): [ OK ]
Starting php54m-fpm (Multiple Php): [ OK ]
-------------------------------------------------------------------
Stopping php55m-fpm (Multiple Php): [ OK ]
Starting php55m-fpm (Multiple Php): [ OK ]
-------------------------------------------------------------------
Stopping php56m-fpm (Multiple Php): [ OK ]
Starting php56m-fpm (Multiple Php): [ OK ]
-------------------------------------------------------------------
Stopping php70m-fpm (Multiple Php): [ OK ]
Starting php70m-fpm (Multiple Php): [ OK ]
-------------------------------------------------------------------
Stopping php71m-fpm (Multiple Php): [ OK ]
Starting php71m-fpm (Multiple Php): [ OK ]
-------------------------------------------------------------------
Stopping nginx: [ OK ]
Starting nginx: [ OK ]
-------------------------------------------------------------------
Stopping httpd: [ OK ]
Starting httpd: AH00497: WARNING: ServerLimit of 119830 exceeds compile-time limit of 20000 servers, decreasing to 20000.
AH00515: WARNING: MaxRequestWorkers of 2995750 would require 119830 servers and would exceed ServerLimit of 20000, decreasing to 500000. To increase, please see the ServerLimit directive.
[ OK ]
-------------------------------------------------------------------
- For help, type '/script/restart-web [--help|-h]'
Mohon bantuannya para sesepuh. Thank you.
-
Pilih 'high' untuk 'apache optimize' pada 'webserver configure'.
-
sudah pak MR, saat ini sudah bisa jalan situsnya tapi saat coba restart httpd malah muncul error seperti ini
[root@server ~]# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: AH00497: WARNING: ServerLimit of 119830 exceeds compile-time limit of 20000 servers, decreasing to 20000.
AH00515: WARNING: MaxRequestWorkers of 2995750 would require 119830 servers and would exceed ServerLimit of 20000, decreasing to 500000. To increase, please see the ServerLimit directive.
[ OK ]
-
Infokan 'cat /etc/httpd/conf.d/~lxcenter.conf'.
-
Ini pak MR
[root@server ~]# cat /etc/httpd/conf.d/~lxcenter.conf
Timeout 150
KeepAlive Off
MaxKeepAliveRequests 100
KeepAliveTimeout 15
<IfModule prefork.c>
StartServers 2
MinSpareServers 69901
MaxSpareServers 139802
ServerLimit 139802
<IfVersion >= 2.4>
MaxRequestWorkers 139802
MaxConnectionsPerChild 4000
</IfVersion>
<IfVersion < 2.4>
MaxClients 139802
MaxRequestsPerChild 4000
</IfVersion>
MaxMemFree 2
SendBufferSize 65536
ReceiveBufferSize 65536
</IfModule>
<IfModule itk.c>
StartServers 2
MinSpareServers 69901
MaxSpareServers 139802
ServerLimit 139802
<IfVersion >= 2.4>
MaxRequestWorkers 139802
MaxConnectionsPerChild 4000
</IfVersion>
<IfVersion < 2.4>
MaxClients 139802
MaxRequestsPerChild 4000
</IfVersion>
MaxMemFree 2
SendBufferSize 65536
ReceiveBufferSize 65536
</IfModule>
<IfModule worker.c>
StartServers 2
MinSpareThreads 59915
MaxSpareThreads 119830
ThreadsPerChild 25
ServerLimit 119830
<IfVersion >= 2.4>
MaxRequestWorkers 2995750
MaxConnectionsPerChild 0
</IfVersion>
<IfVersion < 2.4>
MaxClients 2995750
MaxRequestsPerChild 0
</IfVersion>
SendBufferSize 65536
ReceiveBufferSize 65536
</IfModule>
<IfModule event.c>
StartServers 2
MinSpareThreads 59915
MaxSpareThreads 119830
ThreadsPerChild 25
ServerLimit 119830
MaxRequestsPerChild 0
<IfVersion >= 2.4>
MaxRequestWorkers 2995750
MaxConnectionsPerChild 0
</IfVersion>
<IfVersion < 2.4>
MaxClients 2995750
MaxRequestsPerChild 0
</IfVersion>
SendBufferSize 65536
ReceiveBufferSize 65536
</IfModule>
Include /opt/configs/apache/conf/defaults/*.conf
Include /opt/configs/apache/conf/domains/*.conf
### selected: high ###
[root@server ~]#
-
Memangnya RAM anda berapa?.
-
RAM saya 2 GB pak.
-
Dari sysinfo, didapat nilai '8388607' (dalam MB). Ini artinya RAM anda terdeteksi sebagai 8TB. Wow.
Laporkan masalah ini ke provider anda berdasarkan perintah 'free -m'.
-
Dari sysinfo, didapat nilai '8388607' (dalam MB). Ini artinya RAM anda terdeteksi sebagai 8TB. Wow.
Laporkan masalah ini ke provider anda berdasarkan perintah 'free -m'.
sudah saya report ke solusvm pak, kebetulan saya yang pegang dedi dan saya bagi ke beberapa vps.
-
pak MR, kenapa RAM saya terpakai sampai penuh ya?
[root@server ~]# free -m
total used free shared buffers cached
Mem: 3000 3000 0 51 0 2701
-/+ buffers/cache: 298 2701
Swap: 0 0 0
padahal, situs saya no traffic masih dalam pengembangan.
-
Real memory terpakai adalah '298'. Jadi penuh karena cached. Gejala begini biasanya karena tidak ada swap. Buat swap sekitar 1/4 dari RAM.
-
Real memory terpakai adalah '298'. Jadi penuh karena cached. Gejala begini biasanya karena tidak ada swap. Buat swap sekitar 1/4 dari RAM.
Padahal saya sudah set swap memory di solusvm, kenapa di ssh malah kebaca dibagian buffers/cache ya?
total used free shared buffers cached
Mem: 3000 2825 174 50 0 2467
-/+ buffers/cache: 358 2641
Swap: 0 0 0
-
Wah itu bukan urusan Kloxo-MR. Diskusikan saja dengan pihak SolusVM.
Kalau saya, mending pakai Virtualizor daripada SolusVM.
-
Wah itu bukan urusan Kloxo-MR. Diskusikan saja dengan pihak SolusVM.
Kalau saya, mending pakai Virtualizor daripada SolusVM.
iya pak, saya sedang diskusikan nih.