Showing posts with label Operating System. Show all posts
Showing posts with label Operating System. Show all posts

Saturday, June 23, 2012

Tuning Garbage Collection Outline


Tuning Garbage Collection Outline (Oracle Apps) 


This document is a summary or outline of Sun's document: Tuning Garbage collection with the 1.4.2 Hotspot JVM located here: http://java.sun.com/docs/hotspot/gc1.4.2/

1.0 Introduction

    * For many applications garbage collection performance is not significant
    * Default collector should be first choice

2.0 Generations

    * Most straightforward GC will just iterate over every object in the heap and determine if any other objects reference it.
          o This gets really slow as the number of objects in the heap increase
    * GC's therefor make assumptions about how your application runs.
    * Most common assumption is that an object is most likely to die shortly after it was created: called infant mortality
    * This assumes that an object that has been around for a while, will likely stay around for a while.
    * GC organizes objects into generations (young, tenured, and perm) This is important!

2.1 Performance Considerations

    * Ways to measure GC Performance
          o Throughput - % of time not spent in GC over a long period of time.
          o Pauses - app unresponsive because of GC
          o Footprint - overall memory a process takes to execute
          o Promptness - time between object death, and time when memory becomes available
    * There is no one right way to size generations, make the call based on your applications usage.

2.2 Measurement

    * Throughput and footprint are best measured using metrics particular to the application.
    * Command line argument -verbose:gc output
      [GC 325407K->83000K(776768K), 0.2300771 secs]
          o GC - Indicates that it was a minor collection (young generation). If it had said Full GC then that indicates that it was a major collection (tenured generation).
          o 325407K - The combined size of live objects before garbage collection.
          o 83000K - The combined size of live objects after garbage collection.
          o (776768K) - the total available space, not counting the space in the permanent generation, which is the total heap minus one of the survivor spaces.
          o 0.2300771 secs - time it took for garbage collection to occur.
    * You can get more detailed output using -XX:+PrintGCDetails and -XX:+PrintGCTimeStamps

3 Sizing the Generations

    * The -Xmx value determines the size of the heap to reserve at JVM initialization.
    * The -Xms value is the space in memory that is committed to the VM at init. The JVM can grow to the size of -Xmx.
    * The difference between -Xmx and -Xms is virtual memory (virtually committed)

3.1 Total Heap

    * Total available memory is the most important factor affecting GC performance
    * By default the JVM grows or shrinks the heap at each GC to keep the ratio of free space to live objects at each collection within a specified range.
          o -XX:MinHeapFreeRatio - when the percentage of free space in a generation falls below this value the generation will be expanded to meet this percentage. Default is 40
          o -XX:MaxHeapFreeRatio - when the percentage of free space in a generation exceeded this value the generation will shrink to meet this value. Default is 70
    * For server applications
          o Unless you have problems with pauses grant as much memory as possible to the JVM
          o Set -Xms and -Xmx close to each other or equal for a faster startup (removes constant resizing of JVM). But if you make a poor choice the JVM can't compensate for it.
          o Increase memory sa you increase # of processors because memory allocation can be parallelized.

3.2 The Young Generation

    * The bigger the young generation the less minor GC's, but this implies a smaller tenured generation which increases the frequency of major collections.
    * You need to look at your application and determine how long your objects live for to tune this.
    * -XX:NewRatio=3 - the young generation will occupy 1/4 the overall heap
    * -XX:NewSize - Size of the young generation at JVM init. Calculated automatically if you specify -XX:NewRatio
    * -XX:MaxNewSize - The largest size the young generation can grow to (unlimited if this value is not specified at command line)

3.2.1 Young Generation Guarantee

    * The -XX:SurvivorRatio option can be used to tune the number of survivor spaces.
    * Not often important for performance
          o -XX:SurvivorRatio=6 - each survivor space will be 1/8 the young generation
          o If survivor spaces are too small copying collection overflows directly into the tenured generation.
          o Survivor spaces too large uselessly empty
          o -XX:+PrintTenuringDistribution - shows the threshold chosen by JVM to keep survivors half full, and the ages of objects in the new generation.
    * Server Applications
          o First decide the total amount of memory you can afford to give the virtual machine. Then graph your own performance metric against young generation sizes to find the best setting.
          o Unless you find problems with excessive major collection or pause times, grant plenty of memory to the young generation.
          o Increasing the young generation becomes counterproductive at half the total heap or less (whenever the young generation guarantee cannot be met).
          o Be sure to increase the young generation as you increase the number of processors, since allocation can be parallelized.

4 Types of Collectors

    * Everything to this point talks about the default garbage collector, there are other GC's you can use
    * Throughput Collector - Uses a parallel version of the young generation collector
          o -XX:+UseParallelGC
          o Tenured collector is the same as in default
    * Concurrent Low Pause Collector
          o Collects tenured collection concurrently with the execution of the app.
          o The app is paused for short periods during collection
          o -XX:+UseConcMarkSweepGC
          o To enable a parallel young generation GC with the concurrent GC add -XX:+UseParNewGC to the startup. Don't add -XX:+UseParallelGC with this option.
    * Incremental Low Pause Collector
          o Sometimes called Train Collector
          o Collects a portion of the tenured generation at each minor collection.
          o Tries to minimize large pause of major collections
          o Slower than the default collector when considering overall throughput
          o Good for client apps (my observation)
          o -Xincgc
    * Don't mix these options, JVM may not behave as expected.

4.1 When to use Throughput Collector

    * Large number of processors
    * Reduces serial execution time of app, by using multiple threads for GC
    * App with lots of threads allocating objects should use this with a large young generation
    * Server Applications (my observation)

4.2 The Throughput collector

    * By default the throughput collector uses the number of CPU's as its value for number of GC threads.
    * On a computer with one CPU it will not perform as well as the default collector
    * Overhead from parallel execution (synchronization costs)
    * With 2 CPU's the throughput collector performs as well as the default garbage collector.
    * With more then 2 CPU's you can expect to see a reduction in minor GC pause times
    * You can control the number of threads with -XX:ParallelGCThreads=n
    * Fragmentation can occur
          o Reduce GC threads
          o Increase Tenured Generation size

4.2.1 Adaptive Sizing

    * Keeps stats about GC times, allocation rates, and free space then sizes young and tenured generation to best fit the app.
    * J2SE 1.4.1 and later
    * -XX:+UseAdaptiveSizePolicy (on by default)

4.2.2 Aggressive Heap

    * Attempts to make maximum use of physical memory for the heap
    * Inspects computer resources (memory, num processors) and sets params optimal for long running memory allocation intensive jobs.
    * Must have at least 256MB of RAM
    * For lots of CPU's and RAM, but 1.4.1+ has shown improvements on 4-Way machines.
    * -XX:+AggressiveHeap

