Skip to main content

Glassfish error "Too many open files"

1 reply [Last post]
Joined: 2011-12-04

Hi every body,

I have an error message "Too many open files" and when I add
the following 2 lines in the file / etc / security / limits.conf:

* soft nofile 65535
* hard nofile 65535

Then I saw this value is supported by the operating system but when I view the state of the JVM with VisualVM tool / MBeans he displays the old value MaxFileDescriptorCount = 1024.

The configuration I use is:

OS: Red Hat 6 64 bit Arch
glassfish 3.1
JDK: 1.6_32 (64 bits)


Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2011-12-04


I add jvm argument '-XX:-MaxFDLimit' in an environment:
os: redhat linux 6 Arch: i386 JVM: 1.6.0_26, GlassFish: 3.1
and after I noticed that the value 'MaxFileDescriptorCount displays the value "65535", knowing that this is the value of openfiles and descriptors changed in linux from file "/ etc / security / limits.conf".

but adding this argument '-XX:-MaxFDLimit' in a environment:
os: redhat linux 6 (64 bit), Arch: amd64, JVM: 1.6.0_32 (64bits), GlassFish: 3.1
the value of "MaxFileDescriptorCount" always displays the value 1024.

Is there another jvm argument to add?