Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


ESX 5.1:  Apache is slow after P2V

Posted on 2013-11-08
Medium Priority
Last Modified: 2013-12-30
Hi All,

I virtualised one of our Windows 2003 server last week and the OS and applications are really sluggish. e.g the start button isnt instant, there a fraction of a second delay.

This would normally be ok, however it's running Apache Tomcat.  The first apache.exe respons really quickly, but the second is really slow (2 seconds) at least double if not tripple it was before the P2V

Any suggestions on what I can check?
Question by:detox1978
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 4
LVL 123
ID: 39634514
Have you completed ALL post P2V checks, e.g. remove physical server software, removed all device drivers and software which is hidden?

how many vCPUs are now assigned to this VM, 2 or 4?

What is the memory?

see my EE Article

HOW TO:  P2V, V2V for FREE - VMware vCenter Converter Standalone 5.5

Check Task Manager, is CPU at 100%, any rouge processes e.g. WMI?

Author Comment

ID: 39634523
>> Have you completed ALL post P2V checks, e.g. remove physical server software, removed all device drivers and software which is hidden?

I think so, but will double check

>> how many vCPUs are now assigned to this VM, 2 or 4?

>>What is the memory?
4GB, with the PAE boot.ini switch

Author Comment

ID: 39681783
I reduced the CPU count to 2, but that's not helped.

It looks like parent Apache.exe is running ok, but the sub apatch.exe is really slow (3 seconds), once it responds the page loads really fast.

Any ideas?
Put Machine Learning to Work--Protect Your Clients

Machine learning means Smarter Cybersecurity™ Solutions.
As technology continues to advance, managing and analyzing massive data sets just can’t be accomplished by humans alone. It requires huge amounts of memory and storage, as well as the high-speed power of the cloud.

LVL 123
ID: 39681888
what are the overall CPU resources running like?

Author Comment

ID: 39682112
It was running at 33% with 4 CPU's so I reduced it to 2 CPU's
LVL 123
ID: 39682252
Any processes running high?

Author Comment

ID: 39682333
CPU load hasnt been too bad

Last 24 Hours
Last 7 days

Author Comment

ID: 39682345
I dont know too much about Apache.exe, but there's two of them.  It looks like the first redirects to the second.  Thge first loads instantly, however the second seem to hang for 3 seconds, then loads instantly.

The website that's running on Apache connects to MySQL (also on the same VM.

The VM is running on local disk and read/write speeds seem ok.

Author Comment

ID: 39682432
I found this post on another forum

After much research, I may have found the solution. If I'm correct, it was an apache config problem. Specifically, the "ThreadsPerChild" directive. See... http://httpd.apache.org/docs/2.2/platform/windows.html

Because Apache for Windows is multithreaded, it does not use a separate process for each request, as Apache can on Unix. Instead there are usually only two Apache processes running: a parent process, and a child which handles the requests. Within the child process each request is handled by a separate thread.

ThreadsPerChild: This directive is new. It tells the server how many threads it should use. This is the maximum number of connections the server can handle at once, so be sure to set this number high enough for your site if you get a lot of hits. The recommended default is ThreadsPerChild 150, but this must be adjusted to reflect the greatest anticipated number of simultaneous connections to accept.

Turns out, this directive was not set at all in my config and thus defaulted to 64. I confirmed this by viewing the number of threads for the second httpd.exe process in task manager. When the server was hitting more than 64 connections, the excess requests were simply having to wait for a thread to open up. I added ThreadsPerChild 150 in my httpd.conf.

Additionally, I enabled the apache status module http://httpd.apache.org/docs/2.2/mod/mod_status.html

...which, among other things, allows one[b] to see the total number of active request[/b] on the server at any given moment. Right away, I could see spikes of up to 80 active request. Time will tell, but I'm confident that this will resolve my issue. So far, 30 hours without a hiccup.

Open in new window

The ThreadsPerChild was set to 250, so i've reduced it to 150.

I dont know how to  see the total number of active request.  I uncommented the status module and restarted the server.

Any ideas?

Author Comment

ID: 39682650
I've managed to get the server status page working.

I might be reading this wrong, but the status page suggests the web server is responding in half a second.

Current Time: Thursday, 28-Nov-2013 03:18:13 GMT Standard Time
Restart Time: Thursday, 28-Nov-2013 03:15:36 GMT Standard Time
Parent Server Generation: 0
Server uptime: 2 minutes 37 seconds
Total accesses: 70 - Total Traffic: 76 kB
.446 requests/sec - 495 B/second - 1111 B/request
4 requests currently being processed, 146 idle workers

Open in new window

Have I read this correct?

If so, what could be causing the delay?

Author Comment

ID: 39682653
Is there a list of all the post P2V tasks I need to complete?

This server is around 7 years old, so there's a good chance it's good chance it's full of legacy drivers etc...
LVL 123

Accepted Solution

Andrew Hancock (VMware vExpert / EE MVE^2) earned 2000 total points
ID: 39682948
if you follow my EE Article, and look at the Articles Linked...

but roughly this...

1. installing VMware Tools (reboot).
2. adding VMXNET3 interface
3. remove E1000 interface.
4. Adding IP Information, DNS, WINs, etc
5. Remove all Hidden Drivers and Devices - Device Management
6. Remove all physical related software if not already done
7. Reboot
8. Set Services to Automatic....final checks before go live...and reboot VM
9. Finally your Done.

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When converting a physical machine to a virtual machine using VMware vCenter Converter Standalone or vCenter Converter Enterprise, if an adapter type is not selected during the initial customization the resulting virtual machine may contain an IDE d…
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
Teach the user how to configure vSphere clusters to support the VMware FT feature Open vSphere Web Client: Verify vSphere HA is enabled: Verify netowrking for vMotion and FT Logging is in place or create it: Turn On FT for a virtual machine: Verify …
This Micro Tutorial walks you through using a remote console to access a server and install ESXi 5.1. This example is showing remote access and installation using a Dell server. The hypervisor is the very first component of your virtual infrastructu…

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question