LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-22-2016, 12:33 PM   #1
Hellblaze
LQ Newbie
 
Registered: Apr 2016
Posts: 11

Rep: Reputation: Disabled
Nginx utilising Ram every Second?


Hello guys
I was using apache from last 5 years. So i never had problem for any webserver configuration. Recentaly i tried to use Nginx. Though i love its features but i came across strange problem. My Server ram usgae was increasing every second and Cache was also increasing.
Please guide me how to avoid this. This is the first time i am using Nginx For my download server. My current server on which Nginx is installed is Debian 8, 8 gb ram, and quad core processor.
Plese look into attachment too.
Attached Thumbnails
Click image for larger version

Name:	problem.PNG
Views:	24
Size:	31.8 KB
ID:	22826  
 
Old 08-22-2016, 06:47 PM   #2
24x7servermanagement
Member
 
Registered: Jul 2016
Location: India
Distribution: CentOS, Redhat, Ubuntu and Debian
Posts: 57

Rep: Reputation: Disabled
Pure static page transfer should take very little for nginx. But if you are running something else with huge memory usage it may require more.

You should avoid running too much concurrent php sessions and optimize the nignx for better performance.

Very good article to implement for optimization of Nginx

https://www.linode.com/docs/websites...ed-performance

Also Consider to read

http://serverfault.com/questions/182...ontent-serving
 
Old 08-23-2016, 04:09 AM   #3
Hellblaze
LQ Newbie
 
Registered: Apr 2016
Posts: 11

Original Poster
Rep: Reputation: Disabled
Sir with 2 gb ram only i can use whole day without any problem with apache server. But with nginx its really difficult
 
Old 08-24-2016, 10:10 AM   #4
24x7servermanagement
Member
 
Registered: Jul 2016
Location: India
Distribution: CentOS, Redhat, Ubuntu and Debian
Posts: 57

Rep: Reputation: Disabled
Did you optimize the Nginx? If you want lots of free RAM then use disk cache : Guide


"However, nginx does not support asynchronous disk IO on Linux (because async disk IO on Linux is basically horribly broken by design). So you will have to run many nginx worker processes, as every disk read could potentially block a whole worker process. If you're using FreeBSD, this isn't a problem, and nginx will work wonders with asynchronous disk and network IO. But you might want to stick with Apache if you're using Linux for this project."

Refer : http://serverfault.com/questions/182...ontent-serving
 
Old 08-24-2016, 11:04 AM   #5
Hellblaze
LQ Newbie
 
Registered: Apr 2016
Posts: 11

Original Poster
Rep: Reputation: Disabled
thanks a lot sir i am fed up with nginx . Moving to Apache again now.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NGINX + nginx-rtmp-module + HLS + OBS Manoel Júnior Linux - Server 0 08-10-2016 05:45 AM
utilising the 3D potential of my ATI graphics cards lochewood Linux - Newbie 0 09-07-2012 05:54 PM
NGINX with PHP-FPM vis NGINX with Spawn-FCGI WhisperiN Linux - Server 1 03-15-2011 06:39 PM
Utilising two ADSL connections - Debian Router kwiksand Linux - Networking 3 12-15-2005 01:34 AM
Utilising spare pc suggestions ninadb Linux - General 1 12-30-2004 08:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration