Modify

Opened 14 years ago

Last modified 6 hours ago

#6 assigned defect

MemoryError in Browser

Reported by: Thomas Moschny Owned by: Thomas Moschny
Priority: major Component: tracmtn
Version: Keywords:
Cc:

Description

This error only occurs when using the bsddb caching method.

After running a while, Trac dies with this error:

MemoryError: (12, 'Cannot allocate memory -- Lock table is out of
available locker entries')

Attachments (0)

Change History (8)

comment:1 by Thomas Moschny, 14 years ago

Status: newassigned
Summary: !MemoryError in BrowserMemoryError in Browser

This is a known bug in the cache system. The BSD DB environment is not closed correctly, and keeps ressources allocated for each "open" connection. The total amount of "open" connection is limited however, and when the limit is reached, the said error is thrown.

Proper fixing needs a patch on the trac side, too: See http://trac.edgewall.org/ticket/4972.

comment:2 by Thomas Moschny, 14 years ago

A workaround, until this get fixed, is to clear the cache directory's contents.

comment:3 by Thomas Moschny, 14 years ago

See also http://trac.edgewall.org/ticket/5010 for the general problem of freeing ressources allocated by trac plugins.

comment:4 by Thomas Moschny, 13 years ago

Tried to fix that in 9bcaf1f668aa7bed82e1bcd94707614fdc92b87c, please test.

The number of current locks can be seen with the db_stat command, using the -c switch:

# db4.6_stat -c -h /var/cache/trac
...
0       Number of current locks
6       Maximum number of locks at any one time
0       Number of current lockers
10      Maximum number of lockers at any one time
0       Number of current lock objects
6       Maximum number of lock objects at any one time
272     Total number of locks requested
272     Total number of locks released
...

comment:5 by anonymous, 4 weeks ago

Ich danke Ihnen für die Information! Ich war auf der Suche nach und konnte nicht finden. Du hast mir geholfen! http://convert-currency.net/USDGBP/

comment:6 by anonymous, 8 days ago

Actually I read it yesterday but I had some thoughts about it and today I wanted to read it again because it is very well written. https://aboutmens.com/

comment:7 by anonymous, 2 days ago

I’m happy I located this blog! From time to time, students want to cognitive the keys of productive literary essays composing. Your first-class knowledge about this good post can become a proper basis for such people. nice one CBD Bud

comment:8 by anonymous, 6 hours ago

Sarms, Fitness Diet Plan, GNC Supplements and Reviews are provided unbiasedly. A complete guide to supplements and diet plans including Crazy Bulk, ... https://tomsland.org/

Modify Ticket

Change Properties
Set your email in Preferences
Action
as assigned The owner will remain Thomas Moschny.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from Thomas Moschny to the specified user. Next status will be 'new'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.