Wowza Community

GC Log

Hi,

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

is any idea?

This is my Tune.xml

<?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

Try removing the quotes as that worked on my end.

<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

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

it’s perfect!!

Thank you Matt.