LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-21-2017, 09:11 AM   #1
mahesh2150
LQ Newbie
 
Registered: Oct 2017
Posts: 4

Rep: Reputation: Disabled
How to optimize tcp/ip to receive more connection?


I have optimized nginx and php-fpm.
But still, website is taking time to load. Resources are almost free.

4 core - 8 threads.
32gb ram

I don't know how to optimized the settings in tcp/ip
Please guide

Thanks
 
Old 10-22-2017, 07:29 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,944

Rep: Reputation: 7027Reputation: 7027Reputation: 7027Reputation: 7027Reputation: 7027Reputation: 7027Reputation: 7027Reputation: 7027Reputation: 7027Reputation: 7027Reputation: 7027
Quote:
Originally Posted by mahesh2150 View Post
I have optimized nginx and php-fpm.
But still, website is taking time to load. Resources are almost free.

4 core - 8 threads.
32gb ram

I don't know how to optimized the settings in tcp/ip Please guide
Read the "Question Guidelines" link in my posting signature. You provide next to no useful details that would let anyone help you. Version/distro of Linux? Version of nginx? Your hardware: '4 core'...of what? Disk storage connected how, and how many disks? What is your website written in (PHP? Javascript heavy? ASPX? HTML5?) what data is it serving up (video/pictures/text/what???), over what speed link? ALL of these things factor into your website performance. And you also don't tell us what (if anything) you've done thus far.
 
Old 10-22-2017, 09:18 AM   #3
mahesh2150
LQ Newbie
 
Registered: Oct 2017
Posts: 4

Original Poster
Rep: Reputation: Disabled
Os : Centos 7
PHP script
Single Disc

I changed the settings in php-nginx to get more connection.

Code:
pool:                 www
process manager:      dynamic
start time:           17/Oct/2017:00:55:44 -0400
start since:          463187
accepted conn:        37113086
listen queue:         0
max listen queue:     0
listen queue len:     0
idle processes:       38
active processes:     6
total processes:      44
max active processes: 44
max children reached: 0
slow requests:        0
Code:
load average: 17.57, 13.90, 11.76
%Cpu(s): 74.3 us, 15.9 sy,  0.0 ni,  9.5 id,  0.0 wa,  0.0 hi,  0.3 si,  0.0 st
Code:
 1495 mysql     20   0 4793852 393256   9856 S  40.5  1.2   1813:27
I need to optimize MySQL and sysctl settings for stable server
Please guide
Let me know if you need more details.
The load is high
 
Old 10-22-2017, 11:15 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 23,944

Rep: Reputation: 7027Reputation: 7027Reputation: 7027Reputation: 7027Reputation: 7027Reputation: 7027Reputation: 7027Reputation: 7027Reputation: 7027Reputation: 7027Reputation: 7027
Quote:
Originally Posted by mahesh2150 View Post
Os : Centos 7
PHP script
Single Disc

I changed the settings in php-nginx to get more connection.
Code:
pool:                 www
process manager:      dynamic
start time:           17/Oct/2017:00:55:44 -0400
start since:          463187
accepted conn:        37113086
listen queue:         0
max listen queue:     0
listen queue len:     0
idle processes:       38
active processes:     6
total processes:      44
max active processes: 44
max children reached: 0
slow requests:        0
Code:
load average: 17.57, 13.90, 11.76
%Cpu(s): 74.3 us, 15.9 sy,  0.0 ni,  9.5 id,  0.0 wa,  0.0 hi,  0.3 si,  0.0 st
Code:
 1495 mysql     20   0 4793852 393256   9856 S  40.5  1.2   1813:27
I need to optimize MySQL and sysctl settings for stable server Please guide Let me know if you need more details. The load is high
Again, you are not providing the details you were asked to provide. A "PHP Script"?? Just one? And you now mention MySQL...great, so what version? Having one single disk for serving your web pages, database, and OS is going to be the bottleneck, no matter what you do.

How many users are you trying to host, and what are they doing??? There are still far too many variables to guess at.
 
Old 10-23-2017, 08:17 AM   #5
lazydog
Senior Member
 
Registered: Dec 2003
Location: The Key Stone State
Distribution: CentOS Sabayon and now Gentoo
Posts: 1,249
Blog Entries: 3

Rep: Reputation: 194Reputation: 194
First question is does this load fast when loaded directly on the server itself when others are complaining it is slow? If it does then the next thing to look at would be the internet connection, is there enough bandwidth? If the pipe is full you are going to have to free up the pipe or get a large one.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
namd [xxxx] TCP receive error: connection reset talat Linux - Server 2 12-01-2009 10:11 PM
SSH/HTTP (or any TCP connection) does not receive any response Gaargie Linux - Networking 1 04-09-2009 11:54 PM
How to optimize receiving in a TCP socket? minhsangniit Programming 2 03-12-2006 07:31 PM
TCP Receive bala_7272 Programming 6 08-12-2004 12:36 PM
receive widow for tcp/ip marksstroud Linux - Newbie 0 09-17-2001 12:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:18 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