MRatWork Forum by Mustafa Ramadhan
Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: crossing on 2013-08-26, 17:12:26
-
Server memory usage its not to high to Idle ? 700Mb to 1Gb . htop screenshoot http://postimg.org/image/y3ijzy1lb/f758e963/ (http://postimg.org/image/y3ijzy1lb/f758e963/)
-
crossing run this script
cat /proc/meminfo
and show results
-
Inform here 'free -m' and 'sh /script/info'.
-
crossing run this script
cat /proc/meminfo
and show results
Here they are :
cat /proc/meminfo
MemTotal: 8056948 kB
MemFree: 6966548 kB
Buffers: 39736 kB
Cached: 418392 kB
SwapCached: 0 kB
Active: 756108 kB
Inactive: 182820 kB
Active(anon): 480872 kB
Inactive(anon): 39908 kB
Active(file): 275236 kB
Inactive(file): 142912 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 8191992 kB
SwapFree: 8191992 kB
Dirty: 0 kB
Writeback: 0 kB
AnonPages: 480820 kB
Mapped: 69608 kB
Shmem: 39984 kB
Slab: 59784 kB
SReclaimable: 30592 kB
SUnreclaim: 29192 kB
KernelStack: 2320 kB
PageTables: 17164 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 12220464 kB
Committed_AS: 1370028 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 94172 kB
VmallocChunk: 34359640376 kB
HardwareCorrupted: 0 kB
AnonHugePages: 321536 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 7168 kB
DirectMap2M: 8380416 kB
Inform here 'free -m' and 'sh /script/info'.
Here it is :
free -m
total used free shared buffers cached
Mem: 7868 1065 6802 0 38 408
-/+ buffers/cache: 618 7249
Swap: 7999 0 7999
sh /script/info
sh: /script/info: No such file or directory
sh /script/sysinfo
A. Kloxo-MR: 6.5.0.f-2013082401
B. OS: CentOS release 6.4 (Final) x86_64
C. Apps:
1. MySQL: mariadb-5.5.32-2.el6.x86_64
2. PHP: php53u-5.3.27-1.ius.el6.x86_64
3. Httpd: httpd-2.2.25-1.el6.x86_64
4. Lighttpd: --uninstalled--
5. Nginx: nginx-1.5.3-1.el6.x86_64
6. Qmail: qmail-toaster-1.03-1.3.27.mr.el6.x86_64
- with: courier-imap-toaster-4.1.2-1.3.14.mr.el6.x86_64
7. Dns: bind-9.9.3-4.P2.el6.x86_64
D. Php-type (for Httpd/proxy): php-fpm_event
E. Memory:
total used free shared buffers cached
Mem: 7868 1190 6677 0 39 512
-/+ buffers/cache: 638 7229
Swap: 7999 0 7999
-
Your server still using 'minimize ' memory. Better optimize to make memory usage around 50% total memory at idle time. It's better for page response.
-
Thank you, any chance you know how to covert this .htaccess to nginx in order to use it in home.nginx/conf/domains/mysite.com.conf
RewriteCond %{HTTP:CF-IPCountry} ^(GB|FR|IT|TR)$
RewriteRule ^(.*)$ /under/index.html [L]
-
Your server still using 'minimize ' memory. Better optimize to make memory usage around 50% total memory at idle time. It's better for page response.
I switched to apache for a while, htop tells me 1.1Gb used, while 'free -m' telss me 5.7Gb used. All is in idel with processor to 0.2% used. How to optimize it as you adviced ? Using Kloxo-MR 'Apache Memory Optimize' ? I did that but it comes back to '--none--' after update, is that normal ? How will I know what type of Apache Memory I use .
-
Have read 'message inbox' in 'webserver configs' for 'apache optimize'?.
-
you mean the message from the bottom 'Information: 'apache_optimize successfully updated for pserver-localhost' ?
-
PHP Branch - Branch-based Php version - Php-fpm for 'php52' may not work; test result with 'php -v' via ssh to find out error (usually incompatible modules)
- Better reboot after change, especially if using Lighttpd, Nginx or Apache with 'php-fpm' as 'php-type'
PHP Type - Process-based (httpd-prefork/-itk), thread-based (httpd-worker/-event) and secure environment (suphp/php-fpm/ruid2/itk/fcgid)
Apache Memory Optimize - Optimize memory usage - set half amount for nginx/lighttpd-proxy; select 'default' if select 'php-fpm' on 'Php Type'
MySQL Convert - MyISAM (less memory usage; save 100-200 MB) and InnoDB (higher performance)
Fix 'Ownership' And 'Permissions' - Prevent '500 Internal server error' on secure environment
* Add 'AddHandler application/x-httpd-php52 .php' in .htaccess for using php 5.2 on dual-php with php 5.3/5.4 as primary php
* When select suphp/suphp_worker/suphp_event and then select 'fix-ALL' to prevent '500 Internal server error'
-
I see. I switched back to ngnix. As I use php-fpm_event that means I should use 'Default' Apache Memory Optimize which I did. But the idle memory usage is the same 5.7Gb from total of 8Gb. What could be wrong, I really don't understand what is going on. 'htop' and 'free -m' screenshoot http://postimg.org/image/5k7e2g1ub/ (http://postimg.org/image/5k7e2g1ub/)
I don't know if is related to CSF but I installed CSF firewall recently and I receive around 200 alert mails/day from which around 60 mails/day with 'Suspicious File Alert' , for example :
''Time: Sat Aug 31 06:05:06 2013 +0300
File: /tmp/%%47/47A/47A5E89E%%header.htm.php
Reason: Script, file extension
Owner: apache:apache (48:48)
Action: No action taken''
''Time: Sat Aug 31 09:05:08 2013 +0300
File: /tmp/%%76/768/768F1015%%en_UK.txt%7CLogin.php''
''Time: Fri Aug 30 00:05:02 2013 +0300
File: /tmp/%%BE/BE1/BE16DC4F%%footer.htm.php''