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 have been reading this article about putting Geoserver into a production environment.

Section "4.1 Java Virtual Machine" is confusing me a bit. This section mentions that in a production environment Geoserver should be using the JVM in "server mode" and it also shows you how to check what mode your JVM is currently in. As it turns out mine is running in "client mode", which appears to be default for windows.

I thought that I could get Geoserver to use the JVM in "server mode" by adding this line to my wrapper.conf file.

After I added that line, I restarted my service (even bounced the server on the second attempt) and checked the JVM again by going "java -version" but it still appears to be in "client mode".

I know my JVM can perform server mode because this "java -server -version" returns results like in the article.

Have I done the right thing? Or have I missed a step somewhere?

Windows 2003 - Geoserver 2.1.4 - Java version 1.6.0_23



share|improve this question
up vote 3 down vote accepted

Just running java -version won't be affected by the parameters you set in the virtual machine running GeoServer, to be sure you should run, locally to your server, something like VisualVM, that should tell you if the VM is running in server or client mode among a ton of other info (I don't remember exactly if the server/client thing is exposed, but I believe it should at least be visible somewhere in the JMX tree).

That said, if your machine is a Windows server and has at last 2GB of memory and at least 2 cores the JVM should enter in server mode by itself (this behavior is called "server ergonomics", it's odd that it does not? See

share|improve this answer
Andrea helped solve this on the geoserver list. It appears I had to remove then reinstall the service. Thanks… – Ando Aug 29 '12 at 22:30

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.