# How can clear memory with out restarting

**URL:** https://community.wowza.com/t/how-can-clear-memory-with-out-restarting/94371
**Category:** Wowza Streaming Engine
**Created:** [December 24, 2021, 6:01am UTC](https://community.wowza.com/t/how-can-clear-memory-with-out-restarting/94371 "2021-12-24T06:01:05Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Nizad\_Sajeed](https://avatars.discourse-cdn.com/v4/letter/n/a587f6/32.png) [@Nizad\_Sajeed](https://community.wowza.com/u/Nizad_Sajeed)
#### Post date: [December 24, 2021, 6:01am UTC](https://community.wowza.com/t/how-can-clear-memory-with-out-restarting/94371/1 "2021-12-24T06:01:05Z")

</div>

How can clear memory with out restarting the engine.

---

<div class="post-metadata">

### Author: ![Connessione](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Connessione](https://community.wowza.com/u/Connessione)
#### Post date: [December 24, 2021, 3:11pm UTC](https://community.wowza.com/t/how-can-clear-memory-with-out-restarting/94371/2 "2021-12-24T15:11:46Z")

</div>

I doubt there is such a thing. With any java based server once you have a program running it will occupy memory by creating objects. If the program is not leaky then the memory will be reclaimed by java garbage collector once the objects are no longer in use. If that does not happen then you have to restart the program or in fact debug and correct the leaky logic. Other than that take a look at [this](https://www.theserverside.com/video/5-ways-to-force-Java-garbage-collection) article.
