# GC Log

**URL:** <https://community.wowza.com/t/gc-log/43798>\
**Category:** Wowza Streaming Engine\
**Created:** [September 3, 2014, 5:55pm UTC](https://community.wowza.com/t/gc-log/43798 "2014-09-03T17:55:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kinpo\_samohan](https://avatars.discourse-cdn.com/v4/letter/k/ebca7d/32.png) [@kinpo\_samohan](https://community.wowza.com/u/kinpo_samohan)\
**Post date:** [September 3, 2014, 5:55pm UTC](https://community.wowza.com/t/gc-log/43798/1 "2014-09-03T17:55:40Z")

</div>

Hi,

I tried to create GC log but it’s not created.

is any idea?

This is my Tune.xml

```auto
<?xml version="1.0" encoding="UTF-8" ?>
<Root>
	<Tune>
		<!--
			HeapSize
			${com.wowza.wms.TuningHeapSizeProduction} - Assumes Wowza Streaming Engine is only application running on server
			${com.wowza.wms.TuningHeapSizeDevelopment} - Assumes Wowza Streaming Engine is sharing resources with other applications
			or specify heap size directly (ex: <HeapSize>8000M</HeapSize>)
		-->
		<!--<HeapSize>${com.wowza.wms.TuningHeapSizeDevelopment}</HeapSize>-->
			<HeapSize>4096M</HeapSize>
		<!--
			GarbageCollector
			${com.wowza.wms.TuningGarbageCollectorConcurrentDefault} - Concurrent Collector (recommended)
			${com.wowza.wms.TuningGarbageCollectorG1Default} - G1 (Garbage First) Collector
			or specify custom GC settings directly (ex: <GarbageCollector>-XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:NewSize=512m</GarbageCollector>)
		-->
		<GarbageCollector>${com.wowza.wms.TuningGarbageCollectorConcurrentDefault}</GarbageCollector>
		<!--
			VM Options - other VM startup options
			${com.wowza.wms.AppHome} - Application home directory
			${com.wowza.wms.StartupDateTime} - Date and time the server was started
		-->
		<VMOptions>
			<VMOption>-server</VMOption>
			<VMOption>-Djava.net.preferIPv4Stack=true</VMOption>
			<VMOption>-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath="${com.wowza.wms.AppHome}/logs"</VMOption>
			<!-- <VMOption>-Duser.language=en -Duser.country=US -Dfile.encoding=Cp1252</VMOption> -->
			<VMOption>-verbose:gc -Xloggc:"${com.wowza.wms.AppHome}/logs/gc_${com.wowza.wms.StartupDateTime}.log" -XX:+PrintClassHistogram -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC -XX:+PrintGCApplicationConcurrentTime -XX:+PrintGCApplicationStoppedTime</VMOption>
		</VMOptions>
	</Tune>
</Root>

```

This is wowza start log.

JVM options :

Java Args[0]: -Xmx4096M

Java Args[1]: -XX:+UseConcMarkSweepGC

Java Args[2]: -XX:+UseParNewGC

Java Args[3]: -XX:NewSize=256m

Java Args[4]: -Djava.net.preferIPv4Stack=true

Java Args[5]: -XX:+HeapDumpOnOutOfMemoryError

Java Args[6]: -XX:HeapDumpPath="/usr/local/WowzaStreamingEngine/logs"

**Java Args[7]: -verbose:gc**

**Java Args[8]: -Xloggc:"/usr/local/WowzaStreamingEngine/logs/gc\_02014-41-01-12-41-10.log"**

**Java Args[9]: -XX:+PrintGCDetails**

**Java Args[10]: -XX:+PrintGCTimeStamps**

Java Args[11]: -XX:+PrintHeapAtGC

Java Args[12]: -XX:+PrintGCApplicationConcurrentTime

Java Args[13]: -XX:+PrintGCApplicationStoppedTime

Java Args[14]: -Dcom.sun.management.jmxremote=true

Java Args[15]: -Dcom.wowza.wms.runmode=service

Java Args[16]: -Dcom.wowza.wms.native.base=linux

Java Args[17]: -Dcom.wowza.wms.AppHome=/usr/local/WowzaStreamingEngine

Java Args[18]: -Dcom.wowza.wms.ConfigURL=

Java Args[19]: -Dcom.wowza.wms.ConfigHome=/usr/local/WowzaStreamingEngine

environment :

Wowza Streaming Engine 4 Monthly Edition 4.0.6 build12199

---

<div class="post-metadata">

**Author:** ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)\
**Post date:** [September 3, 2014, 8:30am UTC](https://community.wowza.com/t/gc-log/43798/2 "2014-09-03T08:30:01Z")

</div>

Try removing the quotes as that worked on my end.

```auto
<VMOption>-verbose:gc -Xloggc:${com.wowza.wms.AppHome}/logs/gc_${com.wowza.wms.StartupDateTime}.log -XX:+PrintClassHistogram -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC -XX:+PrintGCApplicationConcurrentTime -XX:+PrintGCApplicationStoppedTime</VMOption>

```

Thanks,

Matt

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [September 19, 2014, 2:41pm UTC](https://community.wowza.com/t/gc-log/43798/3 "2014-09-19T14:41:02Z")

</div>

Thank you for the update. glad to hear you got this working.

Please let us know if there is anything else we can assist you with in the future.

Salvadore

---

<div class="post-metadata">

**Author:** ![kinpo\_samohan](https://avatars.discourse-cdn.com/v4/letter/k/ebca7d/32.png) [@kinpo\_samohan](https://community.wowza.com/u/kinpo_samohan)\
**Post date:** [September 5, 2014, 2:35pm UTC](https://community.wowza.com/t/gc-log/43798/4 "2014-09-05T14:35:50Z")

</div>

it’s perfect!!

Thank you Matt.
