memory usage is very high #1208
Replies: 3 comments
-
@msaoudallah does the issue has been resolved for you I'm also facing the same issue could you please provide some insights on how it's consuming very high memory in server little breifly .how did u check that |
Beta Was this translation helpful? Give feedback.
-
Not sure about possible memory leaks in doctr rsp. its libs. |
Beta Was this translation helpful? Give feedback.
-
@msaoudallah @Srini138 have you solved this issue? I'm facing the same problem. Those linesare causingthe problem: (actual running predictions for detection and recognition models) doctr/doctr/models/predictor/pytorch.py Line 76 in 5105f98 doctr/doctr/models/predictor/pytorch.py Line 122 in 5105f98 |
Beta Was this translation helpful? Give feedback.
-
hello everyone , i have one thing to discuss with you and lets see if you faced similar situation before. i use doctr for ocr tasks. but i found that there is huge memory increase each time i send a request to my server. note that i have a limited resources and memory leak may lead to server crash or stop. i went to investigate this and found that one step is taking too much memory and it is not released after request end. the step is when i try to infer the result from a pdf file
result object size depends on the pdf itself but see numbers from 200MB and above which is huge and as i said before they're not released when request completes
i tred some solutions as follows
del
keyword but it appeard to do nothing ,gc.collect()
explicitly and also nothing happeneddo you have any other ideas to share ?
Beta Was this translation helpful? Give feedback.
All reactions