4.3 When to use the Concurrent Low Pause Collector

    * Apps that benefit from shorter GC pauses, and can share resources with GC during execution.
    * Apps with large sets of long living data (tenured generation)
    * Two or more processors
    * Interactive apps with modest tenured generation size, and one CPU

4.4 The Concurrent Low Pause Collector

    * Uses a separate GC thread to do parts of the major collection concurrently with the app threads.
    * Pauses App threads in the beginning of a collection and toward the middle (longer pause in middle)
    * The rest of the GC is in a single thread that runs at the same time as the app

4.4.1 Overhead of Concurrency

    * Doesn't provide much of an advantage on single processor machines.
    * Fragmentation can occur.
    * Two processor machine eliminates pauses due to the GC thread.
    * The more CPU's the advantages of concurrent collector increase.

4.4.2 Young Generation Guarantee

    * There has to be enough contiguous space available in the tenured generation for all objects in the eden and one survivor space.
    * A larger heap is needed compared to the default collector.
    * Add the size of the young generation to the tenured generation.

4.4.3 Full Collections

    * If the concurrent collector is unable to finish collecting the tenured generation before the tenured generation fills up, the application is paused and the collection is completed.
    * When this happens you should make some adjustments to your GC params

4.4.4 Floating Garbage

    * Floating Garbage - Objects that die while the GC is running (after they have been checked).
    * Increase the tenured generation by 20% to reduce floating garbage.

4.4.5 Pauses

    * First Pause - marks live objects - initial marking
    * Second Pause - remarking phase - checks objects that were missed during the concurrent marking phase due to the concurrent execution of the app threads.

4.4.6 Concurrent Phases

    * Concurrent Marking phase occurs between initial mark and remarking phase.
    * Concurrent sweeping phase collects dead objects after the remarking phase.

4.4.7 Measurements with the Concurrent Collector

    * Use -verbose:gc with -XX:+PrintGCDetails
    * vCMS-initial-mark shows GC stats for the initial marking phase
    * CMS-concurrent-mark - shows GC stats for concurrent marking phase.
    * CMS-concurrent-sweep - shows stats for concurrent sweeping phase
    * CMS-concurrent-preclean - stats for determining work that can be done concurrently
    * CMS-remark - stats for the remarking phase.
    * CMS-concurrent-reset - concurrent stuff is done, ready for next collection.

4.4.8 Parallel Minor Collection Options with Concurrent Collector

    * -XX:+UseParNewGC - for multiprocessor machines, enables multi threaded young generation collection.
    * -XX:+CMSParallelRemarkEnabled - reduce remark pauses

4.5 When to use the Incremental Low Pause Collector

    * Use when you can afford to tradeoff longer and more frequent young generation GC pauses for shorter tenured generation pauses
    * You have a large tenured generation
    * Single Processor

4.6 The Incremental Low Pause Collector

    * Minor collections same as default collector.
    * Don't use try to use parallel GC with this collector
    * Incrementally Collects parts of the tenured generation at each young collection.
    * Tries to avoid long major collections by doing small chunks each minor collection.
    * Can cause fragmentation of the heap. Sometimes need to increase tenured generation size compared to the default.
    * There is some overhead required to maintain the position of the incremental collector. Less overhead than is required by the default collector.
    * First try the default collector, and adjust heap sizing. If major pauses are too long try incremental.
    * If the incremental collector can't collect the tenured generation fast enough you will run out of memory, try reducing the young generation.
    * If young generation collections do not free any space, could be because of fragmentation. Increase tenured generation size.

4.6.1 Measurements with the Incremental Collector

    * -verbose:gc and -XX:+PrintGCDetails
    * Look for the Train: to see the stats for the incremental collection.

5 Other Considerations

    * The permanent generation may be a factor on apps that dynamically generate and load many classes (JSP, CFM application servers)
    * You may need to increase the MaxPermSize, eg: -XX:MaxPermSize=128m
    * Apps that rely on finalization (finalize method, or finally clauses) will cause lag in garbage collection. This is a bad idea, use only for errorious situations.
    * Explicit garbage collection calls (System.gc()) force a major collection. You can measure the effectiveness of these calls by disabling them with -XX:+DisableExplicitGC
    * RMI garbage collection intervals can be controlled with
          o -Dsun.rmi.dgc.client.gcInteraval=3600000
          o -Dsun.rmi.dgc.server.gcInterval=3600000
    * On Solaris 8+ you can enable libthreads, lightweight thread processes, these may increase thread performance.
    * To enable add /usr/lib/lwp to LD_LIBRARY_PATH
    * Soft References cleared less aggressively in server.
    * -XX:SoftRefLRUPolicyMSPerMB=10000
    * Default value is 1000, or one second per MB

6 Conclusion

    * GC can be bottleneck in your app.

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

There are some good notes on JVM tuning from Mike Shaw on Steven Chan’s blog  here , here and here and some good Metalink notes at end of this post.
                     Important thing missing from all these notes (for some one like me who is new to Java) is basics of Garbage Collection, Generation and how to read GC output.
In this post I’ll start with basics of JVM GC (Garbage Collection) and then in next post apply this theory for real time performance issues w.r.t. JVM (11i Java Virtual Machine) .

Garbage - Java object is considered garbage when it can no longer be reached from any pointer in the running program.

Generations - Memory in JVM is managed in terms of generation i.e. Young generation and tenured generation. Memory pool holding object of different ages like young, tenured. If a particular generation fills up, garbage collection occurs.

A. Young generation - Objects are initially allocated in Young generation (most of objects die here). When Young generation fills up, it causes Minor Garbage Collection. Any objects survived after Minor GC (Garbage Collection) are moved to Tenured Generation.  Minor Garbage collection is quick as compared to Full/Major GC.

B. Tenured generation - Surviving objects (from young generation) after minor garbage collection are moved to area called tenured generation, When tenured generation fills up it causes major collection (aka Full GC or Full Garbage Collection). Major collection is slow as it involves all live objects.

Garbage Collection (GC) - is program which clears garbage(dead java objects). Garbage Collection work on fundamental principle that majority of java objects die young (quickly after arriving in JVM). There are two kind of Garbage Collection Minor Garbage Collection and Major Garbage Collection (aka Full GC)

Example of Minor GC -  3824.164: [GC 196725K->141181K(209864K), 0.3295949 secs]
Example of Minor GC -  3841.051: [Full GC 150466K->87061K(217032K), 3.2626248 secs]

Pauses: is the time when application becomes unresponsive because garbage collection is occurring.

.

Understanding JVM parameter for 11i
Sizing the generation is very important in tuning JVM GC. Before jumping to Sizing generation (Young and Tenured) lets look at default 11i JVM parameters

