Setting Java Properties

Edit the WebLogic startup script for your platform to include the settings described in the following tables. Substitute the location of your JasperReports Server license file where necessary:

WebLogic Startup Settings on Windows

Filename

<wl-domain>\bin\startWebLogic.cmd

Settings

set JAVA_OPTIONS=%JAVA_OPTIONS%
-Djs.license.directory=C:\<js-install>\
-Dfile.encoding=UTF-8
-Dcom.sun.xml.namespace.QName.useCompatibleSerialVersionUID=1.0
-Djavax.xml.soap.SOAPConnectionFactory=org.apache.axis.soap.SOAPConnectionFactoryImpl
-Djavax.xml.soap.MessageFactory=org.apache.axis.soap.MessageFactoryImpl
-Djavax.xml.soap.SOAPFactory=org.apache.axis.soap.SOAPFactoryImpl
-Xms1024m
-Xmx2048m
-Xss2m

Additional for JDK 1.7

set JAVA_OPTIONS=%JAVA_OPTIONS% -XX:PermSize=128m -XX:MaxPermSize=512m

Additional for Oracle

set JAVA_OPTIONS=%JAVA_OPTIONS% -Doracle.jdbc.defaultNChar=true

Setting the Oracle localization option, defaultNChar, can substantially impact the performance of JDBC queries. If you don't need to support UTF-8 for your Oracle database, you can omit this setting.

 

WebLogic Startup Settings on Linux

Filename

<wl-domain>/bin/startWebLogic.sh

Settings

export JAVA_OPTIONS="$JAVA_OPTIONS
-Djs.license.directory=/home/<user>/weblogic/jasperlicense/
-Dfile.encoding=UTF-8
-Dcom.sun.xml.namespace.QName.useCompatibleSerialVersionUID=1.0
-Djavax.xml.soap.SOAPConnectionFactory=org.apache.axis.soap.SOAPConnectionFactoryImpl
-Djavax.xml.soap.MessageFactory=org.apache.axis.soap.MessageFactoryImpl
-Djavax.xml.soap.SOAPFactory=org.apache.axis.soap.SOAPFactoryImpl
-Xms1024m
-Xmx2048m
-Xss2m"

Additional for JDK 1.7 export JAVA_OPTIONS="$JAVA_OPTIONS -XX:PermSize=128m -XX:MaxPermSize=512m "

For Oracle

export JAVA_OPTIONS="$JAVA_OPTIONS -Doracle.jdbc.defaultNChar=true"

Setting the Oracle localization option, defaultNChar, can substantially impact the performance of JDBC queries. If you don't need to support UTF-8 for your Oracle database, you can omit this setting.

Feedback
randomness