vosk-api icon indicating copy to clipboard operation
vosk-api copied to clipboard

Memory Leak in Java?

Open kromoxpro opened this issue 2 years ago • 1 comments

I have been testing Vosk in Java using sockets, and each connection may use a different model as it may require a different language.

I have seen that after each use of vosk, the memory does not return to its initial state. I have tried everything.

  • Initialize a model on each connection and close it at the end.
  • Initialize a static model (the same for each connection) (best result)
  • Force GC to clean memory.
  • Close Recongnizer

Is this a known bug for Vosk in Java only? Or for Vosk in general?

Thanks.

kromoxpro avatar Apr 19 '22 12:04 kromoxpro

Is this a known bug for Vosk in Java only? Or for Vosk in general?

We are not aware of such issue.

nshmyrev avatar Apr 19 '22 22:04 nshmyrev