0

I have a 32bit 10.04 server has 32gb ram

I am running opencart e-commerce sites (php)

Max How much ram can use by opencart? (32gb or 4gb?)

4
  • Why not just run a 64bit kernel? That will almost certainly be faster.
    – poolie
    Mar 16, 2012 at 2:45
  • this is an existing server runs alot of sites. Mar 16, 2012 at 3:06
  • isn't any RAM limit in 64bit? Mar 16, 2012 at 3:07
  • In 64-bit the only limit is how much memory the hardware can accept.
    – poolie
    Mar 16, 2012 at 6:05

3 Answers 3

2

If you use a PAE-kernel a 32 bit operating systems like yours, can use up to 64 Gb of memory (RAM).

2
  • mm, kinda, not from one process.
    – poolie
    Mar 16, 2012 at 2:44
  • Every php code is a single process isn't it? Not whole opencart application. In this case, max limit is 64 gb, am I right? Mar 16, 2012 at 3:03
2

If you have a PAE kernel installed, your 32 bit operating system should be able to address up to 64 GB of RAM.

As far as I know, each single process should be able to address not more than 4 GB RAM. Now since opencart is a PHP application and I assume that each visit of your website by another browser spwans a new PHP process, your system and therefore opencart should be able to use more than 4 GB of RAM.

5
  • +1 for the extra info (and to motivate each other :) )
    – Henk
    Mar 15, 2012 at 20:07
  • Every php code is a single process isn't it? Not whole opencart application. In this case, max limit is 64 gb, am I right? Mar 16, 2012 at 2:56
  • Yes, typically you'll have multiple php processes, and they can each get >3GB. If no single request wants more than 3GB, you're fine. I don't know if that's your situation or not.
    – poolie
    Mar 16, 2012 at 6:08
  • @poolie 3gb or 4gb? Mar 16, 2012 at 20:16
  • I don't think apps get the full 4GB with a 32-bit kernel. Not sure exactly where the cutoff is these days.
    – poolie
    Mar 17, 2012 at 22:34
0

Also, PHP has various tuning parameters, including memory_limit, which may be as high as 128MiB if you're running a recent version. Check your php.ini file for details.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .