Indexing large application runs out of memory
Indexing large application runs out of memory

Steps to reproduce:

dxr-build.py with very large application (120,000+ objects)

Actual results:

Received "out of memory" message from system during the "Generating callgraph" step and process was apparently killed by the kernel (?).  On a retry we observed the process was using almost all of the 21gb swap space on the system after getting to the callgraph step.

After instrumenting the build script the problem seems to occur in the fetchall functions and fetchall variables steps, which makes sense.

Expected results:

Process should have completed eventually over the weekend.

bozzmob/dxr,KiemVM/Mozilla--dxr,jay-z007/dxr,bozzmob/dxr,srenatus/dxr,kleintom/dxr,nrc/dxr,kleintom/dxr,bozzmob/dxr,jbradberry/dxr,jbradberry/dxr,jay-z007/dxr,nrc/dxr,srenatus/dxr,jay-z007/dxr,srenatus/dxr,kleintom/dxr,jbradberry/dxr,pelmers/dxr,KiemVM/Mozilla--dxr,srenatus/dxr,kleintom/dxr,bozzmob/dxr,jay-z007/dxr,pombredanne/dxr,jbradberry/dxr,pelmers/dxr,gartung/dxr,jbradberry/dxr,kleintom/dxr,srenatus/dxr,kleintom/dxr,pombredanne/dxr,pombredanne/dxr,nrc/dxr,bozzmob/dxr,gartung/dxr,jay-z007/dxr,KiemVM/Mozilla--dxr,KiemVM/Mozilla--dxr,pelmers/dxr,jbradberry/dxr,pelmers/dxr,gartung/dxr,pombredanne/dxr,kleintom/dxr,jbradberry/dxr,KiemVM/Mozilla--dxr,srenatus/dxr,pelmers/dxr,pelmers/dxr,nrc/dxr,jay-z007/dxr,nrc/dxr,gartung/dxr,pelmers/dxr,nrc/dxr,jay-z007/dxr,KiemVM/Mozilla--dxr,pombredanne/dxr,gartung/dxr,bozzmob/dxr,gartung/dxr,pombredanne/dxr,pombredanne/dxr,gartung/dxr,bozzmob/dxr