For many applications garbage collection performance is not significant

Default collector should be first choice

There are essentially two GC threads running. One is a very lightweight thread which does "little" collections primarily on the Eden (a.k.a. Young) generation of the heap. The other is the Full GC thread which traverses the entire heap when there is not enough memory left to allocate space for objects which get promoted from the Eden to the older generation(s).
If there is a memory leak or inadequate heap allocated, eventually the older generation will start to run out of room causing the Full GC thread to run (nearly) continuously. Since this process "stops the world", Resin won't be able to respond to requests and they'll start to back up.
Read More on Tuning Garbage collection with the 1.4.2 Hotspot JVM

Question:
I could connect to DB2 database on AS/400, but cannot> see any DBM or DB configuration. Is database or database manager> configuration available for DB2 on Z/OS, OS/390 or AS/400?Solution:
Most of the config parms for DB2 for z/OS are in the zparms. The zparms arenot closely related to either the db or dbm configuration parms on DB2 forLinux, UNIX, and Windows. Usually only the DB2 systems programmer (not theDBA) can change the zparms.

Scenario:I have a TAB Delimited and it contain 10 fields., and Presently this is downloading into testfile.txt importing into excel spreedsheet.
Now, I need to automate this process. by writing a program which sends this file to Spreadsheet.

Solution:A spreadsheet is not a mainframe entity, so can not be created on the mainframe.

As far as I can remember, this could not be done by a mainframe process, and that the current way that this task is currently being performed is the only way.

Can Someone let me know how to ZIP file from UNIX system and UNZIP in Mainframes.
We have PKZIP in our system os/390
Can any one have the JCL to unzip the file zipped in unix by using gzip.

Solution:

gunzip and gzip typically work under Unix System Services (USS) on USS files.If you're asking for specific JCL to run PKZIP against your file, shouldn't you contact your site support group or the PKZIP vendor for assistance and/or the manual? The precise JCL will be site-dependent and may vary depending on how and where PKZIP was installed.

The GZIP standard does not support PKWARE archive attributes; therefore, some
SecureZIP features are not available for use when the GZIP format is enabled. Some
features which are excluded from use are: strong encryption, digital signatures,
multiple files per GZIP stream, self-extracting archives.
• When enabled with GZIP, password-based 96-bit encryption is supported for decryption
under PKZIP for MVS, PKZIP for zSeries, PKZIP for OS/400, PKZIP for i5/OS,
SecureZIP for i5/OS, PKZIP for z/OS, and SecureZIP for z/OS.
• When processing input GZIP archives, see also: GZIP_SUFFIX and GZIPCRC_IGNORE

For example, if i want to find the word "hello" in a unix directory /tmp and all its subdirectories in the .log files? i want the file name, file path, and line number with context.

Solution:

find /tmp -name \*.log -exec grep pall {} \; -exec ls -l {} \;

The find command you probably know. It searches for files or directorys where you want him to search and to what pattern to match.

So :
"find /tmp" says only start searching in /tmp
"-name \*.log" says to look for all files or directory ending with "log" the \ before the star says to not look for a file or directory named "*log" but to make it a pattern
"-exec grep pall {} \;" says that the result of find in /tmp with the pattern ending on "log" should do the following : "grep hello /tmp/script" so {} \; is replaced with the current result. It's hard to explain the syntax, I think you should just take this as it is and copy the syntax when you need it
"-exec ls -l {} \;" has the same syntax and executes the ls -l command for the current result. If you don't do this last -exec you don't know what file he grep the text from.

The Document Object Model (DOM) is an application programming interface (API) for valid HTML and well-formed XML documents. It defines the logical structure of documents and the way a document is accessed and manipulated. In the DOM specification, the term "document" is used in the broad sense - increasingly, XML is being used as a way of representing many different kinds of information that may be stored in diverse systems, and much of this would traditionally be seen as data rather than as documents. Nevertheless, XML presents this data as documents, and the DOM may be used to manage this data.

The DOM is an interface that exposes an XML document as a tree structure comprised of nodes. The DOM allows you to programmatically navigate the tree and add, change and delete any of its elements.

SAX parser is a Event Driven Parser. You provide the callback methods, and the parser invokes them as it reads the XML data. Finally, you can't "back up" to an earlier part of the document, or rearrange it, any more than you can back up a serial data stream or rearrange characters you have read from that stream. The following Packages need to be imported in your Java File to use the SAX parser.

As seen above first we get a new instance of SAXParserFactory and from this one we create a new Instance of SaxParser. To the Parse Method of SaxParser, we pass two parameters, name of the XML File and the class which implements interface HandlerBase

Currently in our Code, the same JavaFile, BooksLibrary.java implements interface HandlerBase.

Note:
The javax.xml.parsers.SAXParser class is a wrapper that defines a number of convenience methods. It wraps the org.xml.sax.Parser object. If needed, you can obtain that parser using the SAXParser's getParser() method.

The Following Methods needs to be implemented from the DocumentHandlerBase Interface, and Description above each methods explains when this Method is called. These Methods are called automatically while parsing the XML file and when the corresponding data element is reached. Please refer to the attached Java Source File to see how these methods are implemented. When you run this Program the output will clearly show When a attribute is reached and when a Element is reached and how each of these methods are called.

Here’s an example to demonstrate how to read a XML file in Java with DOM parser. The DOM interface is the easiest to understand. It parses an entire XML document and load it into memory, modeling it with Object for the traversal.

SAX parser is work differently with DOM parser, it does not load any XML document into memory and create some object representation of the XML document. Instead, the SAX parser use callback function (org.xml.sax.helpers.DefaultHandler) to informs clients of the XML document structure.