DbAppWeb.com

Menu
  • Home
  • Linux
  • HP-UX
  • macOS
  • Windows
  • Web Servers
  • App Servers
  • Storage

Change the value of maxfiles_lim kernel parameter on HP-UX

August 10, 2020 DbAppWeb Admin

Problem

I have an HP-UX server and IBM WebSphere Application Server is installed on this server. Some applications are running on this application server. One day suddenly one JVM of IBM WebSphere Application Server stopped serving the requests (JVM was running but not processing any request).

After analysing the logs with IBM and HPE support team it was found that the node was not processing any request because of the below error in the Syslog.

# cat /var/adm/syslog/syslog.log
.
.
.
Feb 21 13:20:15 DBAPPWEB syslog: Java: Number of open files: 4096
Feb 21 13:20:15 DBAPPWEB syslog: Java: Maximum number of allowed open files: 4096

Reason

As you can see the error in Syslog, the maximum number of allowed open files 4096 which is very low for a system on which applications like IBM WebSphere Application Server are running. To resolve the above error we need to increase the limit of the number of allowed open files. It can be done by changing the value of maxfiles_lim kernel parameter.

You may see and verify the current usage of maxfiles_lim by using the command kcusage, command output showing that it has reached its maximum value.

# kcusage |grep maxfiles_lim
maxfiles_lim               4096 / 4096

You can see more details about the maxfiles_lim by using the below command.

# kctune -v maxfiles_lim
Tunable             maxfiles_lim
Description         Hard maximum number of file descriptors per process
Module              fs
Current Value       4096 [Default]
Value at Next Boot  4096 [Default]
Value at Last Boot  4096
Default Value       4096
Constraints         maxfiles_lim >= 32
                    maxfiles_lim <= 1048576 maxfiles_lim >= maxfiles
Can Change          Immediately or at Next Boot

Solution

The default value of maxfiles_lim is 4096. As suggested by the IBM WebSphere Application Server support team we need to change the value of maxfiles_lim from its default value to 20000.

If you change the value of this parameter then it will be immediately come in effect.

Here are the steps to change the value of maxfiles_lim:

  • First, check the value of the maxfiles_limit
    # kctune -v maxfiles_lim
    Tunable             maxfiles_lim
    Description         Hard maximum number of file descriptors per process
    Module              fs
    Current Value       4096 [Default]
    Value at Next Boot  4096 [Default]
    Value at Last Boot  4096
    Default Value       4096
    Constraints         maxfiles_lim >= 32
                        maxfiles_lim <= 1048576 maxfiles_lim >= maxfiles
    Can Change          Immediately or at Next Boot
  • Now change the value of maxfiles_limit to 20000
    # kctune maxfiles_lim=20000
         ==> Update the automatic 'backup' configuration first?
                 yes     - Update backup before every change
                 once    - Update backup now; ask for each future change
                 no      - Don't update backup now; ask for each future change
                 disable - Don't update backup before any change
         ==> Update the automatic 'backup' configuration first? yes
           * The automatic 'backup' configuration has been updated.
           * Future operations will update the backup without prompting.
           * The requested changes have been applied to the currently
             running configuration.
    Tunable                 Value  Expression  Changes
    maxfiles_lim  (before)   4096  Default     Immed
                  (now)     20000  20000
    #
  • Now verify the current usage and limit by running the below command, here you can see that the limit changed from 4096 to 20000 and the current usage is 5011.
    # kcusage |grep maxfiles_lim
    maxfiles_lim               5011 / 20000
    

 

Now, the problem resolved and all the JVMs started processing the requests.

Last Updated: August 10, 2020

Share this:

  • Click to share on Twitter (Opens in new window)
  • Click to share on Facebook (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • Click to share on Telegram (Opens in new window)
  • Click to share on WhatsApp (Opens in new window)
Prev Article
Next Article
Tags:HP-UX IBM WebSphere Application Server Sys Admin Websphere Application Server (WAS)

Leave a Reply Cancel Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  • Popular
  • Recent

Categories

  • Android (2)
  • Blogger (16)
  • Domain and Hosting (1)
  • Hardware Issues (7)
  • HP-UX (55)
  • HPE Data Protector (9)
  • IBM Lotus Notes (2)
  • IBM WebSphere Application Server (16)
  • Internet Tips & Tricks (15)
  • iOS (8)
  • JBoss/WildFly Application Server (2)
  • Linux (76)
  • macOS (15)
  • Microsoft Windows (31)
  • News and Updates (11)
  • Oracle Database (5)
  • SSL/TLS (1)
  • Storage Servers (23)
  • Tools/Softwares (1)
  • VMware ESXi (17)
  • Web Servers (14)
  • WordPress (5)

Archives

DbAppWeb.com

Solution of Database, Application and Web Server Problems

About DbAppWeb.com

One Stop Solution for Database Server, Application Server and Web Server Problems.

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

DbAppWeb on Social Media

Copyright © 2025 DbAppWeb.com
Terms and Conditions   Theme by MyThemeShop.com