Thread Pool Settings; Tuning Thread Pools (Unix /Linux Only) - Sun Microsystems Sun GlassFish Enterprise Server 2.1 Tuning Manual

Performance tuning guide
Hide thumbs Also See for Sun GlassFish Enterprise Server 2.1:
Table of Contents

Advertisement

Thread Pool Settings

To Enable Java Serialization
You must set this property on all servers that you want to use JSG.
In the tree component, expand the Configurations node.
1
Expand the desired node.
2
Select the JVM Settings node
3
In the JVM Settings page, choose the JVM Options tab.
4
Click Add JVM Option, and enter the following value:
5
-Dcom.sun.CORBA.encoding.ORBEnableJavaSerialization=true
Click Save
6
Restart the Application Server.
7
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

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Sun GlassFish Enterprise Server 2.1 and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

Table of Contents