Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-04-28, 03:21:43

Author Topic: Server Idle memory usage to high ?  (Read 4818 times)

0 Members and 1 Guest are viewing this topic.

Offline crossing

  • Senior Member
  • *
  • Posts: 336
  • Karma: +0/-0
    • View Profile
Server Idle memory usage to high ?
« 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/
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Kloxo-MR -> Great Panel ->  Great person behind it ->  Mustafa

Offline imperio

  • Valuable Member
  • *
  • Posts: 80
  • Karma: +0/-0
    • View Profile
Re: Server Idle memory usage to high ?
« Reply #1 on: 2013-08-26, 17:19:18 »
crossing run this script
Code: [Select]
cat /proc/meminfoand show results
« Last Edit: 1970-01-01, 01:00:00 by Guest »
I like the KLOXO-MR

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Server Idle memory usage to high ?
« Reply #2 on: 2013-08-26, 17:46:39 »
Inform here 'free -m' and 'sh /script/info'.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline crossing

  • Senior Member
  • *
  • Posts: 336
  • Karma: +0/-0
    • View Profile
Re: Server Idle memory usage to high ?
« Reply #3 on: 2013-08-26, 17:59:31 »
Quote from: "imperio"
crossing run this script
Code: [Select]
cat /proc/meminfoand show results

Here they are :

Code: [Select]
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

Quote from: "MRatWork"
Inform here 'free -m' and 'sh /script/info'.


Here it is :

Code: [Select]
free -m
             total       used       free     shared    buffers     cached
Mem:          7868       1065       6802          0         38        408
-/+ buffers/cache:        618       7249
Swap:         7999          0       7999

Code: [Select]
sh /script/info
sh: /script/info: No such file or directory
Code: [Select]
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
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Kloxo-MR -> Great Panel ->  Great person behind it ->  Mustafa

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Server Idle memory usage to high ?
« Reply #4 on: 2013-08-26, 19:05:15 »
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.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline crossing

  • Senior Member
  • *
  • Posts: 336
  • Karma: +0/-0
    • View Profile
Re: Server Idle memory usage to high ?
« Reply #5 on: 2013-08-26, 19:35:01 »
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

Code: [Select]
RewriteCond %{HTTP:CF-IPCountry} ^(GB|FR|IT|TR)$
RewriteRule ^(.*)$ /under/index.html [L]
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Kloxo-MR -> Great Panel ->  Great person behind it ->  Mustafa

Offline crossing

  • Senior Member
  • *
  • Posts: 336
  • Karma: +0/-0
    • View Profile
Re: Server Idle memory usage to high ?
« Reply #6 on: 2013-08-30, 14:01:02 »
Quote from: "MRatWork"
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 .
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Kloxo-MR -> Great Panel ->  Great person behind it ->  Mustafa

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Server Idle memory usage to high ?
« Reply #7 on: 2013-08-30, 15:59:30 »
Have read 'message inbox' in 'webserver configs' for 'apache optimize'?.
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline crossing

  • Senior Member
  • *
  • Posts: 336
  • Karma: +0/-0
    • View Profile
Re: Server Idle memory usage to high ?
« Reply #8 on: 2013-08-30, 16:12:33 »
you mean the message from the bottom 'Information: 'apache_optimize successfully updated for pserver-localhost' ?
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Kloxo-MR -> Great Panel ->  Great person behind it ->  Mustafa

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Server Idle memory usage to high ?
« Reply #9 on: 2013-08-30, 16:30:41 »
Quote
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'
« Last Edit: 1970-01-01, 01:00:00 by Guest »
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline crossing

  • Senior Member
  • *
  • Posts: 336
  • Karma: +0/-0
    • View Profile
Re: Server Idle memory usage to high ?
« Reply #10 on: 2013-08-31, 12:58:26 »
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/

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''
« Last Edit: 1970-01-01, 01:00:00 by Guest »
Kloxo-MR -> Great Panel ->  Great person behind it ->  Mustafa

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix
Click Here

Page created in 0.07 seconds with 19 queries.

web stats analysis