Apache makes Mac Mini lag

Hey guys,
I was suffering from weird lag on my week-old Mac Mini, which I'm writing this message on. After days of researching turned out that Apache was causing it. No specific app takes a lot of CPU at the time the lag appears, nor is the full RAM used. I'm talking about app-wide lag: the whole system lags, a lot.
I simply found it out by closing everything, and one by one starting the different apps. The lag started immediatly after launching Apache via MAMP and stopped right when I stopped it. Same with XAMPP and without using any GUI (the pre-built Apache).
Any idea how I could fix this by myself? I am *not* looking forward to sending the machine to be fixed, as it is my primary work machine. I guess the Apache should be re-installed, but I'm completely new to compiling stuff on Mac.
I need Apache so I can develop on localhost. I'm a developer just moved to OSX from Windows.
Any help is appreciated! I'm willing to give complementary details, but I need directions to get them.
Martti Laine

This is probably just a software problem.
Start with the basics: verify the disk and repair permissions (using Disk Utility).
OS X has a version of Apache built-in. You can activate it by turning on Web Sharing in System Preferences. Try this and see if it lags. You can activate PHP with a few simple Terminal commands. This may be all you need.
If you need mySQL and more control over your environment, then MAMP is a better solution (I've never used XAMPP so I can't compare the 2). Try reinstalling it and repairing permissions again.
You can also use Activity Monitor to see what processes are hogging resources, and Console to see any other problems. I wouldn't be surprised to see some timeouts. If this doesn't fix your problem, check the MAMP forum with the data you've acquired.
I use MAMP on a Mac Pro with no noticeable lags.

Similar Messages

  • Mac Mini lagging after upgrading to Mavericks

    Upgraded Mac mini to Mavericks.  System before was running great with no lag time and fast with the internet along with different applications, email, uploading photos, no problem.  After upgrading to Mavericks noticed lag times in logging into different applications, browsers, email and definitely uploading photos.  Did a speed check on four different sites and all were over the 15mps up and 1 down with my internet provider.  Before I had 4 up and 1 down with my internet provider before provider upgraded everyone to the 15 up and 1 down, it was fast so no problems before.  Any suggestions before I drive to Des Moines for a Genius bar appointment?  Thanks much appreciated.

    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    The title of the Console window should be All Messages. If it isn't, select
              SYSTEM LOG QUERIES ▹ All Messages
    from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar at the top of the screen. Click the Clear Display icon in the toolbar. Then take one of the actions that you're having trouble with. Select any messages that appear in the Console window. Copy them to the Clipboard by pressing the key combination command-C. Paste into a reply to this message by pressing command-V.
    The log contains a vast amount of information, almost all of which is irrelevant to solving any particular problem. When posting a log extract, be selective. A few dozen lines are almost always more than enough.
    Please don't indiscriminately dump thousands of lines from the log into this discussion.
    Please don't post screenshots of log messages—post the text.
    Some private information, such as your name, may appear in the log. Anonymize before posting.

  • How to make Mac Mini (Early 2009) sleep in Lion?

    After upgrading to Lion, my Mac Mini (Early 2009) stopped going to sleep from the Apple menu or from the keyboard. The problem has persisted with all point releases of Lion. The computer went to sleep with the same peripherals just fine under Snow Leopard.
    The display goes to sleep but the computer itself neither suspends nor hibernates. The power light is lit and doesn't pulsate. Measuring how many watts the device draws from the power socket shows that it's not sleeping. It wakes up so quickly that it must be only the display sleeping.
    Console log shows nothing when trying to sleep.
    Changing the hibernate mode from the default 3 to 25 makes no difference. Running the PleaseSleep app make no difference.
    How to put Mac Mini (Early 2009) to sleep (preferably hibernation--not just suspension) under Lion?

    Hello,
    Open console in Applications>Utilities, check the system log for the date/time of the last problem  & the Startup right after that for clues.
    One way to test is to Safe Boot from the HD, (holding Shift key down at bootup), run Disk Utility in Applications>Utilities, then highlight your drive, click on Repair Permissions, Test for problem in Safe Mode...
    PS. Safe boot may stay on the gray radian for a long time, let it go, it's trying to repair the Hard Drive
    Reboot, test again.
    If it only does it in Regular Boot, then it could be some hardware problem like Video card, (Quartz is turned off in Safe Mode), or Airport, or some USB or Firewire device, or 3rd party add-on, Check System Preferences>Accounts (Users & Groups in later OSX versions)>Login Items window to see if it or something relevant is listed.
    Check the System Preferences>Other Row, for 3rd party Pref Panes.
    Also look in these if they exist, some are invisible...
    /private/var/run/StartupItems
    /Library/StartupItems
    /System/Library/StartupItems
    /System/Library/LaunchDaemons
    /Library/LaunchDaemons

  • Updates makes Mac Mini slow

    Hello,
    After I installed the Sept. 15th updates, and the new itunes 8 updates, my mini is slow to restart. it takes almost 5 mins to restart. 1st comes a grey screen, then a light blue screen, and just sits there before the login screen finally comes up, i can walk away and do some stuff and walk back to the mini, then it would be at the login screen. This is one reason why i went with a Mac, since I am sick of waiting for winblows to boot.
    Also, the itunes 8 sometimes will not respond, i click on it in the dock, and it will not open , i check the activity monitor and it will let me force quit, but the application still has the little blue light under it on the dock. If i right click on it it says: application is not responsive", i can click force quit all day till i'm blue in the face, but only a restart will fix it. But then i have to go through the long restart process. Those are the only 2 issues i have, everything else works fine. I'm still new to the Mac world, so I am wondering how to get this fixed.

    Neither of the issues you are describing here are common ones, so while they are frustrating, particularly having come from a Windows system in the hope of avoiding such problems, they can be resolved!
    In themselves, it's very rare that updates cause these kind of issues, and having reviewed the comments made after the security and iTunes updates, I don't think either of these is responsible for the problems you have - at least not directly. What is more likely is that the updates have either not correctly installed, or that one or other has brought an existing problem to the surface.
    The first thing I would do in terms of the slow bootup is to check that you have the internal drive selected in the Startup Disk preference pane. If it is not selected, what will typically happen is that the system will pause at startup, and search all available sources for a suitable boot volume, including interrogating any and all network connections, even though the internal drive is an obvious candidate. Eventually, when it can only find the internal drive, it selects it and boots. Open system preferences (the gear-cog icon in the dock or via the Apple menu) and select Startup Disk. Click the internal drive icon, and then restart.
    If that doesn't help, the next thing I would do in this situation is a bit of common housekeeping. This isn't something Macs need very often, but when things go wrong it can be useful in order to remove some possible causes and also ensure the system is nice and clean! Download a copy of YASU from http://jimmitchelldesign.com/projects/yasu/ and set it to perform all tasks. Don't run any other application while YASU is running, and let the system reboot when it's done. There are several things this software does, including trimming log files which can become cumbersome, resetting cache files which can corrupt and cause behavior and stability problems, repair disk permissions which can cause applications, MacOS components or files to fail to open, and update prebinding, which ensures that applications and their library files are correctly linked.
    The reboot after running YASU will be slower than usual and the system will run slowly for a short time as it rebuilds new cache files, but it should help. If it doesn't resolve the issues, it will at least then remove a number of possible causes, and help narrow the focus a little.
    One other point - you do need to keep a little spare unused space on the hard drive for MacOS to work with. If you are running out of free space, the system will increasingly slow down.

  • HT204388 how to make mac mini selecting hdmi (amp) for default audio output

    I currently have to go in system preferences sound option output and select hdmi (my sound system amp) at every single startup. how can i get my mac to use it as default. thanks

    Long shot, but...
    Next time you start up...
    Open Audio Midi Setup in Applications>Utilities, see the input & output options & KHz setting there, some things will change it for their own use, then not set it back.

  • My mac mini will not read a blue ray dvd, how can I fix this?

    What can I do to make mac mini play a blue ray disc ?

    Hi
    There is NO Mac till yet that has a Blu-Ray player. And the difference between DVD and Blu-Ray are enormous
    DVD has a red laser and can only read 4,7Gb SL or about double on DL DVDs.
    Blu-Ray has a blue laser and can store in between 25 to 50Gb.
    You need a Blu-Ray player - I bought a PlayStation 3 as this is a very good BD-player as well as Game consol.
    (No I've no good (fun) games to it - it's just my digital/BD-player)
    BTW - No as far as I know of - the miniMac can not be up-graded with a Blu-Ray Player - Any one that knows better
    please correct me.
    Yours Bengt W

  • Hi there, can anyone tell me how to make make Garageband ignore HDMI as an audio output-device on a 2013 Mac Mini? Now it keeps on prompting me: Do you want want to use the HDMI device (monitor without audio) for audio output? Thanks in advance, Grtz T.

    Hi there,
    Can anyone tell me how to make make Garageband ignore HDMI as an audio output-device on a 2013 Mac mini i7 using an Apogee jam as an input for bass and a Behringer USB DAC with RCA audio output? Now it keeps on prompting me: Do you want want to use the HDMI device (monitor without audio) for audio output? I'm also suffering massive audio lag issues with the Apogee jam after waking the mini from sleepmode, wich pretty much renders it useless.
    Thanks in advance,
    Grtz T.

    I think the easiest way to do this is to have the EyeTV app running in one user account and sent via HDMI to the TV, and use a separate user account for Screen Sharing. Both logins can be active at the same time and with Lion you can connect via screen sharing to which ever login you need.
    With regards to the Mac video resolution changing, when it is not the current input on your AV receiver. This is 'normal', if the Mac sees no signal it drops down the a lower level. What you need is to buy a HDMI Detective Plus which tricks the Mac in to always seeing a signal and hence it will not drop down the resolution. See http://www.gefen.com/kvm/dproduct.jsp?prod_id=8005
    The Mac mini does have an IR receiver. This can be used with the EyeTV app, iTunes, and similar. Yes I believe EyeTV would run for prolonged periods quite happily, it is has been around for a long time and had most of the rough edges polished off. However one issue you will have to deal with is that it does not automatically update its program guide data. For this you might have to write or modify an AppleScript. Elgato support or their user forums will be a lot of help.
    You can set EyeTV to convert recordings to an iTunes (Apple TV) compatible format and then delete them from EyeTV.
    The HDMI Detective should solve your handshaking problems.

  • I have a new MAC MINI and I want to install a second monitor.  I have one connected to the HDMI and it works.  I can't get a signal to the other one.  It is connected from the thunderbolt to its HDMI port.  How can I make it work?

    I have a new MAC MINI and I want to install a second monitor.  I have one connected to the HDMI and it works.  I can't get a signal to the other one.  It is connected from the thunderbolt to its HDMI port.  How can I make it work?

    Could be a bad cable or bad Thunderbolt port.
    You have 90 days of free telephone support on a new device. You can call them at 1-800-MY-APPLE. Have your Mini's serial number handy
    You can also make an appointment at the Genius Bar of an Apple store.
      Apple Retail Store - Genius Bar

  • Will adding RAM to my Mac Mini make it run faster ?

    Hey all,
    Since I upgraded to Mavericks, I've started having two issues with my Mac Mini (mid-2011 edition, with 4Gb of RAM and an Intel i5 processor at 2,5Ghz)
    1. I use FileVault so I need to login as soon as my machine will boot. Unfortunately, after the upgrade, the layout of my keyboard switched to US. So every time I login, I need to type my password in as if I had a qwerty keyboard. Apple is well aware of the issue which is reported on many forums but still hasn't released a patch yet. That's a nice middle finger shown at their customers, but I guess this is customers service the Apple style.
    2. Next, I have a more embarrassing issue. My Mac Mini has become so slow that it has become almost unusable for many common tasks such as managing my photos in iPhoto or just surfing the web with Google Chrome. I noticed that doing almost nothing on my computer, I always at 3,5Gb and up of memory usage. As I'm typing these lines, I only have iPhoto and 4 tabs in Google Chrome opened and the "Used memory" line in the activity monitor says I'm using 3,99Gb of RAM.
    So here is my question :
    - Could the lack of RAM be the main reason my Mac Mini is extremely slow and often freezing on commons tasks (iPhoto and surfing the web) ?
    - If so, would upgrading to 8Gb  of RAM make it noticeably faster ?
    Thanks !

    According to the image of memory usage you posted, the Virtual Memory is taking 5GB of HDD free space to run (whatever was on, in the image) and the physical RAM was nearly all taken, with 3.99GB in use. Most of the items in the far right side appear to be other usage, some in MB. Where is that being used?
    {Not certain what to make of the other usages, because it is easy to forget what I saw when it isn't english. But I do understand several written languages and a few listened-to, even though I don't speak them. Even some dialects from Asia if I see the speaker. Except cyrillic Rus, greek, & a few others.}
    Given the RAM is the least expensive way to add performance to a machine with hungry operating system and applications that also won't go unfed, this aspect and a good deal of unused or 'free space' in the hard disk drive both add up to better performance. Less RAM than optimal is a bottleneck, as would an overly full near capacity hard disk drive; when running on a slim margin.
    Other browsers to consider are Mozilla-derived FireFox, Seamonkey, and iCab. Maybe Opera.
    Good luck & happy computing!

  • How do i make it so my mac mini can always access my media for Itunes on my time capsule?

    I just recently switched over to a mac mini from a pc. I also purcahsed a time capsule and set it up to hold all my media like music, movies ect. So what settings do i go to so that my itune always acesses the media on my time capsule. If the only way to do that is never let the mac sleep i can do that. But i was wondering if there is a better way to make sure i can watch a move on my apple tv without having to "wake up my computer" and then reslect the hard drive as the media source. Thanks for anyone help!!

    The ipod is not a backup device. The music sync is one way - computer to ipod.  The only exception is itunes purchases:  Without syncing:File>transfer Purchases
    Copy everything from your backup copy of your  old computer to your new one.

  • How do I make changes to an external drive connected to my Mac mini from my Windows 7 PC

    I have an external drive which I learned had to be FAT32 for the read write option to be set in the Mac Mini.  I did that and moved all the media files back on the external HDD.  On the Mac Mini, I shared the 4 folders I needed (Ebooks, Movies, TV Shows, and Transfer).  Also on the Mac, I added a user account "Ephraim" because that is the login I have for the WIN7.  No Passwords are used right now.  The current login being used on the mac is "Media".  With the change to FAT32 I have set the permissions on the MAC to Read/ Write for Everybody.  Everything listed shows read/write.   From the WIN 7 "Ephraim" login, I mapped drives for every folder on Mac external.  So, "TV Shows" is drive letter Z:.  I can access all the folders/drives to view the files but, still get an error when attempting to change a name or move a file.  "You need permission to perform this action.  You require permission from the Computer's administrator to make changes to this file".  On the Mac and the PC, the user accounts "Media" and "Ephraim" are set to administrator.  SMB and AFP are selected under options.  Under Get info, permissions show read write.  I created a media login on the PC but could not see the mac mini at all.  FYI the Mac mini is connected via ethernet.

    In addition, I just realized I can make changes to sub folder names and move sub folders in to other sub folders. For Example: I have "Dexter" folder and Sub folders named "Season 1" and "Season 2".  I move "Dexter Season 3" into "Dexter" folder, and I change the name to "Season 3".  That can be done but I still cannot move a video file from an existing folder or change video file name itself.  For example: I cant move a movie file from a sub folder to Gen Pop of the Movie folder, or change the name to my format.  I want all files under movies with no other folders present, and I want the name to follow a format (Name Year Ex: "Flight 2012"). I have the mac mini in the living room and need to be able to make changes or additions from my desk, so as to not disturb people who are watching Cable TV by changing the input to work on the Mac files.

  • I transferred data from my Macbook Pro to my Mac mini but it forced me to make a new user for my old data.  How do I transfer my music, pics, and docs from the "old" user to the new user (so that I only have one user instead of 2?)

    I transferred data from my Macbook Pro to my Mac mini but it forced me to make a new user for my old data.  How do I transfer my music, pics, and docs from the "old" user to the new user (so that I only have one user instead of 2?)

    Unless you transfer the files from Setup Assistant, Migration Assistant creates a new user with the data.
    To transfer the files to your first user, you have to log on this new user, and copy all your files to /Users/Shard folder. This is a folder where you can put the files you want to share between two or more users, and all users can read and write in it.
    After copying the files, go to your first user, open /Users/Shared folder, and copy the files to your user folders. If you migrated applications, you must know that they are stored in a common folder (/Applications), so you don't have to transfer them. To open /Users/Shared folder, open Go menu (in the menu bar) > Go to Folder, and type the folder

  • How do you make a floppy image on a mac mini?

    I tried the following to make a bootable floppy image and it would not even read in a virtual machine.  I have Oracle Virtualbox.  I am using a Mac Mini 2011 with 4GB of RAM.  I have tried making a blank floppy and copying to it by dragging and using the Terminal, but neither works.  Here are the cmds I used:
    dd if=/dev/zero bs=1024 count=1440>floppy.img
    Then I mounted and erased the image file in Disk Utility.
    cp -Rpv /Volumes/Untitled/ /Volumes/UNTITLED\ 1/
    The above command copied all the files from the floppy to the image but the image wouldn't read on the virtual machine.
    Thanks,
    ericgsch

    It's an old thread, but searches still retrieve it. For what it's worth, look at (for example) http://kb.parallels.com/en/4794
    The procedure to make an image of a floppy disk is basically as follows:
    Put your disk in your floppy drive. Open Disk Utility. In Disk Utility, select your floppy drive, select New Image, select "read/write" and no encryption, then Save (wherever you want the image to be). Then (in Finder) you might want to change the filename extension from .dmg to something else, like .flp or .fdd, depending on what you want the image for. For VirtualBox, you might want .img.

  • Mac Mini won't start and constantly makes disc ejecting noise

    My Mac Mini won't start. It was working fine, then just locked up and won't start again. When I push the start button it just makes this repeated disc ejecting noise from the DVD drive. It doesn't make the chime noise or display anything on the monitor. I've disconnected the optical drive, but it didn't help. Then it just doesn't start at all. I thought that if I would disconnect the optical drive, that it would ignore it and just boot off the hard drive, but nothing happened. The power light comes on. Then, if I hold down the power button for 10 seconds it shuts down. The fan operates. It just never attempts to boot up. I can't put in a system DVD because the optical drive is just in eternal eject mode.
    If you have any suggestions let me know. Thanks.

    I have the same situation.
    I think the drive thinks it has a disc to eject or part of the mechanism is stuck and can't return to it's resting position. I was going to disconnect as you tried but now I think I'll try to disassemble the drive to see if there might be some debris jamming things up.
    Please let me know if you solve the problem.

  • Bluetooth lags on new Mac Mini w/ Wireless keyboard and Magic Trackpad

    Hi everyone,
    I just bought a new mac mini (the basic model) and attached it via HDMI to a HD TV. I bought the mac wireless keyboard and magic trackpad to go with it. Everything works except that both the keyboard and mouse are consistently slow. Not quite to the point of un-useable, but very noticeable.
    I've read that it might be radio interference with the bluetooth signal. To test this, I put my Macbook Pro right next to the new mac mini (while it and the screen were on) and paired the keyboard and mouse to the macbook pro. Everything was super fast, no lag - so that leads me to think the problem is with the Mac Mini. I've tried playing with all the bluetooth options, to no avail.
    Anyone have any suggestions? I've also tried attaching a bluetooth magic mouse and had the same slowdown. Nothing seems to affect the lag, it's very consistent and probably around half a second between keystroke or mouse movement and it's reflection on the screen.
    Thanks,
    -Mike

    Hey All,
    I've got the same issue with my Mac Book Pro and a new Samsung LED 3D TV. Its connected through a DVI out from the mac to a gold HDMI adaptor, then to HDMI into the TV. I've used this set-up with my last HDTV which was a Sharp LCD, and there was no lag and no issues.
    I noticed that for me, the lag appeared on the TV, but not on the laptop, so I thought it might be the connection (If I went right to HDMI instead of an adaptor maybe it'd be better) but I don't think it is given that the last TV worked fine.
    I then went to my display settings in the control panel on my mac and changed the refresh rate from 24 Hertz to 60 Hertz (NTSC) on the TV and the issue has pretty much completely dissappeared. Not sure why that was the default, but I imagine certain video and other media will play even smoother as well!
    Woo hoo!
    Hope you all figure this out too!
    TS

Maybe you are looking for

  • Error in Reading data from a xml file in ESB

    Hi, i created a inbound file adapter service which reads data from a xml file and passes it to the routing service and from there updates to the database..... (everything created in jdeveloper) But i am getting error....it is not getting updated to t

  • HT6114 AirPort Utility and AirPlay no longer works after 10.9.2 upgrade.

    After upgrading to v10.9.2 last night, iTunes no longer shows my AirPlay speakers (attached to an AirPort Express) as available (other devices on same network see them fine still). After upgrading to v10.9.2 the AirPort Utility can no longer see/conn

  • Does dropping bitmap index and creation of b- index cause any dead locks

    Does dropping a bitmap index on table which is being used continuously for DML operations and creation of b- index cause any dead locks on a table in oracle 10g database ( 10.1.0.4.0 - 64bi). we have seen alert log file which has dead lock occurrence

  • How do I display SharePoint ratings (Rating 0-5) on a page?

    Hi, I want to display SharePoint ratings on a page, like in this example https://sharepoint.microsoft.com/en-us/Pages/Videos.aspx   I've enabled ratings in a SharePoint List (for my videos) and I just want to use those ratings ( Rating (0-5) ) on a p

  • Apple DVD player not working on Mid 2011 iMac running 10.7.2

    I have a 21.5-inch, Mid 2011 iMac which came with Lion preinstalled.  When I insert a DVD, Apple's DVD player comes up with the following error: "A valid video device could not be found for playback. [-70017]" The DVD player works.  I can play DVDs u