Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

Extreme slow performance after changing machine ip

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
21 posts
  • Previous
  • 1
  • 2
  • 3
  • Next
tjebbeke
Collaborator
Posts: 783
Joined: Mon May 11, 2015 8:43 am
Contact:
Contact tjebbeke
Website

Os: CentOS 6x
Web: apache + nginx
Re: Extreme slow performance after changing machine ip
  • Quote

Post by tjebbeke » Fri May 22, 2015 4:48 pm

From my pc this request isn't slow. You can send me a PM with more information about your server.
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Extreme slow performance after changing machine ip
  • Quote

Post by skurudo » Sun May 24, 2015 9:38 pm

IP-change does not affect performance.
You're sure, problem not in host machine?
Top

CGeorges
Posts: 16
Joined: Thu May 21, 2015 9:52 pm

Re: Extreme slow performance after changing machine ip
  • Quote

Post by CGeorges » Mon May 25, 2015 10:25 am

http://screenshot.vodoosolutions.com/20 ... 5_1321.png

The server has 12GB Ram, MySQL uses InnoDb and has 6GB of ram dedicated.

PHP 5.4.41,
5.5.43-log MySQL Community Server (GPL) by Remi
Apache/2.2.15 (Unix)
nginx/1.8.0

Running the same queries in phpmyadmin run in a matter of ms, while the app (it doesn't do any processing except retrieving from DB and converting 9 results in JSON) you can see in the screenshot above takes 1 minute to complete.
Top

tjebbeke
Collaborator
Posts: 783
Joined: Mon May 11, 2015 8:43 am
Contact:
Contact tjebbeke
Website

Os: CentOS 6x
Web: apache + nginx
Re: Extreme slow performance after changing machine ip
  • Quote

Post by tjebbeke » Mon May 25, 2015 10:42 am

CGeorges wrote:http://screenshot.vodoosolutions.com/20 ... 5_1321.png

The server has 12GB Ram, MySQL uses InnoDb and has 6GB of ram dedicated.

PHP 5.4.41,
5.5.43-log MySQL Community Server (GPL) by Remi
Apache/2.2.15 (Unix)
nginx/1.8.0

Running the same queries in phpmyadmin run in a matter of ms, while the app (it doesn't do any processing except retrieving from DB and converting 9 results in JSON) you can see in the screenshot above takes 1 minute to complete.
Is it just this request that is slow? Or is everything slow?

Can you provide the link so we can look it's not a local problem. (maybe in PM)
Top

CGeorges
Posts: 16
Joined: Thu May 21, 2015 9:52 pm

Re: Extreme slow performance after changing machine ip
  • Quote

Post by CGeorges » Mon May 25, 2015 10:53 am

tjebbeke wrote: Is it just this request that is slow? Or is everything slow?

Can you provide the link so we can look it's not a local problem. (maybe in PM)
That and a few other pages that are more query intensive, although I added timers in the code and the results are in microseconds:

0.0028798580169678 0.0036330223083496 0.0015079975128174
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: Extreme slow performance after changing machine ip
  • Quote

Post by skurudo » Mon May 25, 2015 11:00 am

CGeorges wrote:0.0028798580169678 0.0036330223083496 0.0015079975128174
It's pretty fast, what do you think?
Top

CGeorges
Posts: 16
Joined: Thu May 21, 2015 9:52 pm

Re: Extreme slow performance after changing machine ip
  • Quote

Post by CGeorges » Mon May 25, 2015 11:10 am

It is. But the browser receives the response in one minute.
Top

CGeorges
Posts: 16
Joined: Thu May 21, 2015 9:52 pm

Re: Extreme slow performance after changing machine ip
  • Quote

Post by CGeorges » Mon May 25, 2015 11:14 am

I'm thinking that maybe httpd or php stalls the response because of buffer being larger. I'm not sure, I'm really out of ideas of how to fix this or on to what to look into next.
Top

CGeorges
Posts: 16
Joined: Thu May 21, 2015 9:52 pm

Re: Extreme slow performance after changing machine ip
  • Quote

Post by CGeorges » Mon May 25, 2015 12:05 pm

Running strace shows that httpd hangs a lot for a second, but multiple times:
7013 1.001157 wait4(-1, 0x7fffed2d7b6c, WNOHANG|WSTOPPED, NULL) = 0
7013 0.000063 select(0, NULL, NULL, NULL, {1, 0}) = 0 (Timeout)
7013 0.111947 wait4(-1, 0x7fffed2d7b6c, WNOHANG|WSTOPPED, NULL) = 0
7013 0.000059 select(0, NULL, NULL, NULL, {1, 0}) = 0 (Timeout)
7013 1.001156 wait4(-1, 0x7fffed2d7b6c, WNOHANG|WSTOPPED, NULL) = 0
7013 0.000065 select(0, NULL, NULL, NULL, {1, 0}) = 0 (Timeout)
7013 1.001191 wait4(-1, 0x7fffed2d7b6c, WNOHANG|WSTOPPED, NULL) = 0
7013 0.000065 select(0, NULL, NULL, NULL, {1, 0}) = 0 (Timeout)
7013 0.112206 wait4(-1, 0x7fffed2d7b6c, WNOHANG|WSTOPPED, NULL) = 0
7013 0.000061 select(0, NULL, NULL, NULL, {1, 0}) = 0 (Timeout)
7013 1.001131 wait4(-1, 0x7fffed2d7b6c, WNOHANG|WSTOPPED, NULL) = 0
7013 0.000050 select(0, NULL, NULL, NULL, {1, 0}) = 0 (Timeout)
7013 1.001178 wait4(-1, 0x7fffed2d7b6c, WNOHANG|WSTOPPED, NULL) = 0
7013 0.000053 select(0, NULL, NULL, NULL, {1, 0}) = 0 (Timeout)
7013 0.110492 wait4(-1, 0x7fffed2d7b6c, WNOHANG|WSTOPPED, NULL) = 0
7013 0.000061 select(0, NULL, NULL, NULL, {1, 0}) = 0 (Timeout)
7013 1.001123 wait4(-1, 0x7fffed2d7b6c, WNOHANG|WSTOPPED, NULL) = 0
7013 0.000061 select(0, NULL, NULL, NULL, {1, 0}) = 0 (Timeout)
7013 0.829601 wait4(-1, 0x7fffed2d7b6c, WNOHANG|WSTOPPED, NULL) = 0
7013 0.000062 select(0, NULL, NULL, NULL, {1, 0}) = 0 (Timeout)
7013 0.110629 wait4(-1, 0x7fffed2d7b6c, WNOHANG|WSTOPPED, NULL) = 0
7013 0.000062 select(0, NULL, NULL, NULL, {1, 0}) = 0 (Timeout)
7013 1.001115 wait4(-1, 0x7fffed2d7b6c, WNOHANG|WSTOPPED, NULL) = 0
7013 0.000061 select(0, NULL, NULL, NULL, {1, 0}) = 0 (Timeout)
7013 1.001167 wait4(-1, 0x7fffed2d7b6c, WNOHANG|WSTOPPED, NULL) = 0
7013 0.000074 select(0, NULL, NULL, NULL, {1, 0}) = 0 (Timeout)
7013 0.110453 wait4(-1, 0x7fffed2d7b6c, WNOHANG|WSTOPPED, NULL) = 0
7013 0.000061 select(0, NULL, NULL, NULL, {1, 0}) = 0 (Timeout)
7013 1.001122 wait4(-1, 0x7fffed2d7b6c, WNOHANG|WSTOPPED, NULL) = 0
Top

CGeorges
Posts: 16
Joined: Thu May 21, 2015 9:52 pm

Re: Extreme slow performance after changing machine ip
  • Quote

Post by CGeorges » Mon May 25, 2015 8:01 pm

Turns out httpd hanged because it was trying to connect to MySQL through ipv6 even if my script stated to use ipv4. I disabled ipv6 on the server and the issue had dissipated.
Top


Post Reply
  • Print view

21 posts
  • Previous
  • 1
  • 2
  • 3
  • Next

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password