Closed DocCyblade closed 8 years ago
Half way through the installing of modules the server froze and ran out of memory. 512MB not enough may need to bump it up to 1GB
I found that changing the max memory soft value to 268435456 (256MB) seem to calm the memory usage. This number should not be more than 1/4 of your memory on your system. Seems like if this number if too high the worker processes never quit and release memory, eating it up till it locks up
Should come up with some matrix for memory to workers equation or at least best setting to whatever the final TKL VM will have for memory
Installed all modules, had to tweak the max_memory_soft above
What is your math on the "number" and mb/gb etc? I had tried to calc 1.5 Gig myself earlier but came out with the different number I mentioned earlier. Also this doesn't seem to correlate to bits or kilobits either.
I take 256MB and punch it into here http://www.whatsabyte.com/P1/byteconverter.htm
Been playing around with the tuning of 512MB RAM with all modules installed. System is VERY slow but it does work. If they are using only 2-3 modules this would be "ok" but ideal. I did tweak the max_memory_soft to 128MB and max_memory_hard to 1.3G anything less than 1.3G PDF reports would not work. I tried bumping the workers to 1 but things started timing out. You could put this to one, and bump up soft memory limit or bump up the time outs on cpu/time but i think the below settings are "ok" for 512MB if thats all you had. I am thinking that 1GB really should be the minimum, as you can see it's eating into swap
See below screen shots of config and memory usage.
Note on above post, i have not rebooted just restarted Odoo. Below shot after reboot. Still high memory usage and we have not done anything yet
Ok, will fire up. What is the command to seebthe memory usage?
top
I then use commands to make that screen. Use h for help
Need to run it at the console
top
is good; htop
is prettier and has cool bar graphs :smile:
Is htop in the build ? Or do you add it?
I install it from the repos. It's only a 200kb
BTW you guys are stress testing the shiz outta this thing! :smile:
@JedMeister if anything I have learned is the memory management and the scaling of the app.
Ill have to install htop
@JedMeister dude what are you still doing up? Don't you sleep!
Yeah want to put my stamp of approval on it it's going to be almost perfect
Logging into shell: 20 GB hd, 4gb Ram, 2 Processors and after setting Soft Limit to 256mb and Hard Limit to 3GB I see: https://192.168.1.115:12321/ HD usage at 11.7% Memory Usage at 17 % 124 Processes running
Just ran: apt-get install htop htop Jumps. Pretty cool.
@JedMeister - Testing is going very well. Only thing I have found is performance issues with 512MB if you go all crazy town and do what I did and install 20| modules
I am done with part 1
Nice work Ken.
Don't do what I did and Get Tired in Crazy town and install 12 Modules all at once :smile:
Going to use this to document my shake down testing of RC1
Test will be done with VMWare Fusion with 1 X CPU 1GB RAM 20GB HDD
Test one will install all modules available and test each one using CRUD and every option at least 3 times.
Goal is to test all modules and options with limited resources. Will note any issues here. If issue is with resources will note that and retest in part 2
Keep list of things tested here only. Add comments if any issues only.
Test List: