Server User Manual

Table Of Contents
To Enable Java Serialization
You must set this property on all servers that you want to use JSG.
In the tree component, expand the Congurations node.
Expand the desired node.
Select the JVM Settings node
In the JVM Settings page, choose the JVM Options tab.
Click Add JVM Option, and enter the following value:
-Dcom.sun.CORBA.encoding.ORBEnableJavaSerialization=true
Click Save
Restart the Application Server.
Using JSG for Application Clients
If an application uses standalone non-web clients (application clients), and you want to use JSG,
you must also set a system property for the client applications. A common way to do this is to
add the property to the Java command line used to start the client application, for example:
java -Dcom.sun.CORBA.encoding.ORBEnableJavaSerialization=true
-Dorg.omg.CORBA.ORBInitialHost=gollum
-Dorg.omg.CORBA.ORBInitialPort=35309
MyClientProgram
Thread Pool Settings
You can both monitor and tune thread pool settings through the Admin Console. To congure
monitoring with the Admin Console, open the page Congurations > cong-name >
Monitoring. To view monitoring information with the Admin Console, open the page
Stand-Alone Instances > instance-name (Monitor).
Tuning Thread Pools (Unix /Linux only)
Congure thread pool settings through the Admin Console at Congurations > cong-name >
Thread Pools.
Since threads on Unix/Linux are always operating system (OS)-scheduled, as opposed to
user-scheduled, Unix/Linux users do not need to use native thread pools. Therefore, this option
1
2
3
4
5
6
7
Thread Pool Settings
Sun GlassFish Enterprise Server 2.1 Performance Tuning Guide • January 200976