Linux and OSX tuning, running the "server" Java VM (tuning)

Issue

Depending on your platform, the installed version of the Java VM and Wowza Pro configuration, you may be running the client version of the Java VM. The Wowza Pro server will function better when using the server version of the Java runtime environment that ships with the Java JDK. Below are the instructions to switch to the server version of the Java VM.

Note: For Windows the solution is a little more involved. See the following forum post for the complete instructions:

http://community.wowza.com/t/-/41

Resolution (Linux and OSX)

First, open a command prompt and enter the command:

java -server -version

It should return something similar to this:

java version "1.6.0_04"
Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
Java HotSpot(TM) Server VM (build 10.0-b19, mixed mode)

Note: The key part being the Server VM part of the last line.

If it returns an error message then the server version is not available under your current Java VM installation. The solution is to install the most recent Java JDK from the Sun web site http://java.sun.com. Once you have installed the most recent VM, execute the java -server -version and it should return the correct VM information.

With this in place you can now edit the setenv.sh startup file to switch to the server VM.

Edit [install-dir]/bin/setenv.bat

change:
set JAVA_OPTS="-Xmx768M"
to:
set JAVA_OPTS="-server -Xmx768M"

Charlie

On Mac OSX

The

Edit [install-dir]/bin/setenv.bat

line should read:

Edit [install-dir]/bin/setenv.sh

Also in order to run java in 64 bit (subject to hardware capability of course) edit the JAVA_OPTS line to read:

JAVA_OPTS="-d64 -server -Xmx3000M"

the “set” as quoted above is not relevant to OSX

See if this post helps. It is really a bunch of tuning of the VM:

http://stackoverflow.com/questions/198577/real-differences-between-java-server-and-java-client

Charlie

In what way does Wowza “function better” using the Server version of the VM?

See if this post helps. It is really a bunch of tuning of the VM:

http://stackoverflow.com/questions/198577/real-differences-between-java-server-and-java-client

Charlie

thank you for this post. I am writing a paper on the difference between java server and java client. ( sorry for posting on a thread this old)


Accieee