In context file($APPL_TOP/ admin/ $CONTEXT_NAME.xml) default entry for JVM is like

<jvm_options oa_var=”s_jvm_options” osd=”Solaris”>-verbose:gc -Xmx512M -Xms128M -XX:MaxPermSize=128M -XX:NewRatio=2-XX:+PrintGCTimeStamps -XX:+UseTLAB </jvm_options>

1. Above line represents JVM (OACoreGroup) size in 11i
2. -Xms128M, means start with 128MB heap size
3. -Xmx512M, means grow JVM heap size upto max size of 512 MB
4. -XX:NewRatio=2 is to control young generation i.e. ratio between young and tenured generation is 1:2 (i.e. if size of young generation is 50 MB then size of tenured generation should be approx. 100MB)
5. -XX:MaxPermSize=128M limit the permanent generation to 128M (permanent generation is part/area in tenured generation)
6. -XX:+UseTLAB represents to use thread-local object allocation
7. There are two more parameters (11i JVM uses default values) -XX:MinHeapFreeRatio=<minimum> & -XX:MaxHeapFreeRatio=<maximum> with default value of 40 & 70 resp. (for Solaris)

If percentage of free space in generation falls below 40%, size of generation will expand and if percentage of free space exceeds 70%, the size of generation will shrunk.

.
Various type of Garbage Collector
From JDK 1.4.2 there are total 4 type of collectors (prior to 1.4.2 it was just one collector i.e. default collector)

1. Default Collector: JDK prior to 1.4.2 uses default collector. If you don’t specify any parameter with JVM default is default collector.

2. ThroughPut Collector : This collector uses parallel version of young generation collector but Tenrured generation is collected in normal way. To set throughput collector use -XX:+UseParallelGC  so change

<jvm_options oa_var=”s_jvm_options” osd=”Solaris”>-verbose:gc -Xmx512M -Xms128M -XX:MaxPermSize=128M -XX:NewRatio=2 -XX:+PrintGCTimeStamps -XX:+UseTLAB </jvm_options>
to
<jvm_options oa_var=”s_jvm_options” osd=”Solaris”>-verbose:gc -Xmx512M -Xms128M -XX:MaxPermSize=128M -XX:NewRatio=2 -XX:+PrintGCTimeStamps -XX:+UseTLAB -XX:+UseParallelGC</jvm_options>

3. Concurrent Low Pause Collector : Concurrent Collector is used to collect tenured generation collection concurrently with execution of application. Parallel version of collector is used for young generation. To set Concurrent Low Pause Collector use -XX:+UseConcMarkSweepGC
like
<jvm_options oa_var=”s_jvm_options” osd=”Solaris”>-verbose:gc -Xmx512M -Xms128M -XX:MaxPermSize=128M -XX:NewRatio=2 -XX:+PrintGCTimeStamps -XX:+UseTLAB -XX:+UseConcMarkSweepGC</jvm_options>

4. Incremental low pause collector : This collector collects just portion of tenured generation at each minor garbage collection. To use Incremental low pause collector use
-Xincgc

If you are on JDK 1.4.2 with multi CPU try setting Concurrent Low Pause Collectoras Garbage Collector.

Thumb rule for Grabage Collection/ JVM tuning w.r.t. 11i
1.Stay on latest JVM/JDK version where ever possible (latest certified with 11i is JRE 6, you should be at-least 1.4.2 and higher)
2. For OACoreGroup consider no more than 100 active users per JVM
3. There should NOT be more than 1 active JVM per CPU
4. Try to reduce GC (Garbage Collection) frequency (specially Major/Full GC). Play with various JVM parameters like (-Xmx, -Xms, -XX:MaxPermSize, -XX:NewRatio, -XX:+UseParallelGC/ -XX:+UseConcMarkSweepGC)
5. If you are on JDK 1.4.2 with multiple CPU middle tier, use Concurrent Low Pause Garbage Collector  by setting -XX:+UseConcMarkSweepGC with JVM
6. If you are using Oracle Configurator, assign dedicated JVM for configurator requests
7. Try setting JVM max size NOTgreater than 1 GB, (use multiple JVM’s of 512MB or 1024 MB), this is to reduce GC time (more heap size means more time in GC)
8. Minor GC should be occurring at interval long enough to allow many objects to die young (i.e. lot of objects should die between two minor GC).
9. Throughput (which is time NOT spent on GC) is inversely proportion to amount of memory. Higher the memory for JVM, more time for GC meaning low throughput.
10. Unless you have problems with pauses (time when application becomes unresponsive because garbage collection is occurring), try granting as much memory as possible to VM (128 to 512 is good start and fine tune as per load testing results)
.

How to find JDK version used by Apache/Jserv (JVM) in 11i ?

In context file search for parameter like s_jdktop

<JDK_TOP oa_var=”s_jdktop”>/oracle/apps/11i/vis11icomn/util/java/1.4/j2sdk1.4.2_04</JDK_TOP>

Where is JVM log location in 11i ?
$IAS_ORACLE_HOME/ Apache/ Jserv/ logs/ jvm/ OACoreGroup.0.stdout  (GC output)
$IAS_ORACLE_HOME/ Apache/ Jserv/ logs/ jvm/ OACoreGroup.0.stderr  (JVM Error)

.

How to read GC (JVM stdout) file ?

Example of JVM out file to understand Garbage Collection in 11i

3824.164: [GC 196725K->141181K(209864K), 0.3295949 secs]
3840.734: [GC 207741K->150466K(217032K), 0.3168890 secs]
3841.051: [Full GC 150466K->87061K(217032K), 3.2626248 secs]
3854.717: [GC 155413K->97857K(215568K), 0.2732267 secs]
3874.714: [GC 166209K->109946K(215568K), 0.3498301 secs]

1. Line 1,2 4 and 5 are example of Minor Collection
2. Line 3 (Full GC) is example of Major Collection
3. First entry in each line is time in seconds since JVM started, To find out time between two GC (Garbage Collection) just subtract second entry from first i.e. (3840.734 - 3824.164 = 16.57 seconds)
4. 196725K->141181K in first line indicates combined size of live objects before and after Garbage Collection (GC)
5. (209864K) in first line in parenthesis, represents object after minor collection that aren’t necessarily alive but can’t be reclaimed, either because they are directly alive, or because they are referenced from objects in tenured generation.
6. 0.3295949 secs in first line represents time taken to run minor collection.
7. Full GC in line three represents Full Garbage Collection or Major Collection

