Newsletters Subscriptions Forums Media Kit About Us Contact Search Home

mgo
OS/400 Edition
Volume 3, Number 75 -- November 7, 2003

Customizing the WDSc JVM


Hey, David:

We are starting on our first major Java project and went with WDSc 5.0 for our IDE. We will be working on the project for about six months and will not be able to switch IDEs once we get started.

The consultant on the project recommended that we consider Eclipse because it meets the project's requirements and is easier to install. He also said the ability to run Eclipse with a 1.4 JDK is an advantage because it offers better debugging support and matches our iSeries deployment environment.

We went with WDSc because it supports CL, DDS, and RPG. I trust our consultant, but I don't understand why the JDK changes debugging.

--Travis


Java is evolving quickly, and new features are being added all the time. Because of this, every new JDK version offers some compelling new features. One of the compelling features included with 1.4 JDKs is the capability to hot-swap changes made during debugging. That means you can use the debugger to step into a piece of code, change that code, recompile the code, and continue debugging using the changed code.

Along with compelling new features, each new version of Java adds performance improvements. By default, WDSc (WebSphere Development Studio client) uses IBM's 1.3.1 JDK for Windows. When it was released, IBM's 1.3.1 JDK was much faster than anything Sun had to offer. Since IBM released its 1.3.1 JDK, Sun Microsystems released its 1.4 JDK, along with several revisions.

I use WDSc daily and was happy with IBM's default JDK. Your message prompted me to try running WDSc with Sun's 1.4 JDK. Based on some prior experience I had while profiling Web sites running on Sun's JDK, I was able to get WDSc to start more quickly and to run a little faster on my development system. As a bonus I get the benefit of hot-swap debugging.

Here are the steps I followed.

First, I removed the vmargs setting from the wdsc.ini and wsappdev.ini files. Before you change those files, make a backup; I copied mine to wdsc.bak and wsappdev.bak. On my system, those files were installed in C:\Program Files\IBM\Websphere Studio.

The next thing I did was download and install Sun's latest 1.4.1 JDK, which was 1.4.1_05 when I wrote this. I also tried running Eclipse with Sun's 1.4.2 and 1.4.2_02 JDKs, but WDSc received an error during startup.

After I installed Sun's JDK, I changed the start menu option that starts WDSc. To change the option, I right-clicked it and selected Properties. Next, I added the following parameters to the end of the target string:

-vm C:\java\sdk\j2sdk1.4.1_05\bin\javaw.exe -vmargs 
   -Xverify:none -Xoptimize -Xms128m –Xmx384m

These options tell WDSc to use the Java Virtual Machine (JVM) that is specified with the startup options that follow -vmargs. In this case, the -Xverify:none option tells the JVM to skip byte-code verification, which offers a significant performance improvement with little risk in a stand-alone environment. The -server option tells the JVM to use the server mode Java compiler. I have found that server mode offers more consistent performance with fewer pauses for longer running jobs. The -Xms and -Xmx options set up the minimum and maximum heap sizes allocated to the JVM.

The memory options are very important and have the most impact on garbage collection. I find a ratio of about 1 to 3 works well, and set the maximum allocation to the smallest size that will safely prevent out-of-memory errors.

There are quite a few other JVM startup options you can try that are described on Sun's Java performance site. The only way to find out what will work in your environment is to test. I have tried all of the various garbage collectors and garbage-collection settings and have found that on a single-processor system, the default garbage collector with reasonable minimum and maximum heap sizes worked best.

If you decide to experiment, and find something that works well, let me know, so we can share your discoveries.

--David


Sponsored By
GST

AIT Backup for iSeries

GST, Inc.
Phone: 866-478-4621 or 949-900-1090 (for sales x 300)
Web: http://www.gstinc.com
Email: sales@gstinc.com

---------------------------------------------------------------------

SUMMARY

Compact, modular and reliable backup solution at unbeatable prices

· Powerful 3lb drive in small form factor
· LCD module for backup effiency
· Capacity up to 260GB
· Speed up to 112GB/hour
· LVD, HVD, and fibre connectivity
· Starts at $2,000 USD

---------------------------------------------------------------------

THE BIG PICTURE

· A single AIT tape drive in external, modular, stackable enclosure.
· Capacity: AIT-3 100GB native (260 GB compressed).
· Speed: AIT-3 43GB/hour native (112GB/hour compressed).
· Single subsystem is field-upgradeable to dual drive subsystem.
· LCD display panel improves backup efficiency.
· Supports AIT-1, AIT-2 and AIT-3.
· Roadmap to AIT-4, AIT-5, AIT-6.
· AIT range: single drive to enterprise-wide libraries.
· Supports LVD and HVD SCSI connections directly.
· Supports Fibre Channel via our bridges and routers.

