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.

    • 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 ...
    • Popular Articles

    • Old Browser Versions

      Question: I am using an older browser version and am having problems. What can be done ? We are not able to upgrade the browser at this time.   This is a challenge for any company that makes software that utilizes a browser. Since Stoneware does not ...
    • LCS Redirection

      Problem: How to redirect the LCS in an environment with multiple LCSs and students connecting to them. Solution(s): Create an allow.cfg on all LCS(s) (including the Master) in the network, however, even if no allow.cfg is present on an LCS, machines ...
    • Time windows allows for Service Shutdown

      Issue: Can the time windows gives a service to shut down before it kills the service be increased? Solution: Yes, the following information comes from the Microsoft URL : http://support.microsoft.com/kb/146092 To specify the wait time, do the ...
    • How to disable password saving - Internet Explorer

      Having multiple methods for saving a password in the browser can cause confusion for the user.   To disable password saving in Internet Explorer, launch Internet Explorer and perform the following steps. Click the blue Settings menu icon in the upper ...
    • How to disable password saving - Chrome

      Having multiple methods for saving a password in the browser can cause confusion for the user.  To disable password saving in Chrome, launch Chrome and perform the following steps. Click the Chrome menu button in the upper right corner of the Chrome ...
    • Recent Articles

    • SAML Service Provider

      Issue How can I use a 3rd Party service (such as ADFS, Office365, or OneLogin) to SSO into UW? Solution The SAML Service Provider (SP) features allows another Identity Provider (IDP) to single sign-on into Unified Workspace using SAML for a seamless ...
    • Lenovo Unified Workspace 7.0.0.63 Released

      Highlights of Unified Workspace 7.0.0.63 Before you install: Please view the installation notes here. 7.0.0.63 Requires new 7.0 license file. Below is a list of enhancements and fixes for Unified Workspace 7.0.0.63 New Profile Style New Login ...
    • How to fix customized login and profile after upgrading to v7.0

      With the release of 7.0 the default login page has been modified to simplify the customization process.  If you are having an issue with the login page not displaying, after upgrading to v7.0, you will need to delete the custom CSS code and start ...
    • SAML SP - Sync Directory Password

      Login script to prompt for directory password Since the user does not login into Unified Workspace with a password, we cannot capture the password to use in the @@password@@ variable.  If you would like to use the Active Directory password for other ...
    • MySQL 8 SSL

      Issue Admin is making a database connection to a MySQL 8 database.  When clicking the Ping button on the DB Connection object, the following error is presented: WARN: Establishing SSL connection without server's identity verification is not ...