LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Apache and Virtualhosts slowness (https://www.linuxquestions.org/questions/linux-server-73/apache-and-virtualhosts-slowness-4175444867/)

fireballsp 01-09-2013 05:06 PM

Apache and Virtualhosts slowness
 
Hi Guys,

I need a help...

I have a CentOS server running Apache 2 with 3 virtualhosts configured, all virtualhosts runs the same website/application and have the same configuration on httpd.conf, just changing the servername and path for files.

But, from the 3 virtualhosts, just the most recent configured is experiencing a slowness, seems like this virtualhost loads an Apache instance and doesn't close it when isn't more necessary.

And when this happens, the site goes down. The site only returns on-line when I do a restart in Apache, or kill the httpd instances until match which maintains this virtualhost.

So, anyone have a clue about this? What I can do to solve this?

Thanks so much!

unSpawn 01-10-2013 11:42 AM

Quote:

Originally Posted by fireballsp (Post 4866507)
from the 3 virtualhosts, just the most recent configured is experiencing a slowness, seems like this virtualhost loads an Apache instance and doesn't close it when isn't more necessary. And when this happens, the site goes down.

That raises a lot of questions:
- What is the application (is it up to date BTW?) and what are the requirements the vendor lists?
- What are the systems specs and does it show (excessive?) resource consumption over time (Atop, Collectl, sar)?
- What is "slow"? How does Apache show resource consumption over time (Apache Top, MySQL Top)?
- What do system and damon logs say in the time leading up to being "slow"?
- In which way are your system, web server, database and application configuration different from the defaults? Or phrased differently: what performance tweaks have you already tried?

*Please note these questions don't encompass everything plus the kitchen sink so you're invited to actively explore your system and post any other seemingly related information too.

fireballsp 01-12-2013 10:22 AM

Quote:

Originally Posted by unSpawn (Post 4867193)
That raises a lot of questions:
- What is the application (is it up to date BTW?) and what are the requirements the vendor lists?
- What are the systems specs and does it show (excessive?) resource consumption over time (Atop, Collectl, sar)?
- What is "slow"? How does Apache show resource consumption over time (Apache Top, MySQL Top)?
- What do system and damon logs say in the time leading up to being "slow"?
- In which way are your system, web server, database and application configuration different from the defaults? Or phrased differently: what performance tweaks have you already tried?

*Please note these questions don't encompass everything plus the kitchen sink so you're invited to actively explore your system and post any other seemingly related information too.

Hi unSpawn,

I'm sending the replies of your questions and more information.

- The application isn't up to date we are developing the new version soon. And the server has available resources.

- We are using Cacti to monitor the server and there is no high usage of memory and CPU.

- The first page is a login page, which uses only some php includes to create the login page. Nothing about DB connections or something else and etc.

- The same system runs in all Virtual Hosts, first and second virtual hosts does not affected this kind of slow. For Example, if I open the page now, I can login and use the system. But if I try to make the same procedure in 30 minutes, the login page simply does show to me. Is something like a "render" issue, which doesn't happens with the other virtual hosts.

- There is nothing being generated in the logs. When this happens, the CPU and Memory usage still are low.

- For while I didn't made any changes in Apache to solve this, because I don't know too much of apache tunning.

Thanks a lot for the help!


All times are GMT -5. The time now is 02:00 AM.