References

  • 362851.1  Guidelines to setup the JVM in Apps E-Business Suite 11i and R12
  • 370583.1  Basic troubleshooting of JVM consuming cpu or too many JDBC connections in Apps 11i
  • 567647.1  Using Various Garbage Collection Methods For JVM Tuning
  • 390031.1  Performance Tuning Forms Listener Servlet In Oracle Applications


Regards
Manoj

Categories of Java HotSpot VM Options


Categories of Java HotSpot VM Options (E-business suite, Apache, 10G AS)

Standard options recognized by the Java HotSpot VM are described on the Java Application Launcher reference pages for Windows, Solaris and Linux. This document deals exclusively with non-standard options recognized by the Java HotSpot VM:

    * Options that begin with -X are non-standard (not guaranteed to be supported on all VM implementations), and are subject to change without notice in subsequent releases of the JDK.
    * Options that are specified with -XX are not stable and are not recommended for casual use. These options are subject to change without notice.


Some Useful -XX Options


Default values are listed for Java SE 6 for Solaris Sparc with -server. Some options may vary per architecture/OS/JVM version. Platforms with a differing default value are listed in the description.

    * Boolean options are turned on with -XX:+<option> and turned off with -XX:-<option>.
    * Numeric options are set with -XX:<option>=<number>. Numbers can include 'm' or 'M' for megabytes, 'k' or 'K' for kilobytes, and 'g' or 'G' for gigabytes (for example, 32k is the same as 32768).
    * String options are set with -XX:<option>=<string>, are usually used to specify a file, a path, or a list of commands

Flags marked as manageable are dynamically writeable through the JDK management interface (com.sun.management.HotSpotDiagnosticMXBean API) and also through JConsole. In Monitoring and Managing Java SE 6 Platform Applications, Figure 3 shows an example. The manageable flags can also be set through jinfo -flag.

The options below are loosely grouped into three categories.

    * Behavioral options change the basic behavior of the VM.
    * Performance tuning options are knobs which can be used to tune VM performance.
    * Debugging options generally enable tracing, printing, or output of VM information.


Behavioral Options

Option and Default Value
Description
-XX:-AllowUserSignalHandlers Do not complain if the application installs signal handlers. (Relevant to Solaris and Linux only.)

-XX:AltStackSize=16384 Alternate signal stack size (in Kbytes). (Relevant to Solaris only, removed from 5.0.)

-XX:-DisableExplicitGC Disable calls to System.gc(), JVM still performs garbage collection when necessary.

-XX:+FailOverToOldVerifier Fail over to old verifier when the new type checker fails. (Introduced in 6.)

-XX:+HandlePromotionFailure The youngest generation collection does not require a guarantee of full promotion of all live objects. (Introduced in 1.4.2 update 11) [5.0 and earlier: false.]

-XX:+MaxFDLimit Bump the number of file descriptors to max. (Relevant  to Solaris only.)

-XX:PreBlockSpin=10 Spin count variable for use with -XX:+UseSpinning. Controls the maximum spin iterations allowed before entering operating system thread synchronization code. (Introduced in 1.4.2.)

-XX:-RelaxAccessControlCheck Relax the access control checks in the verifier. (Introduced in 6.)

-XX:+ScavengeBeforeFullGC Do young generation GC prior to a full GC. (Introduced in 1.4.1.)

-XX:+UseAltSigs Use alternate signals instead of SIGUSR1 and SIGUSR2 for VM internal signals. (Introduced in 1.3.1 update 9, 1.4.1. Relevant to Solaris only.)

-XX:+UseBoundThreads Bind user level threads to kernel threads. (Relevant to Solaris only.)

-XX:-UseConcMarkSweepGC Use concurrent mark-sweep collection for the old generation. (Introduced in 1.4.1)

-XX:+UseGCOverheadLimit Use a policy that limits the proportion of the VM's time that is spent in GC before an OutOfMemory error is thrown. (Introduced in 6.)

-XX:+UseLWPSynchronization Use LWP-based instead of thread based synchronization. (Introduced in 1.4.0. Relevant to Solaris only.)

-XX:-UseParallelGC Use parallel garbage collection for scavenges. (Introduced in 1.4.1)

-XX:-UseParallelOldGC Use parallel garbage collection for the full collections. Enabling this option automatically sets -XX:+UseParallelGC. (Introduced in 5.0 update 6.)

-XX:-UseSerialGC Use serial garbage collection. (Introduced in 5.0.)

-XX:-UseSpinning Enable naive spinning on Java monitor before entering operating system thread synchronizaton code. (Relevant to 1.4.2 and 5.0 only.) [1.4.2, multi-processor Windows platforms: true]

-XX:+UseTLAB Use thread-local object allocation (Introduced in 1.4.0, known as UseTLE prior to that.) [1.4.2 and earlier, x86 or with -client: false]

-XX:+UseSplitVerifier Use the new type checker with StackMapTable attributes. (Introduced in 5.0.)[5.0: false]

-XX:+UseThreadPriorities Use native thread priorities.

-XX:+UseVMInterruptibleIO Thread interrupt before or with EINTR for I/O operations results in OS_INTRPT. (Introduced in 6. Relevant to Solaris only.)


Back to Options

Performance Options

Option and Default Value
Description
-XX:+AggressiveOpts Turn on point performance compiler optimizations that are expected to be default in upcoming releases. (Introduced in 5.0 update 6.)

-XX:CompileThreshold=10000 Number of method invocations/branches before compiling [-client: 1,500]

-XX:LargePageSizeInBytes=4m Sets the large page size used for the Java heap. (Introduced in 1.4.0 update 1.) [amd64: 2m.]

-XX:MaxHeapFreeRatio=70 Maximum percentage of heap free after GC to avoid shrinking.

-XX:MaxNewSize=size Maximum size of new generation (in bytes). Since 1.4, MaxNewSize is computed as a function of NewRatio. [1.3.1 Sparc: 32m; 1.3.1 x86: 2.5m.]

-XX:MaxPermSize=64m Size of the Permanent Generation.  [5.0 and newer: 64 bit VMs are scaled 30% larger; 1.4 amd64: 96m; 1.3.1 -client: 32m.]

-XX:MinHeapFreeRatio=40 Minimum percentage of heap free after GC to avoid expansion.

-XX:NewRatio=2 Ratio of new/old generation sizes. [Sparc -client: 8; x86 -server: 8; x86 -client: 12.]-client: 4 (1.3) 8 (1.3.1+), x86: 12]

-XX:NewSize=2.125m Default size of new generation (in bytes) [5.0 and newer: 64 bit VMs are scaled 30% larger; x86: 1m; x86, 5.0 and older: 640k]

-XX:ReservedCodeCacheSize=32m Reserved code cache size (in bytes) - maximum code cache size. [Solaris 64-bit, amd64, and -server x86: 48m; in 1.5.0_06 and earlier, Solaris 64-bit and and64: 1024m.]

