Edgewall Software

Opened 5 years ago

Last modified 22 months ago

#13129 closed defect

trac-admin resync leaks memory — at Initial Version

Reported by: turnopil@… Owned by:
Priority: high Milestone: 1.4.4
Component: version control Version: 1.2.3
Severity: normal Keywords: svn memory
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I am using a trac installation 1.2.3 version. Was installed via easy_install

subversion-python27 Version: 1.9.7
python27-psycopg2   Version: 2.5.1
subversion          Version: 1.9.7

I'm trying to run a resync in our environment. Unfortunately this fails apparently due to running out of memory. The repository our project uses has over 100k revisions, and my estimation is that trac-admin resync leaks about 40 MB of memory per 1000 revisions. But after 90K revisions he used all 8 gigabytes of RAM.

-bash: fork: Cannot allocate memory
PID   USER     PR NI VIRT  RES  SHR  S %CPU %MEM TIME+    COMMAND
401   root     20 0  0     0      0  D 8.3  0.0  0:02.91  kswapd0
10228 root     30 10 7804m 7.0g 1168 D 3.6  93.7 11:59.68 trac-admin
9736  postgres 20 0  328m  133m 132m S 0.7  1.7  0:00.56  postmaster

We are using a postgres 9.6 backend.

Change History (0)

Note: See TracTickets for help on using tickets.