Register FAQ/Rules Forum Spy Search Today's Posts Mark Forums Read

Welcome to the Mac Forums forums. Please read the FAQ if you have questions. Register to participate.

 
Go Back   Mac Forums > Special Interests > Web Design and Development
TouchArcade.com - iPhone Game Reviews and News

Reply
 
Thread Tools Search this Thread  
Old Jun 11, 2007, 01:32 PM   #1
cool11
macrumors 6502
 
Join Date: Sep 2006
Mamp - apache forces cpu 100% usage

I use mamp as web server in my mbp c2d.
The problem is that after some time of using, it starts to push the cpu usage to 95-98%!

I look at 'activity monitor' application of mac os x and I can see about 10 httpd processes!
Only 1 mysql process.

I have heard that mac os x has pre-installed apache. Is this the problem?

What do you suggest?
Is it normal to have 10 httpd processes? Is it the mac os x apache? Is it a bug of mamp?
How can I solve it?
cool11 is offline   Reply With Quote
Old Jun 11, 2007, 02:14 PM   #2
cool11
Thread Starter
macrumors 6502
 
Join Date: Sep 2006
I am working on it.
I just closed mamp. All httpd processes gone.

What is going on?
cool11 is offline   Reply With Quote
Old Jun 11, 2007, 08:59 PM   #3
ChrisA
macrumors 601
 
Join Date: Jan 2006
Location: Redondo Beach, California
Quote:
Originally Posted by cool11 View Post
I
I look at 'activity monitor' application of mac os x and I can see about 10 httpd processes!
There is a config line that controls how many httpd processes are created. It's in httpd.conf. "10" is a reasonable number for a medium sized server. 1 or 2 might be better for a low volume server. Having these already running avoids the time it takes to start a new process so Apache can handle a HTTP request without the startup delay.

Remember Mac OS X uses "copy on write" for process images so having 10 in memory does not take up much more room then having only 1 in memory. The same physical RAM is used in multiple processes.

Why the 100% CPU? Need more info.
ChrisA is online now   Reply With Quote
Old Jun 12, 2007, 04:11 AM   #4
cool11
Thread Starter
macrumors 6502
 
Join Date: Sep 2006
All I wanna do is test and run a site I design, offline. Sometimes I have safari, firefox, opera open simultaneously to test the site. Thats all. We don't speak about a real time server serving hundreds or thousand of users.
Mamp is well-known in mac web development world.

I would not have made this post if I did not heard my mbp having the fans fully working when I use mamp. I can also see the 2 cpu usage meters in the bar going to 100%. This is also checked with activity monitor.

All these httpd processes do a heavy task for mbp.

It is not logical. That should not happen, I suppose.

Just running mamp and the cpus pushed to 100% usage.

What else should I say?
cool11 is offline   Reply With Quote

Reply

Mac Forums > Special Interests > Web Design and Development

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 07:51 PM.

Mac News | Mac Rumors | iPhone Game Reviews | iPhone Apps

Powered by vBulletin® Version 3.6.10
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Copyright 2002-2009, MacRumors.com, LLC