-XX:SurvivorRatio=8 Ratio of eden/survivor space size [Solaris amd64: 6; Sparc in 1.3.1: 25; other Solaris platforms in 5.0 and earlier: 32]

-XX:TargetSurvivorRatio=50 Desired percentage of survivor space used after scavenge.

-XX:ThreadStackSize=512 Thread Stack Size (in Kbytes). (0 means use default stack size) [Sparc: 512; Solaris x86: 320 (was 256 prior in 5.0 and earlier); Sparc 64 bit: 1024; Linux amd64: 1024 (was 0 in 5.0 and earlier); all others 0.]

-XX:+UseBiasedLocking Enable biased locking. For more details, see this tuning example. (Introduced in 5.0 update 6.) [5.0: false]

-XX:+UseFastAccessorMethods Use optimized versions of Get<Primitive>Field.

-XX:-UseISM Use Intimate Shared Memory. [Not accepted for non-Solaris platforms.] For details, see Intimate Shared Memory.

-XX:+UseLargePages Use large page memory. (Introduced in 5.0 update 5.) For details, see Java Support for Large Memory Pages.

-XX:+UseMPSS Use Multiple Page Size Support w/4mb pages for the heap. Do not use with ISM as this replaces the need for ISM. (Introduced in 1.4.0 update 1, Relevant to Solaris 9 and newer.) [1.4.1 and earlier: false]

-XX:+StringCache Enables caching of commonly allocated strings.

-XX:AllocatePrefetchLines=1 Number of cache lines to load after the last object allocation using prefetch instructions generated in JIT compiled code. Default values are 1 if the last allocated object was an instance and 3 if it was an array.

-XX:AllocatePrefetchStyle=1 Generated code style for prefetch instructions.
0 - no prefetch instructions are generate*d*,
1 - execute prefetch instructions after each allocation,
2 - use TLAB allocation watermark pointer to gate when prefetch instructions are executed.


Back to Options

Debugging Options

Option and Default Value
Description
-XX:-CITime Prints time spent in JIT Compiler. (Introduced in 1.4.0.)

-XX:ErrorFile=./hs_err_pid<pid>.log If an error occurs, save the error data to this file. (Introduced in 6.)

-XX:-ExtendedDTraceProbes Enable performance-impacting dtrace probes. (Introduced in 6. Relevant to Solaris only.)

-XX:HeapDumpPath=./java_pid<pid>.hprof Path to directory or filename for heap dump. Manageable. (Introduced in 1.4.2 update 12, 5.0 update 7.)

-XX:-HeapDumpOnOutOfMemoryError Dump heap to file when java.lang.OutOfMemoryError is thrown. Manageable. (Introduced in 1.4.2 update 12, 5.0 update 7.)

-XX:OnError="<cmd args>;<cmd args>" Run user-defined commands on fatal error. (Introduced in 1.4.2 update 9.)

-XX:OnOutOfMemoryError="<cmd args>;
<cmd args>" Run user-defined commands when an OutOfMemoryError is first thrown. (Introduced in 1.4.2 update 12, 6)

-XX:-PrintClassHistogram Print a histogram of class instances on Ctrl-Break. Manageable. (Introduced in 1.4.2.) The jmap -histo command provides equivalent functionality.

-XX:-PrintConcurrentLocks Print java.util.concurrent locks in Ctrl-Break thread dump. Manageable. (Introduced in 6.) The jstack -l command provides equivalent functionality.

-XX:-PrintCommandLineFlags Print flags that appeared on the command line. (Introduced in 5.0.)

-XX:-PrintCompilation Print message when a method is compiled.

-XX:-PrintGC Print messages at garbage collection. Manageable.

-XX:-PrintGCDetails Print more details at garbage collection. Manageable. (Introduced in 1.4.0.)

-XX:-PrintGCTimeStamps Print timestamps at garbage collection. Manageable (Introduced in 1.4.0.)

-XX:-PrintTenuringDistribution Print tenuring age information.

-XX:-TraceClassLoading Trace loading of classes.

-XX:-TraceClassLoadingPreorder Trace all classes loaded in order referenced (not loaded). (Introduced in 1.4.2.)

-XX:-TraceClassResolution Trace constant pool resolutions. (Introduced in 1.4.2.)

-XX:-TraceClassUnloading Trace unloading of classes.

-XX:-TraceLoaderConstraints Trace recording of loader constraints. (Introduced in 6.)

Regards
Manoj





Source :
http://java.sun.com/javase/technologies/hotspot/vmoptions.jsp#largepages



Solaris Command Reference
HD info(vendor, RPM, capacity)

iostat -E

sd0     Soft Errors: 0 Hard Errors: 3 Transport Errors: 0
Vendor: SEAGATE  Product: ST34371W SUN4.2G Revision: 7462 Serial No: 9742K71685
RPM: 7200 Heads: 16 Size: 4.29GB <4292075520 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 3 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0

sd1     Soft Errors: 0 Hard Errors: 3 Transport Errors: 0
Vendor: SEAGATE  Product: ST32171W SUN2.1G Revision: 7462 Serial No: 9736T74649
RPM: 5400 Heads: 19 Size: 2.13GB <2127708160 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 3 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0

sd6     Soft Errors: 0 Hard Errors: 3 Transport Errors: 0
Vendor: TOSHIBA  Product: XM5701TASUN12XCD Revision: 0997 Serial No: 04/09/97
RPM: 0 Heads: 0 Size: 18446744073.71GB <-8589934591 bytes>
Media Error: 0 Device Not Ready: 3 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0

Display the number of used and free i-nodes

df -F ufs -o i

Filesystem             iused   ifree  %iused  Mounted on
/dev/dsk/c0t3d0s0      38555  403045     9%   /
/dev/dsk/c0t1d0s0     160761  345607    32%   /export/home
/dev/md/dsk/d20       149826 1905214     7%   /usr/local
impulse:/home/dxy[4:07pm] /usr/ucb/df -i
Filesystem             iused   ifree  %iused  Mounted on
/dev/dsk/c0t3d0s0      38555  403045     9%   /
/dev/dsk/c0t1d0s0     160761  345607    32%   /export/home
/dev/md/dsk/d20       149826 1905214     7%   /usr/local
impulse:/home/dxy[4:07pm]

Display processes with the highest CPU utilization

ps -eo pid,pcpu,args | sort +1n

Display processes with the highest memory usage

ps -eo pid,vsz,args | sort +1n

Printing disk geometry and partition info

 prtvtoc /dev/rdsk/c0t0d0s0

