GMS running out of available connections, devices cannot connect to a mobility connector.

  • 7024425
  • 11-Feb-2020
  • 13-Feb-2020

Environment

GroupWise 18
GroupWise Mobility Service 18

Situation

You might run into situations when no devices can connect to your GMS server and that is despite no firewall changes has been done which is typical source of problems otherwise. You can verify if this scenario is your problem using curl script from GMS server directly to see if port 443 is available and if the GMS replies. Bellow is example of working GMS server:

gms1820:~ # curl -k https://<IP address>

<html><body><div id="header"><h1>Server Error</h1></div><div id="content"><div class="content-container">
<fieldset><h2>403 - Forbidden: Access is denied.</h2><h3>You do not have permission to view this directory or page using the credentials that you supplied.</h3></fieldset></div></div></body></html>

If the connection times-out and you do not get any output of this simple command, then your GMS server has no available resources/connections to listen on port 443 where devices are connecting to.

Resolution

Typical situation when a GMS server is rather busy servicing too many devices in the same time. For instance, when some mass email is sent to all employees and all of them are also GMS users with one or more devices. Then each device is trying to connect and download this new mail.
 
By default, SLES12/15 has limit to a number of connection set to 4096 which is typically sufficient for for most of common situations. However, if you often see that your GMS server cannot accept/answer requests on port 443, you might consider to set this limit higher:

1. Edit system.conf file in /etc/systemd directory.
Find the [Manager] section and enable DefaultLimitNOFILE parameter. Set it to unlimited:

DefaultLimitNOFILE=infinity

2. Edit limits.conf file from /etc/security directory.
Add following two lines near the end of file:

* soft nofile 65534
* hard nofile 65534

Once you saved changes of these two files, restart the GMS host server.

Please also see TID 7014654 to determine if an increase of device threads are needed.

Status

Top Issue