_yafma
Last Updated: February 25, 2016
·
1.009K
· pierre-o
Myself

Specs and cucumber : 32 or 64bit?

I was noticing that our tests were consuming more and more memory when a dear co worker advised me to change the jvm from 64bits to 32bits. After reading his source, I gave it a try, and actually noticed an improvement in the jvm memory footprint of 42%. So I did it on the full stack VM gentoo (1 core & 2Gb) + mysqld + ruby + jvm. I built one 32bit stack and one 64bit and here are the results:

Chart

Zoom

In terms of memory, going from 64bits to 32bits represents a gain of 38% and in terms of processor, a gain of 12%. The tests are a little bit quicker, but the main concern was the memory footprint. So my co worker was right, even for ruby, if your application is less than 2Gb, go for 32bits architecture.

(I used a bash script to gather data as csv with ps - C “process_name” and a ruby script to draw the graph with google api, if you are interested, here is the gist!)

Say Thanks
Respond

2 Responses
Add your response

6011
Solarized light

Interesting! Are you using jRuby?

over 1 year ago ·
6023
Myself

Nope, just with ruby :)

over 1 year ago ·