| Summary: | "java.net.SocketException: Too many open files" after refreshing Process Overview in the jBPM Console | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [JBoss] JBoss Enterprise BRMS Platform 5 | Reporter: | Jiri Locker <jlocker> | ||||||
| Component: | jBPM Console | Assignee: | Mark Proctor <mproctor> | ||||||
| Status: | VERIFIED --- | QA Contact: | Lukáš Petrovický <lpetrovi> | ||||||
| Severity: | high | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | BRMS 5.3.0.GA | CC: | atangrin, kverlaen, lpetrovi, mproctor, rzhang, trikkola | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | Doc Type: | Release Note | |||||||
| Doc Text: |
A bug in the Business Central console presented when the process overview was refreshed, which resulted in a large number of open file descriptors per process. The number of files could quickly reach the maximum number of allowed open file descriptors per process. The issue has been resolved by ensuring the open files are disposed of after the communication has closed.
|
Story Points: | --- | ||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | Type: | Bug | |||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Attachments: |
|
||||||||
|
Description
Jiri Locker
2012-01-06 14:56:08 UTC
Created attachment 551166 [details]
16proc_repo.xml
I actually had the same issue. The Java process that is executing the application server is trying to open more than 1k file handles in that case. Looking through the list of open files, it didn't seem however that this was a bug, there are just a large number of jars etc. that are loaded if you deploy all applications on the same server. When looking at the list of open files, do you have any indication that there might be a leak somewhere (where we are opening file handles but they keep growing)? Created attachment 567628 [details]
openfiles.txt
Yes, in this attachment, there is ~812 open file descriptors out of which 570 is for jboss-brms.war/WEB-INF/classes/asseteditors.xml, which is quite a big number.
I don't consider this a leak, since all the file descriptors for asseteditors.xml are closed eventually. The only trouble is that refreshing the process overview creates a large burst of file descriptors to be open, which may hit the system limit.
On the other hand, I've been forced to increase the limit on my system to 9k to get JBDS5 running recently and, since then, I haven't seen this issue.
I've just merged Mauricio's pull request concerning this problem to master and 5.2.x. You'll have to ask Mauricio exactly what the impact is on this problem. :) See here for the pull request: https://github.com/droolsjbpm/jbpm/pull/73 Hi, Tihomir. Do you know more about this issue? Update status to ON_QA. Please verify them against ER6. Confirmed that not picked in ER6. Change status back.
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
New Contents:
Refreshing the process overview in the Business Central Console results in a large number of files and can reach the maximum number of open file descriptors per process. The current workaround is to increase the maximum number of open file descriptors per process.
VERIFIED And just for 'fun', some quick numbers: I get around 500 open file descriptors with 16 human task processes, each with a process image and 2 task forms. With empty repo, the count is down to around 430. So a (simple) human task process might take about 4.5 open file descriptors. If we start at 430 for an empty repo and leave the max count at 1024, we can have about 130 (simple) human task processes, not counting anything else in Guvnor or any other app running on the server that might influence this. Definitely better than 16. |