# Wcpkernel gobbling up inotify instances?

**URL:** <https://techcommunity.softwareag.com/t/wcpkernel-gobbling-up-inotify-instances/264410>\
**Category:** Forum\
**Tags:** Adabas-Natural, Adabas, Adabas-on-Linux, Network\
**Created:** [October 5, 2022, 9:36am UTC](https://techcommunity.softwareag.com/t/wcpkernel-gobbling-up-inotify-instances/264410 "2022-10-05T09:36:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Law](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/david_law/32/740_2.png) [@David\_Law](https://techcommunity.softwareag.com/u/David_Law)\
**Post date:** [October 5, 2022, 9:36am UTC](https://techcommunity.softwareag.com/t/wcpkernel-gobbling-up-inotify-instances/264410/1 "2022-10-05T09:36:38Z")

</div>

#### What product/components do you use and which version/fix level are you on?

Entire Network Version=7.9.1.0 Patch Level=0

#### Is your question related to the free trial, or to a production (customer) instance?

Production @ Customer Site

#### What are you trying to achieve? Please describe it in detail.

We have a Java process that wants to register just ONE!! (Java WatchService) but fails because…  
…wcpkernel is grabbing nearly all inotify instances  
(inotify is a Unix mechanism to Monitor File-System Events)  
We doubled the max yesterday to 256 & this morning wcpkernel had grabbed over 200 of them.

#### Do you get any error messages? Please provide a **full error** message screenshot and log file.

lsof | grep inotify | wc -l  
yields.: 256  
Further analysis shows most of the inotify instances were caused by 2 wcpkernel PID’s

Java Exception:  
java.io.IOException: User limit of inotify instances reached or too many open files

#### Have you installed all the latest fixes for the products and systems you are using?

Entire Network Version=7.9.1.0 Patch Level=0

---

<div class="post-metadata">

**Author:** ![Douglas\_Kelly](https://sea1.discourse-cdn.com/techcommunity/user_avatar/techcommunity.softwareag.com/douglas_kelly/32/102_2.png) [@Douglas\_Kelly](https://techcommunity.softwareag.com/u/Douglas_Kelly)\
**Post date:** [October 5, 2022, 4:04pm UTC](https://techcommunity.softwareag.com/t/wcpkernel-gobbling-up-inotify-instances/264410/2 "2022-10-05T16:04:00Z")

</div>

what Unix/Linux are you using? Are you very limited on memory? On a default install of RHEL 8.6, “cat /proc/sys/fs/inotify/max\_user\_watches” shows 120308; another RHEL 7.7 shows 8192. 256 might just be too small? If you increase your max\_user\_watches to (for example) 8192, does WCP consume more than ~200 inotify instances?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 3, 2023, 4:04pm UTC](https://techcommunity.softwareag.com/t/wcpkernel-gobbling-up-inotify-instances/264410/3 "2023-04-03T16:04:04Z")

</div>

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.