* /dev/rdsk/c0t0d0s0 partition map
*
* Dimensions:
*     512 bytes/sector
*     135 sectors/track
*      16 tracks/cylinder
*    2160 sectors/cylinder
*    3882 cylinders
*    3880 accessible cylinders
*
* Flags:
*   1: unmountable
*  10: read-only
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       0      2    00          0   7855920   7855919   /usr/local
       1      3    01    7855920    524880   8380799
       2      5    00          0   8380800   8380799

Checking whether it's running in 32-bit mode or 64-bit mode

64-bit mode


% isalist -v 
sparcv9+vis sparcv9 sparcv8plus+vis sparcv8plus sparcv8 sparcv8-fsmuld sparcv7 sparc

% isainfo -v
64-bit sparcv9 applications
32-bit sparc applications

32-bit mode

% isalist -v
sparcv8plus+vis sparcv8plus sparcv8 sparcv8-fsmuld sparcv7 sparc

% isainfo -v
32-bit sparc applications

Verifying a route to a specified network

# route -n get xxx.yyy.zzz.0
   route to: xxx.yyy.zzz.0
destination: default
       mask: default
    gateway: xxx.yyy.aaa.254
  interface: hme0
      flags:
 recvpipe  sendpipe  ssthresh  rtt,msec    rttvar  hopcount      mtu     expire
       0         0         0         0         0         0      1500         0
#

print the version of OBP

% prtconf -V
OBP 3.3.2 1996/06/28 08:43

% /usr/platform/`uname -i`/sbin/prtdiag -v | grep OBP
  OBP 3.11.1 1997/12/03 15:53   POST 3.11.4 1997/05/27 02:26
%

{2} ok .version
Release 3.23 Version 1 created 1999/07/16 12:08
OBP 3.23.1 1999/07/16 12:08
POST 2.0.2 1998/10/19 10:46
{2} ok

print the version of Open Windows

% showrev -w

OpenWindows version:
OpenWindows Version 3.6.1 25 January 1999

%


To determine which monitor resolution is available



% /usr/sbin/ffbconfig -res \?
Valid values for -res option are:
        1024x768x60 [1]
        1024x768x70 [1]
        1024x768x75 [1] [2]
        1024x768x77
        1024x800x84
        1152x900x66
        1152x900x76
        1280x800x76 [1] [2]
        1280x1024x60 [1] [2]
        1280x1024x67
        1280x1024x76
        1280x1024x85 [1] [2]
        960x680x112s
        960x680x108s
        640x480x60 [1] [2]
        640x480x60i [1]
        768x575x50i [1]
        1440x900x76 [1] [2]
        1600x1000x66 [1] [2]
        1600x1000x76 [1] [2]
        1600x1280x76 [1] [2]
        1920x1080x72 [1] [2]
        1920x1080x76 [1] [2]
        1920x1200x70 [1] [2]
        1920x1200x75 [1] [2]
        svga [1]
        1152
        1280
        stereo
        vga [1] [2]
        ntsc [1]
        pal [1]
        none
Notes:
[1] monitor does not support this resolution.
[2] this version of FFB (FFB1) does not support this resolution.
%

system configuration

% sysdef
Display the device list (and drivers attached to devices)

% prtconf -D
System Configuration:  Sun Microsystems  sun4u
Memory size: 256 Megabytes
System Peripherals (Software Nodes):

SUNW,Ultra-1
    packages
        terminal-emulator
        deblocker
        obp-tftp
        disk-label
        ufs-file-system
    chosen
    openprom
        client-services
    options, instance #0 (driver name: options)
    aliases
    memory
    virtual-memory
    counter-timer
    sbus, instance #0 (driver name: sbus)
        SUNW,CS4231 (driver name: audiocs)
        auxio
        flashprom
        SUNW,fdtwo, instance #0 (driver name: fd)
        eeprom (driver name: eeprom)
        zs, instance #0 (driver name: zs)
        zs, instance #1 (driver name: zs)
        sc
        SUNW,pll
        SUNW,fas, instance #0 (driver name: fas)
            sd (driver name: sd)
            st (driver name: st)
            sd, instance #0 (driver name: sd)
            sd, instance #1 (driver name: sd)
            sd, instance #2 (driver name: sd)
            sd, instance #3 (driver name: sd)
            sd, instance #4 (driver name: sd)
            sd, instance #5 (driver name: sd)
            sd, instance #6 (driver name: sd)
            sd, instance #7 (driver name: sd)
            sd, instance #8 (driver name: sd)
            sd, instance #9 (driver name: sd)
            sd, instance #10 (driver name: sd)
            sd, instance #11 (driver name: sd)
            sd, instance #12 (driver name: sd)
            sd, instance #13 (driver name: sd)
            sd, instance #14 (driver name: sd)
        SUNW,hme, instance #0 (driver name: hme)
        SUNW,bpp (driver name: bpp)
    SUNW,UltraSPARC
    SUNW,ffb, instance #0 (driver name: ffb)
    pseudo, instance #0 (driver name: pseudo)

processor type, speed

% psrinfo -v
Status of processor 0 as of: 06/16/99 12:38:51
  Processor has been on-line since 02/07/99 01:47:11.
  The sparcv9 processor operates at 200 MHz,
        and has a sparcv9 floating point processor.

patch applied on the system
% showrev -p

exported file system on NFS server
% showmount -e NFS_SERVER

display current run level
% who -r

Find out a package which a file belongs to
% pkgchk -l -p /usr/lib/sendmail
Pathname: /usr/lib/sendmail
Type: regular file
Expected mode: 4555
Expected owner: root
Expected group: bin
Expected file size (bytes): 650720
Expected sum(1) of contents: 22626
Expected last modification: Apr 07 04:13:53 1999
Referenced by the following packages:
        SUNWsndmu
Current status: installed

%

Examining gcc behavior
% gcc -v -x c /dev/null

Display the version of CDE
% /usr/ccs/bin/what /usr/dt/bin/dtmail
/usr/dt/bin/dtmail:
        CDE Version 1.3.4
        CDEVersion1.3.4

Display the version of BIND
% nslookup -class=chaos -q=txt version.bind ns0.optix.org
Server:  impulse.optix.org
Address:  210.164.85.210
Aliases:  210.85.164.210.in-addr.arpa

VERSION.BIND    text = "8.2.2-P5"
% dig @ns-tk021.ocn.ad.jp version.bind chaos txt
; <<>> DiG 8.2 <<>> @ns-tk021.ocn.ad.jp version.bind chaos txt
; (1 server found)
;; res options: init recurs defnam dnsrch
;; got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0
;; QUERY SECTION:
;;      version.bind, type = TXT, class = CHAOS

;; ANSWER SECTION:
VERSION.BIND.           0S CHAOS TXT    "4.9.7-REL"

