LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 01-09-2013, 05:06 PM   #1
fireballsp
LQ Newbie
 
Registered: Jun 2012
Location: Sao Paulo - BR
Distribution: CentOS
Posts: 2

Rep: Reputation: 0
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!
 
Old 01-10-2013, 11:42 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by fireballsp View Post
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.

Last edited by unSpawn; 01-10-2013 at 11:44 AM.
 
Old 01-12-2013, 10:22 AM   #3
fireballsp
LQ Newbie
 
Registered: Jun 2012
Location: Sao Paulo - BR
Distribution: CentOS
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by unSpawn View Post
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!
 
  


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
[SOLVED] Apache with VirtualHosts how to use lpallard Linux - Server 18 02-24-2013 08:51 PM
apache and cgi VirtualHosts gabsik Linux - Server 1 10-23-2008 04:20 AM
Dynamically virtualhosts under Apache Chrizzieej Linux - Server 2 03-23-2008 03:17 AM
Apache Virtualhosts and subdomains arew264 Linux - Networking 1 01-03-2006 08:53 AM
VirtualHosts & apache 2.0.48 TiCkO Linux - Networking 2 07-13-2004 03:20 PM

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

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