Run you code through valgrind with "--leak-check=full --track-origins=yes".
Depending on your MPI implementation you'll probably see several warnings
about problems in the MPI stack. Just ignore those and find the pieces of
the report that point to your own application code.

On Fri, Jan 15, 2016 at 9:45 AM Harshad Sahasrabudhe <hsaha...@purdue.edu>
wrote:

> Hi,
>
> I'm trying to debug a memory leak message I get from LibMesh at the end of
> simulation. I get the following reference counter output from process 64 of
> 64:
>
>
>
> ----------------------------------------------------------------------------
> | Reference count information
>  |
>
>  ----------------------------------------------------------------------------
> | N7libMesh10FEAbstractE reference count information:
> |  Creations:    18065
> |  Destructions: 18065
> | N7libMesh10Parameters5ValueE reference count information:
> |  Creations:    20
> |  Destructions: 0
> | N7libMesh12LinearSolverIdEE reference count information:
> |  Creations:    8
> |  Destructions: 8
> | N7libMesh12SparseMatrixIdEE reference count information:
> |  Creations:    10
> |  Destructions: 10
> | N7libMesh13NumericVectorIdEE reference count information:
> |  Creations:    32
> |  Destructions: 0
> | N7libMesh15EquationSystemsE reference count information:
> |  Creations:    10
> |  Destructions: 10
> | N7libMesh15NonlinearSolverIdEE reference count information:
> |  Creations:    2
> |  Destructions: 2
> | N7libMesh4ElemE reference count information:
> |  Creations:    1
> |  Destructions: 141772
> | N7libMesh4NodeE reference count information:
> |  Creations:    0
> |  Destructions: 11960
> | N7libMesh6DofMapE reference count information:
> |  Creations:    10
> |  Destructions: 10
> | N7libMesh6SystemE reference count information:
> |  Creations:    10
> |  Destructions: 10
> | N7libMesh9DofObjectE reference count information:
> |  Creations:    1
> |  Destructions: 153732
>
> Is it normal to have 0 creations and a large number of destructions
> (possibly because the element is created on one process and then
> communicated to another)?
>
> I am unable to locate the 32 leaks of NumericVector in my code. Is there a
> way by which LibMesh can point to the place in the code where the leak
> happens?
>
> Thanks,
> Harshad
>
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
> _______________________________________________
> Libmesh-users mailing list
> Libmesh-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/libmesh-users
>
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
Libmesh-users mailing list
Libmesh-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-users

Reply via email to