;; Total query time: 81 msec
;; FROM: velocity to SERVER: ns-tk021.ocn.ad.jp  203.139.160.103
;; WHEN: Tue May  9 17:26:23 2000
;; MSG SIZE  sent: 30  rcvd: 64

%

system configuration


% /usr/platform/`uname -i`/sbin/prtdiag
System Configuration:  Sun Microsystems  sun4u 8-slot Sun Enterprise 4000/5000
System clock frequency: 82 MHz
Memory size:  512Mb

========================= CPUs =========================

                    Run   Ecache   CPU    CPU
Brd  CPU   Module   MHz     MB    Impl.   Mask
---  ---  -------  -----  ------  ------  ----
 0     0     0      248     2.0   US-II    1.1
 0     1     1      248     2.0   US-II    1.1
 2     4     0      248     2.0   US-II    1.1
 2     5     1      248     2.0   US-II    1.1


========================= Memory =========================

                                              Intrlv.  Intrlv.
Brd   Bank   MB    Status   Condition  Speed   Factor   With
---  -----  ----  -------  ----------  -----  -------  -------
 0     0     256   Active      OK       60ns    2-way     A
 2     0     256   Active      OK       60ns    2-way     A

========================= IO Cards =========================

     Bus   Freq
Brd  Type  MHz   Slot  Name                              Model
---  ----  ----  ----  --------------------------------  ----------------------
 1   SBus   25     3   SUNW,hme                                              
 1   SBus   25     3   SUNW,fas/sd (block)                                    
 1   SBus   25    13   SUNW,soc/SUNW,pln                 501-2069            
 5   SBus   25     3   SUNW,hme                                              
 5   SBus   25     3   SUNW,fas/sd (block)                                    
 5   SBus   25    13   SUNW,soc/SUNW,pln                 501-2069            

Detached Boards
===============
  Slot  State       Type           Info
  ----  ---------   ------         -----------------------------------------
    3    disabled   disk           Disk 0: Target: 10   Disk 1: Target: 11  
    7    disabled   disk           Disk 0: Target: 14   Disk 1: Target: 15  

No failures found in System
===========================

No System Faults found
======================

Regards
Manoj


AIX Vs Linux Basic Commands



        LINUX                   AIX
===================================================
Text:
        cat                       "
        more                    "
        pg                        "
        cut                       "
        sort                      "
        grep                     "
        head                     "
        tail                        "
        join                       "
        paste                     "
        split                      "
        csplit                    "
        *awk                    "
        *sed                    "

Files:
        ls                      "
        cd                      "
        cp                      "
        mv                      "
        find                    "
        tr                      "
        df                      "
        du                      "
        cpio                    "
        file                    "
        diff                    "
        which                   "
        whatis                  "
        tar                     "
        gzip                    "
        bzip2                   "
        compress                "

Processes:
        ps                      "
        kill                    "
        nice                    "
        renice                  "
        nohup                   "
        &                       "
        ctrl+z                  "
        fg                      "
        bg                      "

Administrative stuff:
        su                          "
        passwd                  "
        chown                    "
        chmod                   "
        last                        "
        who (am i)              "
        whoami                  "
        useradd                 mkuser (better use smit)
        groupadd                mkgroup (better use smit)
        id                          "
        at                          "
        crontab                 "
        mount                   "
        -                       oslevel
        uname                   "
        ulimit                     "
        free                    bootinfo -r
        host                    "
        ifconfig                "
        netstat                 "
        ipcs                    "
        ipcrm                   "
        mail                    "
        dmesg                   alog -f /var/adm/ras/bootlog -o
        /var/log/messages       errpt -a | more
        -                             lsattr
        -                            chdev
        lsmod                   -
        modprobe                -
        insmod                  -

Printers:
        lpstat                  lpstat
        lp                      lp; enq



Performance/Monitoring:
        vmstat                  "
        sar                     "
        iostat                  "
        top; ntop               topas; monitor; nmon
        ethereal                (has to be compiled maybe)
        tcpdump                 "
        -                       filemon
        -                       svmon

LVM:
        pvdisplay               lspv
        vgdisplay               lsvg
        lvdisplay                lslv
        -                            lsfs
        pvcreate                "
        vgcreate                mkvg
        lvcreate                 mklv

Paket management:
        rpm                     installp
        rpm -qa               lslpp
        dpkg                    -
        apt-cache             -
        apt-get                 -
        -                          instfix

Shell:
        env                     "
        set                     "
        if; fi                  "
        else                    "
        elif                    "
        case; esac              "
        while; do; done         "
        for; do; done           "
        let                     "
        (())                    "
        eval                    "

Miscellaneous:
        ftp                     "
        rsh                     "
        rcp                     "
        ssh                     "
        scp                     "
        rsync                   "
        wget                    -
        yast                    smit(ty)

