Network Management
SWIS uses a lot of memory due to the overloading of Feature service and causing performance issues in SolarWinds Platform 2022.3
Feature service is called SWIS when GetFeatures() is called. This call most likely causes the end overloading of Feature service with requests to GetFeatures() and causes Orion down for some time in 2022.3
First published date
Last published date
Overview
Product section
Cause
The feature service is querying SWIS during feature loading to get SPM configuration, and it fails when SWIS gets overloaded with other requests that are waiting for licensed features cache update, so it gets to a communication deadlock.
SWIS stops responding to requests, and it consumes more and more memory in time.
In the LicensingBusinesslayer log you will see errors similar to this below:
Unable to load features.
System.ServiceModel.CommunicationException: The socket connection was aborted. This could be caused by an error processing your message or a receive timeout being exceeded by the remote host, or an underlying network resource issue. Local socket timeout was '01:00:00'. ---> System.Net.Sockets.SocketException: An existing connection was forcibly closed by the remote host
You may also see long-running queries in SWIS related to LicensesCount similar to this below:
Resolution
This issue is resolved in SolarWinds Platform 2022.4 and above. If an upgrade is not possible, perform one of the options below:
Option #1:
- From the web console, navigate to the Advanced Configuration page /Orion/admin/advancedconfiguration/global.aspx)
- Search for DefaultCacheExpiration
- Change the setting from 3 minutes (00:03:00) to 1 hour (01:00:00)
- Restart SWIS service on active MPE
Option #2:
If you cannot access the web console, you can update the setting table directly in the database.
Take a backup before any DB modifications.
- RDP the Main poller engine
- Open the Database Manager application
- Click on Add Orion Server
- Right click on Orion database and click on New Query
- Type the following query on the right side and click on Execute query
INSERT [dbo].[Setting] ([Name], [Value]) VALUES (N'Feature.Client.DefaultCacheExpiration', N'01:00:00') -- Scripts are not supported under any SolarWinds support program or service. -- Scripts are provided AS IS without warranty of any kind. SolarWinds further -- disclaims all warranties including, without limitation, any implied warranties -- of merchantability or of fitness for a particular purpose. The risk arising -- out of the use or performance of the scripts and documentation stays with you. -- In no event shall SolarWinds or anyone else involved in the creation, -- production, or delivery of the scripts be liable for any damages whatsoever -- (including, without limitation, damages for loss of business profits, business -- interruption, loss of business information, or other pecuniary loss) arising -- out of the use of or inability to use the scripts or documentation.
- Restart SWIS service on active MPE