Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've been going back and forth with JAI for quite a while by now. I've never been really impressed with it to be honest. Is it really all that jazz that I hear people talk about?

The problem with JAI is that I'm stuck with a 32bit JVM, thus not fully utilizing the abundance of RAM that I have.

Has anyone done any head-to-head comparisons between 32bit JVM + JAI vs. 64bit JVM?

I have a Geoserver instance with 10k+ geotiff images, and only these geotiff images.
Which one of these setups would give me the best performace in your opinion?

JVM 32 bits
Native JAI installed
(among others)

JVM 64 bits
No native JAI
(among others)

Thanks for your responses!

share|improve this question
please read… – iant Jun 10 '13 at 7:57
JVM 64 bit will not give more performance UNLESS you use all the cpu cores.. I have just tested it and I found that native 32 bit JAI exes are faster than Java mode of JAI in 64 bit JVM... – Parth Trivedi Nov 27 '14 at 6:18
native mode gave me 45 seconds and java mode with 64 bit gave me 65 seconds in my project.... – Parth Trivedi Nov 27 '14 at 6:18
up vote 1 down vote accepted

The former should give you better performance, GeoServer is structured to minimize the use of memory and has no source data caches, so giving it more memory (past a certain point) does not really make it faster, just allows it to serve more requests in parallel... slower :-) The thing is, past 2x or 4x the number of CPUs the overall throughput will stop increasing anyways, so better just lock it down with control-flow instead.

If the OS has a good file system handling, it will make use of the extra memory it has to perform in memory caching of the most used files, and that's going to be a good boost too.

share|improve this answer

Your Answer


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.