# Graceful restart with a live stream running?

**URL:** https://community.wowza.com/t/graceful-restart-with-a-live-stream-running/35416
**Category:** Wowza Streaming Engine
**Created:** [September 28, 2010, 9:45am UTC](https://community.wowza.com/t/graceful-restart-with-a-live-stream-running/35416 "2010-09-28T09:45:58Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Daniel\_Mahoney](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@Daniel\_Mahoney](https://community.wowza.com/u/Daniel_Mahoney)
#### Post date: [September 28, 2010, 9:45am UTC](https://community.wowza.com/t/graceful-restart-with-a-live-stream-running/35416/1 "2010-09-28T09:45:58Z")

</div>

I’ve read through the quickstart and the users manual but haven’t seen an answer to this.

If I have one or more customers streaming live through my EC2 Wowza instance, and I make a change to the system config (to add another application, for example), is there any way to get Wowza to read the new config without doing a complete restart? Basically, doing the same function as the graceful restart that the Apache server offers? I’d really like to do my config updates without blowing live streams off the air. Perhaps doing a "kill -USR1 " or something similar?

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [September 28, 2010, 7:12pm UTC](https://community.wowza.com/t/graceful-restart-with-a-live-stream-running/35416/2 "2010-09-28T19:12:22Z")

</div>

If you add a brand new application, you do not have to restart Wowza. If you make a change to an application, it will have to be re-loaded before new connections are affected by the change. You can do that with JConsole. Unloading one application will only affect clients connected to that application, but not others.

You should be able to add or change a VHost configuration similarly.

If you add a jar file to the Wowza lib folder, or make a change to Server.xml, or log4j.properties, you have to restart Wowza to make that change take affect.

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [October 1, 2010, 7:19pm UTC](https://community.wowza.com/t/graceful-restart-with-a-live-stream-running/35416/3 "2010-10-01T19:19:31Z")

</div>

You can shutdown the Application or an ApplicationInstance. ScreenShot:

![](http://laketk.com/screenshots/JconsoleShutdownApp.PNG)

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [October 3, 2011, 3:37pm UTC](https://community.wowza.com/t/graceful-restart-with-a-live-stream-running/35416/4 "2011-10-03T15:37:04Z")

</div>

You can use this method with a scheduler:

[https://www.wowza.com/docs/how-to-set-up-a-command-line-interface-to-wowza-api-to-start-stop-vhost-using-jmx](https://www.wowza.com/docs/how-to-set-up-a-command-line-interface-to-wowza-api-to-start-stop-vhost-using-jmx)

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [October 6, 2011, 3:22pm UTC](https://community.wowza.com/t/graceful-restart-with-a-live-stream-running/35416/5 "2011-10-06T15:22:59Z")

</div>

No, there is not a way.

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [October 20, 2011, 2:58pm UTC](https://community.wowza.com/t/graceful-restart-with-a-live-stream-running/35416/6 "2011-10-20T14:58:38Z")

</div>

There are a couple of steps to enabling JMX:

[https://www.wowza.com/docs/quick-start-guides](https://www.wowza.com/docs/quick-start-guides)

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [April 17, 2012, 6:36pm UTC](https://community.wowza.com/t/graceful-restart-with-a-live-stream-running/35416/7 "2012-04-17T18:36:25Z")

</div>

The player is just playing out the stream buffer, I’m sure

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [April 17, 2012, 7:32pm UTC](https://community.wowza.com/t/graceful-restart-with-a-live-stream-running/35416/8 "2012-04-17T19:32:20Z")

</div>

You have to change /conf/Server.xml /JMXRemoteConfiguration /Enable to “true”, then restart Wowza

[https://www.wowza.com/docs/quick-start-guides](https://www.wowza.com/docs/quick-start-guides)

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [April 18, 2012, 9:55pm UTC](https://community.wowza.com/t/graceful-restart-with-a-live-stream-running/35416/9 "2012-04-18T21:55:02Z")

</div>

I just set that all up and tested, vod mediacache, then shutdown the application instance with JConsole like this:

> [@Graceful restart with a live stream running?](http://community.wowza.com/t/-/35416):
>
> I’ve read through the quickstart and the users manual but haven’t seen an answer to this. If I have one or more customers streaming live through my EC2 Wowza instance, and I make a change to the system config (to add another application, for example), is there any way to get Wowza to read the new config without doing a complete restart? Basically, doing the same function as the graceful restart that the Apache server offers? I’d really like to do my config updates without blowing live streams o…

Then the player stopped right away.

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [April 19, 2012, 5:31pm UTC](https://community.wowza.com/t/graceful-restart-with-a-live-stream-running/35416/10 "2012-04-19T17:31:41Z")

</div>

Stefan,

The ApplicationInstance is the run-time, instantiated Application. Application.shutdownAppInstance(instanceName) is how to do what you want to do.

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [April 9, 2013, 4:06pm UTC](https://community.wowza.com/t/graceful-restart-with-a-live-stream-running/35416/11 "2013-04-09T16:06:03Z")

</div>

You will have to provide much more info/detail as to what you are doing and what you want to accomplish.

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [April 9, 2013, 4:50pm UTC](https://community.wowza.com/t/graceful-restart-with-a-live-stream-running/35416/12 "2013-04-09T16:50:54Z")

</div>

A live stream? What is the source? Is it a MediaCaster source, e.g. IP camera or mpeg-ts encoder? Those you can control with the MediaCaster system. If it is a Live RTMP encoder, those are hard to stop from Wowza. You can shutdown the client, but some of them will re-connect right away.

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [April 10, 2013, 1:05pm UTC](https://community.wowza.com/t/graceful-restart-with-a-live-stream-running/35416/13 "2013-04-10T13:05:39Z")

</div>

Wowza cannot control a RTMP Live encoder, except to disconnect it. You have to re-start in the encoder

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [April 10, 2013, 1:21pm UTC](https://community.wowza.com/t/graceful-restart-with-a-live-stream-running/35416/14 "2013-04-10T13:21:58Z")

</div>

FMLE keeps trying to re-connect. It’s not Wowza doing that, it’s FMLE.

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [April 10, 2013, 2:33pm UTC](https://community.wowza.com/t/graceful-restart-with-a-live-stream-running/35416/15 "2013-04-10T14:33:12Z")

</div>

If you shut down the FMLE connection’s connectection you cannot turn that back on. I’m not really sure what you are seeing in terms of reboot, but you can only disconnect a live RTMP encoder client. You cannot turn that client back on. It can re-connect, but it will have another clientID.

Richare

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [April 10, 2013, 11:03pm UTC](https://community.wowza.com/t/graceful-restart-with-a-live-stream-running/35416/16 "2013-04-10T23:03:33Z")

</div>

No, I would have told you already.

With MediaCaster streams that are pulled from a source (IP camera, mpeg-ts encoders) you have the server-side control that you describe but, not from a Live RTMP Encoder.

Richard

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [October 24, 2013, 1:18pm UTC](https://community.wowza.com/t/graceful-restart-with-a-live-stream-running/35416/17 "2013-10-24T13:18:32Z")

</div>

The screenshot shows that no applications are started. There would be an application folder that you can expand to drill-down to application instances, etc.

You can start an application by connecting to it with any type of client. For example if you try to play a stream, even one that does not exist, in any playback client, Wowza will start the application if it exists. Then you will see it in JConsole.

You can also start an application in JConsole, just below were you are in VHost \> Operations \> startApplicationInstance: enter an app name in the first box, and an app instance name (or blank) in the 2nd box.

Richard

---

<div class="post-metadata">

### Author: ![Kresimir\_Bosnjak](https://avatars.discourse-cdn.com/v4/letter/k/f1d935/32.png) [@Kresimir\_Bosnjak](https://community.wowza.com/u/Kresimir_Bosnjak)
#### Post date: [October 6, 2011, 4:02pm UTC](https://community.wowza.com/t/graceful-restart-with-a-live-stream-running/35416/18 "2011-10-06T16:02:58Z")

</div>

Hello Richard,

If I shutdown livestream application with jconsole like described in screenshot from upper thread I have to start all streams in Stream Manager again.

Is there a way just to reload application so I have all started streams saved?

Thakns,

K

---

<div class="post-metadata">

### Author: ![Daniel\_Mahoney](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@Daniel\_Mahoney](https://community.wowza.com/u/Daniel_Mahoney)
#### Post date: [October 1, 2010, 1:05pm UTC](https://community.wowza.com/t/graceful-restart-with-a-live-stream-running/35416/19 "2010-10-01T13:05:57Z")

</div>

I’ve configured my EC2 instance to allow remote JConsole connection, and I can connect from my desktop Linux machine just fine. I see the WowzaMediaServerPro entry on the MBeans tab. If I wanted to restart my ccrepeater application, how would I do so using JConsole?

---

<div class="post-metadata">

### Author: ![Daniel\_Mahoney](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@Daniel\_Mahoney](https://community.wowza.com/u/Daniel_Mahoney)
#### Post date: [October 1, 2010, 1:39pm UTC](https://community.wowza.com/t/graceful-restart-with-a-live-stream-running/35416/20 "2010-10-01T13:39:00Z")

</div>

Perfect - exactly what I was looking for. Thanks.

[Next page](https://community.wowza.com/t/graceful-restart-with-a-live-stream-running/35416.md?page=2)
