How to resolve "Too many open files" error when trying to run workflow

How to resolve "Too many open files" error when trying to run workflow

book

Article ID: KB0076846

calendar_today

Updated On:

Products Versions
Spotfire Data Science Team Studio 6.5.0

Description

When a user is trying to run a workflow, it fails immediately with an error that involves "Too many open files".    User is unable to run any workflows at this time.

Too many open files error when running a workflow

Issue/Introduction

When trying to run a workflow, the workflow stops and shows an error. The error invovles "Too many open files".

Resolution

When a user receives this error, it shows that the Operating System that Team Studio runs on has reached the maximum number of open files.  We will need to raise this number of open files limit to a larger number as the default is set to 1024.  You will need OS admin access.

Please modify the following 2 files as root user:

  1. vi /etc/security/limits.conf

  2. vi /etc/security/limits.d/20-nproc.conf (File name might not be exact, but similar)

  3. Append the following to both files:

 * soft nofile 65536 * hard nofile 65536 * soft nproc 131072 * hard nproc 131072
 
  1. vi /etc/sysctl.conf

  2. Append the following:

 kernel.shmmax = 500000000 kernel.shmall = 4000000000
 


Restart Team Studio for changes to apply.