Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?)

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

3 Answers 3

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.

share|improve this answer

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.

share|improve this answer
    
+1 for the extra info (and to motivate each other :) ) –  Henk Mar 15 '12 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? –  sordumsoruyu Mar 16 '12 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 '12 at 6:08
    
@poolie 3gb or 4gb? –  sordumsoruyu Mar 16 '12 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 '12 at 22:34

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

share|improve this answer
    
mm, kinda, not from one process. –  poolie Mar 16 '12 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? –  sordumsoruyu Mar 16 '12 at 3:03

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.