Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #9996 (closed)

Opened 11 years ago

Closed 11 years ago

Bug: OMERO.tables too many open files

Reported by: spli Owned by: spli
Priority: major Milestone: OMERO-4.4.7
Component: Services Version: n.a.
Keywords: analysis Cc: analysis@…
Resources: n.a. Referenced By: n.a.
References: #9944 Remaining Time: 0.0d
Sprint: 2013-04-09 (7))

Description (last modified by spli)

This occurred after running the tablestest.service unit tests several times to try to figure out a problem (so lots of failed tests and exceptions). I'm not sure if this is a bug where files aren't being closed properly, or expected behaviour and the python resource limits need to be increased.

If anyone else comes across this add a comment.

11  )  Meth: TablesI.getTable
2012-12-05 19:51:22,417 INFO  [                    omero.tables.TablesI] (Dummy-11  ) getTable: 1233 {'omero.session.uuid': '6088372c-65f8-4618-8956-8f2792a4ca9c', 'omero.client.uuid': 'dd35cfe4-bd6c-4789-aaec-692fd261fc07'}
2012-12-05 19:51:22,419 INFO  [                            omero.remote] (Dummy-11  )  Excp: [Errno 24] Too many open files: '/Users/simon/var/omero.data/Files/Dir-001/1233'
2012-12-05 19:51:22,419 WARNI [                            omero.remote] (Dummy-11  ) <function getTable at 0x110c87c08> raised a non-ServerError (<type 'exceptions.IOError'>): [Errno 24] Too many open files: '/Users/simon/var/omero.data/Files/Dir-001/1233'
2012-12-05 19:51:27,550 INFO  [                            omero.remote] (Dummy-5   )  Meth: TablesI.getTable
2012-12-05 19:51:27,550 INFO  [                    omero.tables.TablesI] (Dummy-5   ) getTable: 1234 {'omero.session.uuid': '4e17b10d-81f6-4a77-8c63-629b6cc419c6', 'omero.client.uuid': 'dba0716b-3da7-4298-892a-fb0bb0fbc083'}
2012-12-05 19:51:27,552 INFO  [                            omero.remote] (Dummy-5   )  Excp: [Errno 24] Too many open files: '/Users/simon/var/omero.data/Files/Dir-001/1234'
2012-12-05 19:51:27,552 WARNI [                            omero.remote] (Dummy-5   ) <function getTable at 0x110c87c08> raised a non-ServerError (<type 'exceptions.IOError'>): [Errno 24] Too many open files: '/Users/simon/var/omero.data/Files/Dir-001/1234'
2012-12-05 19:51:56,996 WARNI [                                  stderr] (Dummy-8   ) 2012-12-05 19:51:56.996877 Tables-0: error: fatal error: can't accept more connections:
Network.cpp:1273: Ice::SocketException:
socket exception: Too many open files

Update

This is a bug:

bash$ let n=0; while true; do let n++; echo $n; python -m unittest -b tablestest.service; done

...

12
.............
----------------------------------------------------------------------
Ran 13 tests in 12.864s
OK
13
FFFFFFFFFFF.F
======================================================================

Default Python limits:

In [3242]: resource.getrlimit(resource.RLIMIT_NOFILE)
Out[3242]: (256, 9223372036854775807)
bash$ lsof +D ~/var/omero.data/Files |wc
     239    2151   24558
bash$ lsof +D ~/var/omero.data/Files |head -n3
COMMAND   PID  USER   FD   TYPE DEVICE SIZE/OFF    NODE NAME
Python  20672 simon   16u   REG    1,3     6000 6731392 /Users/simon/var/omero.data/Files/Dir-001/1430
Python  20672 simon   20u   REG    1,3     6000 6731392 /Users/simon/var/omero.data/Files/Dir-001/1430

Change History (6)

comment:1 Changed 11 years ago by spli

  • Description modified (diff)
  • Milestone changed from Future to OMERO-4.5
  • Priority changed from minor to major
  • Summary changed from Bug (maybe): OMERO.tables too many open files to Bug: OMERO.tables too many open files

comment:2 Changed 11 years ago by jburel

  • Sprint set to Bugs Fixing

comment:3 Changed 11 years ago by spli

  • Remaining Time set to 2

comment:4 Changed 11 years ago by spli

  • Status changed from new to accepted

comment:5 Changed 11 years ago by jburel

  • Sprint changed from Bugs Fixing to 2013-04-09 (7))

Moved from sprint Bugs Fixing

comment:6 Changed 11 years ago by spli

  • Remaining Time changed from 2 to 0
  • Resolution set to fixed
  • Status changed from accepted to closed
Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.71617 sec.)

We're Hiring!