DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Over 2 million developers have joined DZone. Join Today! Thanks for visiting DZone today,
Edit Profile Manage Email Subscriptions Moderation Admin Console How to Post to DZone Article Submission Guidelines
View Profile
Sign Out
Refcards
Trend Reports
Events
View Events Video Library
Zones
Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Integrating PostgreSQL Databases with ANF: Join this workshop to learn how to create a PostgreSQL server using Instaclustr’s managed service

Mobile Database Essentials: Assess data needs, storage requirements, and more when leveraging databases for cloud and edge applications.

Monitoring and Observability for LLMs: Datadog and Google Cloud discuss how to achieve optimal AI model performance.

Automated Testing: The latest on architecture, TDD, and the benefits of AI and low-code tools.

Related

  • Download and Install Apache ActiveMQ on Windows | ActiveMQ Tutorial [Video]
  • Deploying Artemis Broker With SSL Enabled and Use AMQP
  • Develop and Debug C++ Messaging Client Using AMQP Protocol in Apache ActiveMQ Artemis

Trending

  • How To Simplify Multi-Cluster Istio Service Mesh Using Admiral
  • Running Unit Tests in GitHub Actions
  • Continuous Integration vs. Continuous Deployment
  • Information Security: AI Security Within the IoT Industry

Apache ActiveMQ – How to resolve java.io.IOException: Too many open files exception?

Singaram Subramanian user avatar by
Singaram Subramanian
·
May. 21, 13 · Interview
Like (0)
Save
Tweet
Share
11.22K Views

Join the DZone community and get the full member experience.

Join For Free

i have worked on activemq for quite a while, and there’s one annoying exception that i see all the time – java.io.ioexception: too many open files – which we see time to time.

[localhost:61613] error transportconnector – could not accept connection : too many open files
[or@0.0.0.0:8161] warn  log – exception
java.io.ioexception: too many open files
at sun.nio.ch.serversocketchannelimpl.accept0(native method)
at sun.nio.ch.serversocketchannelimpl.accept(serversocketchannelimpl.java:145)
at org.mortbay.jetty.nio.selectchannelconnector$1.acceptchannel(selectchannelconnector.java:75)
at org.mortbay.io.nio.selectormanager$selectset.doselect(selectormanager.java:475)
at org.mortbay.io.nio.selectormanager.doselect(selectormanager.java:166)
at org.mortbay.jetty.nio.selectchannelconnector.accept(selectchannelconnector.java:124)
at org.mortbay.jetty.abstractconnector$acceptor.run(abstractconnector.java:537)
at org.mortbay.thread.boundedthreadpool$poolthread.run(boundedthreadpool.java:450)

have spent some time gooling about this error and got a rough idea on what this error is all about, what we can do to identify the issue, and (possibly!) fix it :)

i’ll need some more time to write what i’m doing to solve it, and btw, you can find the links that were helpful to me:

1. activemq 5.1.0 runs out of file descriptors with lots of ‘close_wait’ sockets : https://issues.apache.org/jira/browse/amq-1739
2. activemq forum: http://activemq.2283324.n4.nabble.com/too-many-open-files-td2364996.html

Apache ActiveMQ

Published at DZone with permission of Singaram Subramanian, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Related

  • Download and Install Apache ActiveMQ on Windows | ActiveMQ Tutorial [Video]
  • Deploying Artemis Broker With SSL Enabled and Use AMQP
  • Develop and Debug C++ Messaging Client Using AMQP Protocol in Apache ActiveMQ Artemis

Comments

Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: