OutOfMemoryError Encountered while Upgrading or Patching the GlassFish Server (Doc ID 1215963.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle GlassFish Server - Version 2.1 to 2.1.1 [Release 2.1]
Information in this document applies to any platform.

Symptoms

When patching or upgrading GlassFish Server the following "OutOfMemoryError" error may occasionally be encountered.

For example:

Installing Sun GlassFish Enterprise Server 
 |-1%--------------25%-----------------50%-2009/07/29 2:38:52 
 com.sun.jbi.upgrade.JBIUpgradeToolImpl upgradeJBISystemComponentsInDomain
 INFO: Parsing JBI registry
 2009/07/29 2:38:53 com.sun.jbi.upgrade.JBIUpgradeToolImpl
 upgradeJBISystemComponentsInDomain
 INFO: Upgrading JBI system components
 2009/07/29 2:38:53 com.sun.jbi.upgrade.JBIUpgradeToolImpl
 upgradeJBISystemComponentsInDomain
 INFO: Starting JBI component upgrade or migrate: "sun-http-binding"
 2009/07/29 2:38:53 com.sun.jbi.upgrade.JBIUpgradeToolImpl
 upgradeJBISystemComponentsInDomain
 WARN: Same or newer version of component "sun-http-binding" found in
 destination domain, upgrade for this component will be skipped. 
 2009/07/29 2:38:53 com.sun.jbi.upgrade.JBIUpgradeToolImpl
 upgradeJBISystemComponentsInDomain
 INFO: Starting JBI component upgrade or migrate: "sun-javaee-engine"
 2009/07/29 2:38:53 com.sun.jbi.upgrade.JBIUpgradeToolImpl
 upgradeJBISystemComponentsInDomain
 INFO: JBI component "sun-javaee-engine" has been successfully upgraded
 2009/07/29 2:38:53 com.sun.jbi.upgrade.JBIUpgradeToolImpl
 upgradeJBISystemComponentsInDomain
 INFO: Upgrading JBI system shared libraries
 2009/07/29 2:38:53 com.sun.jbi.upgrade.JBIUpgradeToolImpl
 upgradeJBISystemComponentsInDomain
 INFO: Starting JBI shared library upgrade: "sun-wsdl-library"
 2009/07/29 2:38:53 com.sun.jbi.upgrade.JBIUpgradeToolImpl
 upgradeJBISystemComponentsInDomain
 INFO: JBI shared library "sun-wsdl-library" has been successfully 
    Exception in thread "Thread-9" java.lang.OutOfMemoryError: Java heap space
    at java.util.Arrays.copyOfRange(Arrays.java:3209)
    at java.lang.String.<init (String.java:216)
    at java.io.BufferedReader.readLine(BufferedReader.java:331)
    at java.io.BufferedReader.readLine(BufferedReader.java:362)
    at com.sun.enterprise.installer.utilities.IORoutines.prepareFile(IORoutines.java:60)
    at com.sun.enterprise.installer.utilities.IORoutines.init(IORoutines.java:43)
    at com.sun.enterprise.installer.windows.actions.PostInstall_UpdateClient.initializeVariables  (PostInstall_UpdateClient.java:68)
    at com.sun.enterprise.installer.windows.actions.PostInstall_UpdateClient.install(PostInstall_UpdateClient.java:94)
    at com.sun.install.products.InstallComponent.performInstallation(InstallComponent.java:1325) 
    at com.sun.install.products.InstallNode.startInstall(InstallNode.java:984) 
    at com.sun.install.products.InstallComponent.performInstallation(InstallComponent.java:1322)
    at com.sun.install.products.InstallNode.startInstall(InstallNode.java:984)
    at com.sun.install.products.InstallComponent.performInstallation(InstallComponent.java:1322)
    at com.sun.install.products.Product.performInstallation(Product.java:653)
    at com.sun.install.tasks.ProductTask.perform(ProductTask.java:191)
    at com.sun.wizards.core.Sequence.perform(Sequence.java:336)
    at com.sun.wizards.core.SequenceManager.run(SequenceManager.java:226)
    at java.lang.Thread.run(Thread.java:619)

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms