Sun Microsystems 820434310 manual Thread Pool Settings, Tuning Thread Pools Unix /Linux only

Models: 820434310

1 128
Download 128 pages 34.03 Kb
Page 76
Image 76
▼To Enable Java Serialization

Thread Pool Settings

To Enable Java Serialization

You must set this property on all servers that you want to use JSG.

1In the tree component, expand the Configurations node.

2Expand the desired node.

3Select the JVM Settings node

4In the JVM Settings page, choose the JVM Options tab.
5Click Add JVM Option, and enter the following value:

-Dcom.sun.CORBA.encoding.ORBEnableJavaSerialization=true

6Click Save

7Restart 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 configure monitoring with the Admin Console, open the page Configurations > config-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)

Configure thread pool settings through the Admin Console at Configurations > config-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

76

Sun GlassFish Enterprise Server 2.1 Performance Tuning Guide • January 2009

Page 76
Image 76
Sun Microsystems 820434310 manual Thread Pool Settings, Tuning Thread Pools Unix /Linux only, To Enable Java Serialization