Out of Memory / Permgen Error

Out of Memory / Permgen Error

Customer states that their portal ( relay / loader / server ) is running out of memory.


There are two separate memory pools that can run out.
The main java memory allocated to webNetwork and the permgen memory.

When it is the permgen running out of memory, the message : " java.lang.OutOfMemoryError: PermGen space " Is typically displayed on the webNetwork console or possibly the VIEW LOG.
To fix this, modify the stoneware webnetwork.lax file, locate the line that starts with : lax.nl.java.option.additional=
Look for the parameters : -XX:PermSize=64m -XX:MaxPermSize=512m
If those do not exist, add them to the end. Save and shut down webNetwork and start it back up. Check this on all of your servers.

If they do exist then there are other things that should be checked before increasing the MaxPermSize.
The first thing to check is the relay object and verify if Request Logging is enabled and if that is going to an HSQL database.
The HSQL database can not handle large amounts of information and can get corrupt because it is a file based database, and is not as resilient as other databases like MySQL or MSSQL.

It is a sure sign that if you see the errors around midnight that it is a Relay Request Logging database issue because that is when it tries to purge old data.
Check on the webNetwork server (the database files may be on each stoneware install, but are only utilized on the main webNetwork server a.k.a : Loaders) for the size of stonewarehsqllogging.data
If this is over 500 meg there is a chance that it is corrupt.
Go to webadmin, find the relay object, click on it, go to the "relay logging" panel and either disable logging or make sure it is set to rotate.
Shut down webNetwork, go to stonewarehsql delete logging.* then copy stonewarehsqloriglogging.* to stonewarehsql
This will replace the logging database files with a fresh non-corrupt copy.
Start webNetwork back up.

If you see errors like : An exception was thrown: java.rmi.ServerError: Error occurred in server thread; nested exception is: java.lang.OutOfMemoryError: unable to create new native thread

Then you may not have enough memory allocated to Java.
Edit stoneware inwebnetwork.lax
Locate the line that starts with : lax.nl.java.option.additional=
Example of what the memory parameters may look like : -Xms64m -Xmx512m
You will want to change the -Xmx???m one to something appropriate.
If you are on a 32 bit server OS and have more than 1.5 gig of ram. Set this number to -Xmx8192m. (1024 is the max for a 32 bit OS)
If you have less than 1 GB of RAM in server, then set the memory to approximately 256 MB less than your amount of ram. For Example if you have 1 GB of RAM, set the -Xmx to 768

You may also see out of memory errors if you have done a restart server or restart relay many times. There is a known bug that does not free up all memory during a restart.

    Can't find the KB

    Unable to find the KB to address your issue ?  

      • Recent Articles

      • Change Reset Password Button Text

        Change the text of the "Reset Password" button on the UW Login Page How to change the text of the Reset Password button on the Login Page. Login to webNetwork and open webAdmin on your Relay Central Server Expand Customization Center Expand Tenants ...
      • Remove Reset Password Button From Login Page

        Remove the Reset Password Button from the Login Page How to remove the Reset Password button from the Unified Workspace login page. Login to webNetwork and open webAdmin on your Relay Central Server Expand Customization Center Expand Tenants Expand ...
      • Lenovo Unified Workspace End-of-Life Questions and Answers

        As of January 31st 2024, Lenovo Unified Workspace (formerly Stoneware WebNetwork) is no longer supported. This means that we no longer provide licenses, downloads, updates, patches, or technical assistance for this product. If you have any questions ...
      • How do I determine my Unified Workspace license expiration date?

        The best method for determining the licensing information including the expiration date of your Unified Workspace license: Login to your 8090 management console on each server This may take remoting into each LUW server and relay, opening a browser, ...
      • Lenovo Unified Workspace 7.0.2.13 Released

        Highlights of Unified Workspace 7.0.2.13 Before you install: Please view the installation notes here. 7.0.2.13 requires a 7.0 license file. Below is a list of enhancements and fixes released in Unified Workspace 7.0.2.13 Fixed external storage ...
      • Related Articles

      • CIFS Error Codes

        Question: What do the CIFS / SMB error codes mean ? Solution: For a large table of NT codes, see https://customer.lenovosoftware.com/support/techdocs/v6/cifs-nt-codes.txt    jcifs code        nt code 1 0x00000000 0x00000000 NT_STATUS_OK 0 0xc0000001 ...
      • Slowness during login

        Customer noticed that after a while logins slowed way down. What are the things to check ? 1) Check if the relay object has logging turned on.  a. If it is turned on, then check if it is configured for a DB.     i. If it is configured for a database, ...
      • How to adjust memory parameters

        Problem:  Need to adjust memory of Unified Workspace (webNetwork). Prerequisite(s): Unified Workspace 6.3.0.232 or higher TCP port 8090 is open to server(s) OR  Remote access to server(s) Solution(s):  Adjust the parameters in the Server Management ...
      • License error

        While using Microsoft Terminal Services things just stop working. No error message, or after a while it would say that it could not connect at the browser. In the EVENT VIEWER on the terminal server it would say "the terminal server cannot issue a ...
      • Error changing AD Password

        The user is trying to change their password via the portal and is getting an error that the Directory Services was unable to change the password. The following error shows on the loader console : DEBUG ...