Jump to content

Question

Posted

So I want to run this Mac Mini on maximum performance while testing my Web Development.

What's a good way to make sure this local server loads fast?

I thought to myself about raising the memory limit to 256MB, but I'm not exactly sure if that's the right idea as the standard limit is 8MB I believe.

Share this post


Link to post
Share on other sites

4 answers to this question

  • 0

Posted

IIRC MAMP sets it to 32mb by default.

Depends what you're trying to run on it, and where you're eventually going to be running what you develop. Some shared hosting sites keep the php memory limit at 8 or 16mbs. Things like Drupal running views will get around 128 pretty easily.

FWIW, it will throw a fatal error if you use too much, so feel free to run it and see what happens, then up it when you go over.

Share this post


Link to post
Share on other sites
  • 0

Posted

[quote name='threetonesun' timestamp='1356035637' post='595405730']
IIRC MAMP sets it to 32mb by default.

Depends what you're trying to run on it, and where you're eventually going to be running what you develop. Some shared hosting sites keep the php memory limit at 8 or 16mbs. Things like Drupal running views will get around 128 pretty easily.

FWIW, it will throw a fatal error if you use too much, so feel free to run it and see what happens, then up it when you go over.
[/quote]

Me and my partners actually run the biggest server Host Gator could offer.

Let's say I'll also be developing a framework that does things for me and I don't like things slowing down.

Share this post


Link to post
Share on other sites
  • 0

Posted

[quote name='Mr.XXIV' timestamp='1356045913' post='595405972']
Me and my partners actually run the biggest server Host Gator could offer.

Let's say I'll also be developing a framework that does things for me and I don't like things slowing down.
[/quote]

I'm not sure what your point is, a script is going to run as fast as it's going to run. If php runs out of RAM, you get a fatal error. You should figure out how much you need and set the limit relative to that. If you allocate 512 and php is running through it because of bad code, you'll never know.

Share this post


Link to post
Share on other sites
  • 0

Posted

[quote name='threetonesun' timestamp='1356050634' post='595406148']
I'm not sure what your point is, a script is going to run as fast as it's going to run. If php runs out of RAM, you get a fatal error. You should figure out how much you need and set the limit relative to that. If you allocate 512 and php is running through it because of bad code, you'll never know.
[/quote]

That's true. Do you how when you run your server locally it takes time for the MySQL to load, but when you load the server from another PC, it's instant?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Recently Browsing   0 members

    No registered users viewing this page.