The Single AIT Tape Subsystem is part of GST's EntryDR™ family. Single AIT Tape Subsystems are housed in upgradeable modular enclosures. This subsystem delivers high-performance and high reliability at cost-effective pricing to meet basic backup needs for the small to medium range of servers.

Building-block modularity enables the Single AIT Tape Subsystem to be upgraded to GST's Dual AIT Tape Subsystem to strengthen disaster recovery protection. An LCD panel provides an advanced operator interface for visibility over the backup operation.

The Single AIT Tape Subsystem can backup IBM eServer family members: iSeries, pSeries and xSeries servers. They connect natively with LVD (low voltage differential) and HVD (high voltage differential) SCSI connections, and with Fibre Channel (FC) through our BridgeLink™ family of bridges and SanMatrix™ family of routers. Model overview.

GST's Single AIT Tape Subsystem is available in a variety of models. Each AIT technology (AIT-1, AIT-2, AIT-3) is available in two server-to-SCSI Adapter interfaces:

LOW VOLTAGE DIFFERENTIAL (LVD). Connectivity with eServer family. iSeries uses IBM SCSI Adapter feature code: FC 5702, 5705. pSeries and xSeries servers use a variety of LVD SCSI adapters.

HIGH VOLTAGE DIFFERENTIAL (HVD). Connectivity with eServer family. iSeries uses IBM SCSI Adapter feature code: FC 2729, 2749, 6501, 6534. pSeries and xSeries servers use a variety of HVD SCSI adapters.

AIT TECHNOLOGY

AIT tape technology has evolved through three generations: AIT-1, AIT-2 and AIT-3 and provides outstanding capacity and performance with a highly stable technology roadmap. AIT cartridges utilize Memory-in-Cassette (MIC) architecture providing rapid time-to-data and multiple load points for partitioning data.

Native cartridge capacities for AIT-1, AIT-2 and AIT-3 are 35GB, 50GB and 100GB (91GB, 130GB, 260GB compressed) with speeds of 14GB/hour, 22GB/hour and 43GB/hour (37GB/hour, 56GB/hour and 112GB/hour compressed). Scalability is planned to a 6th generation product with native capacity of 800GB (2TB compressed) and a speed of 345GB/hour (900GB/hour compressed). A 2-to-1 compression ratio is achieved with Adaptive Lossless Data Compression (ALDC) technology.

KEY BENEFITS

DUAL DRIVE UPGRADE - A second modular drive and controller can be added later to upgrade to a Dual AIT Tape Subsystem as backup needs evolve that require DR protection, fault tolerant backup or greater unattended backup capacity.

HARDWARE INVESTMENT PROTECTION - The modular design of the Single AIT Tape Subsystem protects user investment by permitting the original single drive unit to be retained unmodified as part of the upgraded Dual AIT Tape Subsystem.

SPACE SAVER - The small dimensions and weight of the modular configurations facilitate the optimum use of datacenter space.

MEDIA INVESTMENT PROTECTION - For IT sites with an investment in AIT-1 media and drives, the newer AIT-2 and AIT-3 technologies are backward-read compatible, and forward-read compatible to future generations.

SERVICEABILITY - Modularity of design permits individual drives to be easily replaced in building-block fashion by the user.

KEY FEATURES

STACKABLE ENCLOSURES - Individual modular enclosures enable each drive and the mirrored backup controller to be handled as separate building blocks; facilitates field upgrade from single to dual drives.

LCD DISPLAY PANEL - Multi-function LCD continuously displays drive and backup status.

CONVENIENT DRIVE INTERFACE - RS232 interface for updating firmware and optimizing drive performance.

SERVICE AND SUPPORT - A variety of support programs provide installation and onsite service; includes GST's Accelerated Ship Program (GASP) to get replacement units on the scene rapidly.

WARRANTY - Purchase price includes a built-in manufacturer's warranty of three years.

GST, Inc.
Phone: 866-478-4621 or 949-900-1090 (for sales x 300)
Web: http://www.gstinc.com
Email: sales@gstinc.com



THIS ISSUE
SPONSORED BY:

Advanced Systems Concepts
GST


BACK ISSUES

TABLE OF
CONTENTS

Pesky Date Conversions with a UDF

Customizing the WDSc JVM

Reader Feedback and Insights: Library List Management


Editors
Howard Arner
Joe Hertvik
Ted Holt
David Morris

Managing Editor
Shannon Pastore

Publisher and
Advertising Director:

Jenny Thomas

Advertising Sales Representative
Kim Reed

Contact the Editors
Do you have a gripe, inside dope or an opinion?
Email the editors:
editors@itjungle.com

Copyright © 1996-2008 Guild Companies, Inc. All Rights Reserved.