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-27, 14:28:59

Author Topic: Disk Usage  (Read 6832 times)

0 Members and 1 Guest are viewing this topic.

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Disk Usage
« on: 2016-08-08, 18:10:48 »
I don't know what happen but I noticed my Disk Usage just went way up. I almost max out 50G. So I checked and it turnout that over 27G are in tmp/nginx/

What happened? And is it safe to delete /tmp/nginx/?

I don't know if it has anything to do with me changing and following this:

Quote
If using proxy (example: nginx-proxy), try:

1. Install 'multiple php' in 'webserver configure'
2. Select 'php54m' instead 'php branch' for 'php used' in 'webserver configure'
3. Copy/rename apc.nonini to apc_used.ini and memcached.nonini to memcached_used.ini in '/opt/php54m/etc/php.d'
4. install google pagespeed with 'yum install mod-pagespeed-stable --enablerepo=*page* -y'
5. Restart web with 'sh /script/restart-web -y'.

I was running Kloxo-MR 7.0.0.b-2016080201 when I made that changes 2 and 3. 1 and 4 already there.

I am now running Kloxo-MR 7.0.0.b-2016080801.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Disk Usage
« Reply #1 on: 2016-08-08, 18:14:44 »
Safe to delete. Just restart with 'sh /script/restart-web -y' after.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: Disk Usage
« Reply #2 on: 2016-08-08, 18:40:43 »
What causes it? And is it normal?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Disk Usage
« Reply #3 on: 2016-08-08, 18:54:49 »
Temporal upload files also using this path.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: Disk Usage
« Reply #4 on: 2016-08-09, 01:19:06 »
Do I have to manually delete these every times?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Disk Usage
« Reply #5 on: 2016-08-09, 03:23:50 »
Do I have to manually delete these every times?
Yes, but better per-month only.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: Disk Usage
« Reply #6 on: 2016-08-09, 16:53:35 »
Looks like per month is not going to workout. It filled up within a day. I don't get it. Plus, I noticed that my memory is maxing out too. And it's mostly cache that eating up the memory. Again, do you think it has anything to do with these.

Quote
If using proxy (example: nginx-proxy), try:

1. Install 'multiple php' in 'webserver configure'
2. Select 'php54m' instead 'php branch' for 'php used' in 'webserver configure'
3. Copy/rename apc.nonini to apc_used.ini and memcached.nonini to memcached_used.ini in '/opt/php54m/etc/php.d'
4. install google pagespeed with 'yum install mod-pagespeed-stable --enablerepo=*page* -y'
5. Restart web with 'sh /script/restart-web -y'.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Disk Usage
« Reply #7 on: 2016-08-09, 17:16:47 »
It's issue related to nginx itself. No matter with delete temp files everyday but better restart-web after delete.

Try add cron with 'rm -rf /tmp/nginx/*; sh /script/restart-web -y'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: Disk Usage
« Reply #8 on: 2016-08-09, 17:55:40 »
I never has this problem before I made the changes that was mentioned. This is weird.

This is the way it supposed to be or is this something new? Again, I never has this issue before.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Disk Usage
« Reply #9 on: 2016-08-09, 19:34:18 »
Check your nginx log in 'log manager' to know why.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: Disk Usage
« Reply #10 on: 2016-08-10, 10:43:10 »
Check your nginx log in 'log manager' to know why.
I've checked but I don't know what I'm looking at.

Quote
59   *   *   *   *   rm -rf /tmp/nginx/*; sh /script/restart-web -y
I've added that to cron but nothing happened. Did I do it right?

My "Total Mem" is very high, almost max out. But most of it do to "cached". What can I do?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Disk Usage
« Reply #11 on: 2016-08-10, 10:53:50 »
My "Total Mem" is very high, almost max out. But most of it do to "cached". What can I do?
It's different issue. Cache in nginx is different thing with cache in memory. Yes, certain nginx cache exists in memory.

If you don't use OpenVZ, you can use 'sh /script/clearcache3' for clean up memory for buffers and cached.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: Disk Usage
« Reply #12 on: 2016-08-10, 15:50:44 »
Quote
If using proxy (example: nginx-proxy), try:

1. Install 'multiple php' in 'webserver configure'
2. Select 'php54m' instead 'php branch' for 'php used' in 'webserver configure'
3. Copy/rename apc.nonini to apc_used.ini and memcached.nonini to memcached_used.ini in '/opt/php54m/etc/php.d'
4. install google pagespeed with 'yum install mod-pagespeed-stable --enablerepo=*page* -y'
5. Restart web with 'sh /script/restart-web -y'.

I want to make sure I understood this right. So I should have apc.nonini, apc_used.ini, memcached.nonini and memcached_used.ini in '/opt/php54m/etc/php.d or just apc_used.ini and memcached_used.ini in '/opt/php54m/etc/php.d?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Disk Usage
« Reply #13 on: 2016-08-10, 16:03:26 »
Quote
If using proxy (example: nginx-proxy), try:

1. Install 'multiple php' in 'webserver configure'
2. Select 'php54m' instead 'php branch' for 'php used' in 'webserver configure'
3. Copy/rename apc.nonini to apc_used.ini and memcached.nonini to memcached_used.ini in '/opt/php54m/etc/php.d'
4. install google pagespeed with 'yum install mod-pagespeed-stable --enablerepo=*page* -y'
5. Restart web with 'sh /script/restart-web -y'.

I want to make sure I understood this right. So I should have apc.nonini, apc_used.ini, memcached.nonini and memcached_used.ini in '/opt/php54m/etc/php.d or just apc_used.ini and memcached_used.ini in '/opt/php54m/etc/php.d?
Update your Kloxo-MR and then you can enable/disable php module via 'Php Module Status'.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline LotsOfQ

  • Master
  • **
  • Posts: 462
  • Karma: +1/-0
    • View Profile
Re: Disk Usage
« Reply #14 on: 2016-08-10, 16:53:00 »
There are memcache.nonini and memcached.nonini. enable both?

 


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

Page created in 0.046 seconds with 18 queries.

web stats analysis