Regards
Manoj

  • Windows RUN Command Shotcuts


  • Accessibility Controls  :  access.cpl   
  • Add Hardware Wizard : hdwwiz.cpl 
  • Add/Remove Programs : appwiz.cpl 
  • Administrative Tools : control admintools 
  • Automatic Updates :  wuaucpl.cpl 
  • Bluetooth Transfer Wizard : fsquirt 
  • Calculator : calc 
  • Certificate Manager : certmgr.msc 
  • Character Map : charmap 
  • Check Disk Utility : chkdsk 
  • Clipboard Viewer : clipbrd 
  • Command Prompt : cmd 
  • Component Services : dcomcnfg 
  • Computer Management : compmgmt.msc 
  • Date and Time Properties : timedate.cpl 
  • DDE Shares : ddeshare 
  • Device Manager : devmgmt.msc 
  • Direct X Control Panel (If Installed)* : directx.cpl 
  • Direct X Troubleshooter : dxdiag 
  • Disk Cleanup Utility : cleanmgr 
  • Disk Defragment : dfrg.msc 
  • Disk Management : diskmgmt.msc 
  • Disk Partition Manager : diskpart 
  • Display Properties : control desktop 
  • Display Properties : desk.cpl 
  • Display Properties (w/Appearance Tab Preselected) : control color 
  • Dr. Watson System Troubleshooting Utility : drwtsn32 
  • Driver Verifier Utility : verifier 
  • Event Viewer : eventvwr.msc 
  • File Signature Verification Tool : sigverif 
  • Findfast : findfast.cpl 
  • Folders Properties : control folders 
  • Fonts : control fonts 
  • Fonts Folder : fonts 
  • Free Cell Card Game : freecell 
  • Game Controllers : joy.cpl 
  • Group Policy Editor (XP Prof) : gpedit.msc 
  • Hearts Card Game : mshearts 
  • Iexpress Wizard : iexpress 
  • Indexing Service : ciadv.msc 
  • Internet Properties : inetcpl.cpl 
  • IP Configuration (Display Connection Configuration) : ipconfig /all 
  • IP Configuration (Display DNS Cache Contents) : ipconfig /displaydns 
  • IP Configuration (Delete DNS Cache Contents) : ipconfig /flushdns 
  • IP Configuration (Release All Connections) : ipconfig /release 
  • IP Configuration (Renew All Connections) : ipconfig /renew  
  • IP Configuration (Refreshes DHCP & Re-Registers DNS) : ipconfig /registerdns 
  • IP Configuration (Display DHCP Class ID) : ipconfig /showclassid 
  • IP Configuration (Modifies DHCP Class ID) : ipconfig /setclassid 
  • Java Control Panel (If Installed) : jpicpl32.cpl 
  • Java Control Panel (If Installed) : javaws 
  • Keyboard Properties : control keyboard 
  • Local Security Settings : secpol.msc 
  • Local Users and Groups : lusrmgr.msc 
  • Logs You Out Of Windows : logoff 
  • Microsoft Chat : winchat 
  • Minesweeper Game : winmine 
  • Mouse Properties : control mouse  
  • Mouse Properties : main.cpl 
  • Network Connections : control netconnections 
  • Network Connections : ncpa.cpl 
  • Network Setup Wizard : netsetup.cpl 
  • Notepad : notepad 
  • Nview Desktop Manager (If Installed) : nvtuicpl.cpl 
  • Object Packager : packager 
  • ODBC Data Source Administrator : odbccp32.cpl 
  • On Screen Keyboard : osk 
  • Opens AC3 Filter (If Installed) : ac3filter.cpl 
  • Password Properties : password.cpl 
  • Performance Monitor : perfmon.msc 
  • Performance Monitor : perfmon 
  • Phone and Modem Options : telephon.cpl 
  • Power Configuration : powercfg.cpl 
  • Printers and Faxes : control printers 
  • Printers Folder : printers 
  • Private Character Editor : eudcedit 
  • Quicktime (If Installed) : QuickTime.cpl 
  • Regional Settings : intl.cpl 
  • Registry Editor : regedit 
  • Registry Editor : regedit32 
  • Remote Desktop : mstsc 
  • Removable Storage : ntmsmgr.msc 
  • Removable Storage Operator Requests : ntmsoprq.msc 
  • Resultant Set of Policy (XP Prof) : rsop.msc 
  • Scanners and Cameras : sticpl.cpl 
  • Scheduled Tasks : control schedtasks 
  • Security Center : wscui.cpl 
  • Services : services.msc 
  • Shared Folders : fsmgmt.msc 
  • Shuts Down Windows : shutdown 
  • Sounds and Audio : mmsys.cpl 
  • Spider Solitare Card Game : spider 
  • SQL Client Configuration : cliconfg 
  • System Configuration Editor : sysedit 
  • System Configuration Utility : msconfig 
  • System File Checker Utility (Scan Immediately) : sfc /scannow 
  • System File Checker Utility (Scan Once At Next Boot) : sfc /scanonce 
  • System File Checker Utility (Scan On Every Boot) : sfc /scanboot 
  • System File Checker Utility (Return to Default Setting) : sfc /revert 
  • System File Checker Utility (Purge File Cache) : sfc /purgecache  
  • System File Checker Utility (Set Cache Size to size x) : sfc /cachesize=x 
  • System Properties : sysdm.cpl 
  • Task Manager : taskmgr 
  • Telnet Client : telnet 
  • User Account Management : nusrmgr.cpl 
  • Utility Manager : utilman 
  • Windows Firewall : firewall.cpl 
  • Windows Magnifier : magnify 
  • Windows Management Infrastructure : wmimgmt.msc 
  • Windows System Security Tool : syskey 
  • Windows Update Launches : wupdmgr 
  • Windows XP Tour Wizard : tourstart 
  • Wordpad : write
    Regards 
    Manoj


Direct NFS Client – Performance, Scalability, and High Availability


Direct NFS Client – Performance, Scalability, and High Availability


Direct NFS Client includes two fundamental I/O optimizations to increase throughput and overall performance. First, Direct NFS Client is capable of performing concurrent direct I/O, which bypasses any operating system level caches and eliminates any operating system write-ordering locks. This decreases memory consumption by eliminating scenarios where Oracle data is cached both in the SGA and in the operating system cache and eliminates the kernel mode CPU cost of copying data from the operating system cache into the SGA. Second, Direct NFS Client performs asynchronous I/O, which allows processing to continue while the I/O request is submitted and processed. Direct NFS Client, therefore, leverages the tight integration with the Oracle Database software to provide unparalleled performance when compared to the operating system kernel NFS clients. Not only does Direct NFS Client outperform traditional NFS, it does so while consuming fewer system resources. The results of a detailed performance analysis are discussed later in this paper.

Oracle Direct NFS Client currently supports up to 4 parallel network paths to provide scalability and high availability. Direct NFS Client delivers optimized performance by automatically load balancing requests across all specified paths. If one network path fails, then Direct NFS Client will reissue commands over any remaining paths – ensuring fault tolerance and high availability.

Regards
Manoj

Friday, February 19, 2010

Check if OS is 32/64 bit..

Check 32/64 bit
AIX: getconf -a | grep KERN OR file
Sun: isainfo -v
Linux: uname -a

'file' command works on all unix platforms

Thursday, February 11, 2010

Broken Pipe

Broken Pipe
-----------

Create two named pipes, p1 and p2. Run the commands:

echo -n x | cat - p1 > p2 &
cat p1

On screen, it will not appear that anything is happening, but if you run top (a command similar to ps for showing process status), you'll see that both cat programs are running like crazy copying the letter x back and forth in an endless loop.

After you press ctrl-C to get out of the loop, you may receive the message “broken pipe”. This error occurs when the process reading the pipe closes its end while a process is writing to a pipe. Since the reader is gone, the data has no place to go. Normally, the writer will finish writing its data and close the pipe. At this point, the reader sees the EOF (end of file) and executes the request.

Whether or not the “broken pipe” message is issued depends on events at the exact instant the ctrl-C is pressed. If the second cat has just read the x, pressing ctrl-C stops the second cat, pipe1 is closed and the first cat stops quietly, i.e., without a message. On the other hand, if the second cat is waiting for the first to write the x, ctrl-C causes pipe2 to close before the first cat can write to it, and the error message is issued. This sort of random behavior is known as a “race condition”.

Source (online linux journal)

Regards
Manoj

Oracle E-business suite logs clean up

 Oracle E-business suite logs clean up #!/bin/bash cd $EBS_DOMAIN_HOME find $EBS_DOMAIN_HOME -type f -path "*/logs/*.log?*" -mtime...